radv/llvm: always emit a null export even if the FS doesn't discard
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 21 Jun 2022 15:52:29 +0000 (17:52 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Jun 2022 06:31:30 +0000 (08:31 +0200)
commitad3d6d9c6e3f96ec44573e8d9044a24988cc44e5
treeffb4b04ea2e678a7b04c4b8c23f104bab1aa4ba8
parent17645cb29c46e66f9ba58798142ceee0ed42ac6d
radv/llvm: always emit a null export even if the FS doesn't discard

Even with a noop FS, the color blend state can still be non-zero, and
then SPI color related registers won't be 0 and this would hang.

Fixes: bdf3797aeb7 ("ac,radeonsi: don't export null from PS if it has no effect on gfx10+")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17169>
src/amd/vulkan/radv_nir_to_llvm.c