aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_lower_phis_to_scalar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir_lower_phis_to_scalar.c')
-rw-r--r--src/glsl/nir/nir_lower_phis_to_scalar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_phis_to_scalar.c b/src/glsl/nir/nir_lower_phis_to_scalar.c
index 4bdb80072ab..a57d253975d 100644
--- a/src/glsl/nir/nir_lower_phis_to_scalar.c
+++ b/src/glsl/nir/nir_lower_phis_to_scalar.c
@@ -153,6 +153,11 @@ should_lower_phi(nir_phi_instr *phi, struct lower_phis_to_scalar_state *state)
break;
}
+ /* The hash table entry for 'phi' may have changed while recursing the
+ * dependence graph, so we need to reset it */
+ entry = _mesa_hash_table_search(state->phi_table, phi);
+ assert(entry);
+
entry->data = (void *)(intptr_t)scalarizable;
return scalarizable;