r600/sfn: Fix readport check
authorGert Wollny <gert.wollny@collabora.com>
Tue, 17 Jan 2023 08:03:26 +0000 (09:03 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 Jan 2023 19:19:01 +0000 (19:19 +0000)
commitca5bbff558d1de7af3410e659dc0ac6c042cdee3
tree367122426f770b698ba8901d43b378c4fd454b22
parent42d51ef2bb1ea323685447eae1f714d3b610ce98
r600/sfn: Fix readport check

We have to take multi-slot instructions into account, and we don't fail
when there are still possible bank swizzle values to be checked.

For clarity also rename the bank swizzle iterator iterator.

Fixes: 79ca456b4837b3bc21cf9ef3c03c505c4b4909f6
   r600/sfn: rewrite NIR backend

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20739>
src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp