radv: Run algebraic optimizations before NGG lowering.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 6 Jul 2021 06:45:33 +0000 (08:45 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Jul 2021 23:56:33 +0000 (23:56 +0000)
commitd18920e03a991064c265634029190c4e56e8af9c
treee1e0fd542906f3df40b225ade0ddc0c54ca29132
parentf30e4351de2f562955435a04cf75dd641639d31c
radv: Run algebraic optimizations before NGG lowering.

This makes culling shaders more efficient because they split the
shader in two parts. It is better to optimize before this split
happens.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10525>
src/amd/vulkan/radv_shader.c