[Mesa-dev] [PATCH 5/6] radv: set the slot_index correctly for VARYING_SLOT_CLIP_DIST1
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Jul 10 13:18:57 UTC 2019
For selecting a different SQ_EXP_POS target.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
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) {
--
2.22.0
More information about the mesa-dev
mailing list