Re: [Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-19 Thread Jason Ekstrand
On Wed, Dec 19, 2018 at 1:12 PM Alan Swanson wrote: > On Mon, 2018-12-17 at 16:16 +, Rhys Perry wrote: > > Signed-off-by: Rhys Perry > > --- > > src/compiler/nir/nir_opt_peephole_select.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/src/compiler/nir/nir_

Re: [Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-19 Thread Alan Swanson
On Mon, 2018-12-17 at 16:16 +, Rhys Perry wrote: > Signed-off-by: Rhys Perry > --- > src/compiler/nir/nir_opt_peephole_select.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/compiler/nir/nir_opt_peephole_select.c > b/src/compiler/nir/nir_opt_peephole_select.

Re: [Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-18 Thread Jason Ekstrand
On December 18, 2018 19:42:56 Rhys Perry wrote: The 32-bit condition was in one of radv's meta shaders and had it from the start. 32-bit conditions seems to be valid after lowering booleans to 32-bit. Are they supposed to be invalid before the lowering? It's not invalid in the sense that the

Re: [Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-18 Thread Rhys Perry
The 32-bit condition was in one of radv's meta shaders and had it from the start. 32-bit conditions seems to be valid after lowering booleans to 32-bit. Are they supposed to be invalid before the lowering? On Wed, 19 Dec 2018 at 00:59, Jason Ekstrand wrote: > > Seems reasonable though I'm a bit

Re: [Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-18 Thread Jason Ekstrand
Seems reasonable though I'm a bit surprised your running peephole_select after lowering booleans. On December 18, 2018 18:16:46 Timothy Arceri wrote: Reviewed-by: Timothy Arceri On 18/12/18 3:16 am, Rhys Perry wrote: Signed-off-by: Rhys Perry --- src/compiler/nir/nir_opt_peephole_select

Re: [Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-18 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On 18/12/18 3:16 am, Rhys Perry wrote: Signed-off-by: Rhys Perry --- src/compiler/nir/nir_opt_peephole_select.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_peephole_select.c b/src/compiler/nir/nir_opt_peephole_

[Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-17 Thread Rhys Perry
Signed-off-by: Rhys Perry --- src/compiler/nir/nir_opt_peephole_select.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_peephole_select.c b/src/compiler/nir/nir_opt_peephole_select.c index ad9d0abec0..241627ed99 100644 --- a/src/compiler/nir/nir_o