mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
nir/opt_varyings: fix getting deref variables for sysvals
This might fix array system values. Noticed by luck. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32424>
This commit is contained in:
parent
dcc679ab3a
commit
f0c4e71d58
1 changed files with 1 additions and 1 deletions
|
|
@ -1053,7 +1053,7 @@ is_sysval(nir_instr *instr, gl_system_value sysval)
|
|||
nir_instr_as_deref(intr->src[0].ssa->parent_instr);
|
||||
|
||||
return nir_deref_mode_is_one_of(deref, nir_var_system_value) &&
|
||||
deref->var->data.location == sysval;
|
||||
nir_deref_instr_get_variable(deref)->data.location == sysval;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue