aco: Emit zero for the derivatives of uniforms.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 26 Aug 2021 14:36:28 +0000 (16:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Aug 2021 20:34:22 +0000 (20:34 +0000)
commitcfb0d931f27438c1f7c94defa078f2f9454c5a54
treef03d168f55e4c67ee8387b4f4bbc742da9e7cd72
parent1454955e5d5130bc0bba4e2d5ef41ceb71346729
aco: Emit zero for the derivatives of uniforms.

Observed in a shader from Resident Evil Village.
This also helps prevent emitting invalid IR.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12599>
src/amd/compiler/aco_instruction_selection.cpp