[Mesa-dev] [PATCH] radv: only enable one channel when exporting prim id

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Mar 20 09:07:30 UTC 2018


It's a 32-bit integer like the layer.

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 ad046adfdb..c8d383e021 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -2357,7 +2357,7 @@ handle_vs_outputs_post(struct radv_shader_context *ctx,
 		for (unsigned j = 1; j < 4; j++)
 			values[j] = ctx->ac.f32_0;
 
-		radv_export_param(ctx, param_count, values, 0xf);
+		radv_export_param(ctx, param_count, values, 0x1);
 
 		outinfo->vs_output_param_offset[VARYING_SLOT_PRIMITIVE_ID] = param_count++;
 		outinfo->export_prim_id = true;
-- 
2.16.2



More information about the mesa-dev mailing list