Module: Mesa Branch: staging/19.1 Commit: a8e984f83edfd86d5e29155d13fa022362f467a1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8e984f83edfd86d5e29155d13fa022362f467a1
Author: Rhys Perry <[email protected]> Date: Mon Sep 2 17:40:43 2019 +0100 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) --- 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 6b2f176d465..b22a00b9166 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -4066,7 +4066,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) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
