r300: respect extra presubtract swizzle limitations during regalloc
authorPavel Ondračka <pavel.ondracka@gmail.com>
Tue, 15 Nov 2022 21:35:05 +0000 (22:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Nov 2022 19:51:47 +0000 (19:51 +0000)
commit3e19eb59a6a51ba6fc3be5451455fbe7dcd0c83f
tree13819630aa98a3882821049d0d782649efa54427
parent14d97e1e426382c8ca5c74e459813c9c354f453c
r300: respect extra presubtract swizzle limitations during regalloc

Regalloc was not aware of the extra limitations and in some cases could
convert native swizzle into non-native.

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Tested-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19764>
src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c