Re: [Mesa-dev] [PATCH 4/4] nir: add a couple of ior opts to nir_opt_algebraic

2018-07-15 Thread Timothy Arceri
On 16/07/18 14:25, Jason Ekstrand wrote: How about just adding (('ior', 'a@bool', ('ieq', a, 0)), True) and maybe also (('ior', 'a@bool', ('inot', a)), True) while you're at it. Ah yes that's much better. Will do. --Jason On Sun, Jul 15, 2018 at 4:27 PM Timothy Arceri

Re: [Mesa-dev] [PATCH 4/4] nir: add a couple of ior opts to nir_opt_algebraic

2018-07-15 Thread Jason Ekstrand
How about just adding (('ior', 'a@bool', ('ieq', a, 0)), True) and maybe also (('ior', 'a@bool', ('inot', a)), True) while you're at it. --Jason On Sun, Jul 15, 2018 at 4:27 PM Timothy Arceri wrote: > One of these was seen in a Deus Ex shader. > --- > src/compiler/nir/nir_opt_algebraic.py

[Mesa-dev] [PATCH 4/4] nir: add a couple of ior opts to nir_opt_algebraic

2018-07-15 Thread Timothy Arceri
One of these was seen in a Deus Ex shader. --- src/compiler/nir/nir_opt_algebraic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index 0986dde6851..682d498b79b 100644 ---