nir: fix an uninitialized variable valgrind warning in nir_group_loads
authorMarek Olšák <marek.olsak@amd.com>
Fri, 22 Apr 2022 05:35:45 +0000 (01:35 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Apr 2022 18:18:09 +0000 (18:18 +0000)
commitf7a77ff9005fdb1af7678d80dac6dcf16b328c21
tree3ce264736e32f4d1a9b2a2442efb6eb4fc8e774e
parentfcc499d5e1deac76126de7fd0c3297298322db07
nir: fix an uninitialized variable valgrind warning in nir_group_loads

pass_flags is only initialized for grouped loads, so change the order

Fixes: 33b4eb149ea - 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>
src/compiler/nir/nir_group_loads.c