r600/sfn: Don't clear clear group flag on vec4 that comes from TEX or FETCH
authorGert Wollny <gert.wollny@collabora.com>
Thu, 22 Jun 2023 21:03:40 +0000 (23:03 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 23 Jun 2023 06:16:30 +0000 (06:16 +0000)
commit34163e19f7a64621a7995b92fa2f79a0f933393d
tree729db527f0f3e5029220c1bea4c5f7b78133fe43
parent23d4e21d835975110e96cd7dface422ef043374f
r600/sfn: Don't clear clear group flag on vec4 that comes from TEX or FETCH

If we consider clearing the group flag of a vec4 register that is used as
source for some instruction we have to take into account that the parent
of the register element may also be part of a group in the parent instruction.
In this case we must not clear the group flag.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9118

Fixes:  f3415cb26a (r600/sfn: copy propagate register load chains)

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