nir/opt_large_constants: Fix a type/deref_type typo
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 20 Aug 2020 13:46:43 +0000 (08:46 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 20 Aug 2020 13:47:04 +0000 (08:47 -0500)
Fixes: df9596353a60 "nir/large_constants: Handle incomplete derefs"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6403>

src/compiler/nir/nir_opt_large_constants.c

index 53bcea9322a5f7db00e88b121659257cfcaaabdf..860078edcb5b53cbd79f74490c32179121b47007 100644 (file)
@@ -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);
              * 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;
                 deref->mode == nir_var_function_temp &&
                 nir_deref_instr_has_complex_use(deref))
                var_infos[deref->var->index].is_constant = false;