nir/opt_large_constants: Fix a type/deref_type typo

Fixes: df9596353a "nir/large_constants: Handle incomplete derefs"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6403>
This commit is contained in:
Jason Ekstrand
2020-08-20 08:46:43 -05:00
parent e5bac3c669
commit 74ac8f3f64

View File

@@ -205,7 +205,7 @@ nir_opt_large_constants(nir_shader *shader,
* will find all of the writers of that variable. * will find all of the writers of that variable.
*/ */
nir_deref_instr *deref = nir_instr_as_deref(instr); nir_deref_instr *deref = nir_instr_as_deref(instr);
if (deref->type == nir_deref_type_var && if (deref->deref_type == nir_deref_type_var &&
deref->mode == nir_var_function_temp && deref->mode == nir_var_function_temp &&
nir_deref_instr_has_complex_use(deref)) nir_deref_instr_has_complex_use(deref))
var_infos[deref->var->index].is_constant = false; var_infos[deref->var->index].is_constant = false;