mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir: fix an uninitialized variable valgrind warning in nir_group_loads
pass_flags is only initialized for grouped loads, so change the order
Fixes: 33b4eb149e - nir: add new SSA instruction scheduler grouping loads into indirection groups
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16090>
This commit is contained in:
parent
fcc499d5e1
commit
f7a77ff900
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ process_block(nir_block *block, nir_load_grouping grouping,
|
|||
}
|
||||
|
||||
/* Only group load instructions with the same indirection level. */
|
||||
if (current->pass_flags == level && is_grouped_load(current)) {
|
||||
if (is_grouped_load(current) && current->pass_flags == level) {
|
||||
nir_instr *current_resource;
|
||||
|
||||
switch (grouping) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue