From: Rhys Perry Date: Mon, 2 Sep 2019 16:40:43 +0000 (+0100) Subject: radv: always emit a position export in gs copy shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffabcbba606eacb8c955bf9e0424be8ca242b53f;p=mesa.git 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 --- 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)