mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
nir/deref: Fix a typo
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3754
Fixes: df51518dc5 "nir/opt_deref: Add a deref mode specialization..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7459>
This commit is contained in:
parent
60c5729d16
commit
61d2badbf4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue