[Mesa-dev] [PATCH] nir/deref: Support casts in comparisons

2018-11-19 Thread Jason Ekstrand
The code which constructs deref paths already gives you the path starting at the nearest deref_cast or deref_var. All we need to do is handle the case where the start of the path isn't a deref_var. Cc: Karol Herbst Cc: Dave Airlie --- src/compiler/nir/nir_deref.c | 42 +

[Mesa-dev] [PATCH] nir/deref: Support casts in comparisons

2018-10-26 Thread Jason Ekstrand
The code which constructs deref paths already gives you the path starting at the nearest deref_cast or deref_var. All we need to do is handle the case where the start of the path isn't a deref_var. Cc: Caio Marcelo de Oliveira Filho --- src/compiler/nir/nir_deref.c | 40 +++