Mesa (master): nir/deref: Fix a typo

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 5 16:56:15 UTC 2020


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

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Thu Nov  5 09:56:42 2020 -0600

nir/deref: Fix a typo

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3754
Fixes: df51518dc5b "nir/opt_deref: Add a deref mode specialization..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7459>

---

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

diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c
index 2da9d8c8d6d..c32731d156c 100644
--- a/src/compiler/nir/nir_deref.c
+++ b/src/compiler/nir/nir_deref.c
@@ -945,7 +945,7 @@ opt_remove_cast_cast(nir_deref_instr *cast)
 static bool
 opt_restrict_deref_modes(nir_deref_instr *deref)
 {
-   if (deref->type == nir_deref_type_var) {
+   if (deref->deref_type == nir_deref_type_var) {
       assert(deref->modes == deref->var->data.mode);
       return false;
    }



More information about the mesa-commit mailing list