From ffabcbba606eacb8c955bf9e0424be8ca242b53f Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 2 Sep 2019 17:40:43 +0100 Subject: [PATCH] radv: always emit a position export in gs copy shaders Signed-off-by: Rhys Perry Fixes: f8d0337299f ('radv: add multiple streams support for the GS copy shader') Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 37c81d5b45f..f8d9cb79544 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -5042,7 +5042,7 @@ ac_gs_copy_shader_emit(struct radv_shader_context *ctx) LLVMBasicBlockRef bb; unsigned offset; - if (!num_components) + if (stream > 0 && !num_components) continue; if (stream > 0 && !ctx->shader_info->so.num_outputs) -- 2.30.2