summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_undef.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_undef.c')
-rw-r--r--src/compiler/nir/nir_opt_undef.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_undef.c b/src/compiler/nir/nir_opt_undef.c
index 8d3210c637e..b34437746f6 100644
--- a/src/compiler/nir/nir_opt_undef.c
+++ b/src/compiler/nir/nir_opt_undef.c
@@ -133,6 +133,8 @@ nir_opt_undef(nir_shader *shader)
nir_builder b;
bool progress = false;
+ nir_assert_lowered_derefs(shader, nir_lower_load_store_derefs);
+
nir_foreach_function(function, shader) {
if (function->impl) {
nir_builder_init(&b, function->impl);