summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-09-02 17:40:43 +0100
committerDylan Baker <[email protected]>2019-09-18 09:09:54 -0700
commitb94ab6f5e33da7c3cf6c1194313f091795abff9d (patch)
treeaa6349ee3db4d8ad95fc4933313cba243ecc31ae
parentb2a09536ff9075b5bcf0e7d88ee401e24c2706ff (diff)
radv: always emit a position export in gs copy shaders
Signed-off-by: Rhys Perry <[email protected]> Fixes: f8d0337299f ('radv: add multiple streams support for the GS copy shader') Reviewed-by: Samuel Pitoiset <[email protected]> (cherry picked from commit ffabcbba606eacb8c955bf9e0424be8ca242b53f)
-rw-r--r--src/amd/vulkan/radv_nir_to_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index 3860a8c715b..8cc0ef419a7 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -4754,7 +4754,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->info.so.num_outputs)