Re: [Mesa-dev] [PATCH] nir/deref: Drop zero ptr_as_array derefs

2019-02-03 Thread Lionel Landwerlin
On 03/02/2019 16:04, Jason Ekstrand wrote: They are effectively (&x)[0] or *&x which does nothing. Reviewed-by: Lionel Landwerlin --- src/compiler/nir/nir_deref.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/n

[Mesa-dev] [PATCH] nir/deref: Drop zero ptr_as_array derefs

2019-02-03 Thread Jason Ekstrand
They are effectively (&x)[0] or *&x which does nothing. --- src/compiler/nir/nir_deref.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 2f5fda643ca..13aa10c7532 100644 --- a/src/compiler/nir/nir_deref.c +

[Mesa-dev] [PATCH] nir/deref: Drop zero ptr_as_array derefs

2019-02-03 Thread Jason Ekstrand
They are effectively (&x)[0] or *&x which does nothing. --- src/compiler/nir/nir_deref.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 2f5fda643ca..0af26b80e77 100644 --- a/src/compiler/nir/nir_deref.c +