diff --git a/src/compiler/nir/nir_opt_large_constants.c b/src/compiler/nir/nir_opt_large_constants.c index 88e0e0b9485..60f2b5837d6 100644 --- a/src/compiler/nir/nir_opt_large_constants.c +++ b/src/compiler/nir/nir_opt_large_constants.c @@ -238,7 +238,7 @@ nir_opt_large_constants(nir_shader *shader, continue; } - if (dst_deref && nir_deref_mode_is(dst_deref, nir_var_function_temp)) { + if (dst_deref && nir_deref_mode_must_be(dst_deref, nir_var_function_temp)) { nir_variable *var = nir_deref_instr_get_variable(dst_deref); if (var == NULL) continue; @@ -266,7 +266,7 @@ nir_opt_large_constants(nir_shader *shader, } } - if (src_deref && nir_deref_mode_is(src_deref, nir_var_function_temp)) { + if (src_deref && nir_deref_mode_must_be(src_deref, nir_var_function_temp)) { nir_variable *var = nir_deref_instr_get_variable(src_deref); if (var == NULL) continue;