diff options
author | Jason Ekstrand <[email protected]> | 2018-04-02 16:44:40 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:54:00 -0700 |
commit | 18175ab66fa4d315c75b447f0834396df8774e95 (patch) | |
tree | 21838ad0f6b4386d7c6c773721dda645d90bb665 /src/compiler | |
parent | aeb4bbfd1ef869e30ab02231585c9c2e4e0f5972 (diff) |
nir: Remove deref chain support from opt_undef
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_opt_undef.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_undef.c b/src/compiler/nir/nir_opt_undef.c index e42a9af2bdf..428a1f26599 100644 --- a/src/compiler/nir/nir_opt_undef.c +++ b/src/compiler/nir/nir_opt_undef.c @@ -112,7 +112,6 @@ opt_undef_store(nir_intrinsic_instr *intrin) case nir_intrinsic_store_deref: arg_index = 1; break; - case nir_intrinsic_store_var: case nir_intrinsic_store_output: case nir_intrinsic_store_per_vertex_output: case nir_intrinsic_store_ssbo: @@ -138,6 +137,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); |