r300: transform fs sin and cos input to [0,1) range in NIR
authorPavel Ondračka <pavel.ondracka@gmail.com>
Wed, 9 Feb 2022 15:11:29 +0000 (16:11 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Feb 2022 16:09:45 +0000 (16:09 +0000)
commita04aa4bc08df2c3772fc7dda6766f76ef3a5dfb4
tree960efb59cc3a48389ff6701755ca7c4953b9d08c
parent3f97306b956f707d637da6b76dd9465fcabfc451
r300: transform fs sin and cos input to [0,1) range in NIR

shader-db stats with RV530 (together with the vs commit):
total instructions in shared programs: 65194 -> 64721 (-0.73%)
instructions in affected programs: 6718 -> 6245 (-7.04%)
total consts in shared programs: 45363 -> 45353 (-0.02%)
consts in affected programs: 466 -> 456 (-2.15%)

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5982
Reviewed-by: Emma Anholt <emma@anholt.net>
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14957>
src/gallium/drivers/r300/compiler/r300_nir_algebraic.py
src/gallium/drivers/r300/compiler/radeon_program_alu.c
src/gallium/drivers/r300/r300_fs.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_vs.h