Mesa (master): radv: set the slot_index correctly for VARYING_SLOT_CLIP_DIST1

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 10 21:35:17 UTC 2019


Module: Mesa
Branch: master
Commit: f616d80a7aeaee1bb86a7bdff094dc856dbd0ce7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f616d80a7aeaee1bb86a7bdff094dc856dbd0ce7

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Jul 10 15:18:57 2019 +0200

radv: set the slot_index correctly for VARYING_SLOT_CLIP_DIST1

For selecting a different SQ_EXP_POS target.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 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 ba0fb557266..597d006284a 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -3043,7 +3043,7 @@ handle_vs_outputs_post(struct radv_shader_context *ctx,
 			continue;
 
 		outputs[noutput].slot_name = i;
-		outputs[noutput].slot_index = 0;
+		outputs[noutput].slot_index = i == VARYING_SLOT_CLIP_DIST1;
 
 		if (ctx->stage == MESA_SHADER_VERTEX &&
 		    !ctx->is_gs_copy_shader) {




More information about the mesa-commit mailing list