radv: always emit a position export in gs copy shaders
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 2 Sep 2019 16:40:43 +0000 (17:40 +0100)
committerRhys Perry <pendingchaos02+freedesktop@gmail.com>
Mon, 16 Sep 2019 19:42:30 +0000 (19:42 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: f8d0337299f ('radv: add multiple streams support for the GS copy shader')
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c

index 37c81d5b45f0ba253c10c476b631b162b57fb92c..f8d9cb795448ed0de4ac8c8f982fee3853ecf8cd 100644 (file)
@@ -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)