summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2020-08-20 08:46:43 -0500
committerJason Ekstrand <jason@jlekstrand.net>2020-08-20 08:47:04 -0500
commit74ac8f3f648183739e00717acf030a35682eb71d (patch)
tree5f713cf03656f993efebc9dceb606bb5429af1fd
parente5bac3c669c1773ce8dbfeff271e7d7d444a39bc (diff)
nir/opt_large_constants: Fix a type/deref_type typo
Fixes: df9596353a60 "nir/large_constants: Handle incomplete derefs" Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6403>
-rw-r--r--src/compiler/nir/nir_opt_large_constants.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_large_constants.c b/src/compiler/nir/nir_opt_large_constants.c
index 53bcea9322a..860078edcb5 100644
--- a/src/compiler/nir/nir_opt_large_constants.c
+++ b/src/compiler/nir/nir_opt_large_constants.c
@@ -205,7 +205,7 @@ nir_opt_large_constants(nir_shader *shader,
* will find all of the writers of that variable.
*/
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 &&
nir_deref_instr_has_complex_use(deref))
var_infos[deref->var->index].is_constant = false;