Module: Mesa Branch: master Commit: 61d2badbf472bec3da16f5faca6f668d2164e101 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=61d2badbf472bec3da16f5faca6f668d2164e101
Author: Jason Ekstrand <[email protected]> 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 <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> 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; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
