[Mesa-dev] [PATCH v4 103/129] nir: Remove deref chain support from opt_undef

Jason Ekstrand jason at jlekstrand.net
Fri Jun 1 05:06:44 UTC 2018


---
 src/compiler/nir/nir_opt_undef.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_opt_undef.c b/src/compiler/nir/nir_opt_undef.c
index 1439ca9..5c07bb7 100644
--- a/src/compiler/nir/nir_opt_undef.c
+++ b/src/compiler/nir/nir_opt_undef.c
@@ -109,7 +109,6 @@ opt_undef_store(nir_intrinsic_instr *intrin)
 {
    switch (intrin->intrinsic) {
    case nir_intrinsic_store_deref:
-   case nir_intrinsic_store_var:
    case nir_intrinsic_store_output:
    case nir_intrinsic_store_per_vertex_output:
    case nir_intrinsic_store_ssbo:
@@ -134,6 +133,8 @@ nir_opt_undef(nir_shader *shader)
    nir_builder b;
    bool progress = false;
 
+   nir_assert_unlowered_derefs(shader, nir_lower_load_store_derefs);
+
    nir_foreach_function(function, shader) {
       if (function->impl) {
          nir_builder_init(&b, function->impl);
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list