r300: handle presubtract when rewriting non-native swizzles
authorPavel Ondračka <pavel.ondracka@gmail.com>
Tue, 15 Nov 2022 20:50:51 +0000 (21:50 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Nov 2022 19:51:47 +0000 (19:51 +0000)
commit14d97e1e426382c8ca5c74e459813c9c354f453c
tree148539999e49376c28e61efcc57fa087e13e1cdb
parent8cfc44aace34036caecb8043369165a04f601666
r300: handle presubtract when rewriting non-native swizzles

The extra presubtract limitations were completelly ignored.
Fixes 4 dEQP asin and atan tests.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7554
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/ci/r300-r480-fails.txt
src/gallium/drivers/r300/compiler/r300_fragprog_swizzle.c