Mesa (master): nir/opt_large_constants: Fix a type/deref_type typo

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 20 14:25:26 UTC 2020


Module: Mesa
Branch: master
Commit: 74ac8f3f648183739e00717acf030a35682eb71d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=74ac8f3f648183739e00717acf030a35682eb71d

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Thu Aug 20 08:46:43 2020 -0500

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>

---

 src/compiler/nir/nir_opt_large_constants.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the mesa-commit mailing list