Mesa (staging/19.2): radv: always emit a position export in gs copy shaders

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 17 16:01:47 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: 97ad7317f4a915ba5bb8ddb260feacf901f3adcc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=97ad7317f4a915ba5bb8ddb260feacf901f3adcc

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Sep  2 17:40:43 2019 +0100

radv: always emit a position export in gs copy shaders

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Fixes: f8d0337299f ('radv: add multiple streams support for the GS copy shader')
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
(cherry picked from commit ffabcbba606eacb8c955bf9e0424be8ca242b53f)

---

 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 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)




More information about the mesa-commit mailing list