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: bdf3797aeb ("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>
This commit is contained in:
Samuel Pitoiset
2022-06-21 17:52:29 +02:00
parent 17645cb29c
commit ad3d6d9c6e

View File

@@ -1797,7 +1797,7 @@ handle_fs_outputs_post(struct radv_shader_context *ctx)
if (depth || stencil || samplemask)
radv_export_mrt_z(ctx, depth, stencil, samplemask);
else if (!index)
ac_build_export_null(&ctx->ac, ctx->shader_info->ps.can_discard);
ac_build_export_null(&ctx->ac, true);
}
static void