From: Samuel Pitoiset Date: Wed, 10 Jul 2019 13:18:57 +0000 (+0200) Subject: radv: set the slot_index correctly for VARYING_SLOT_CLIP_DIST1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f616d80a7aeaee1bb86a7bdff094dc856dbd0ce7;p=mesa.git radv: set the slot_index correctly for VARYING_SLOT_CLIP_DIST1 For selecting a different SQ_EXP_POS target. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- 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) {