From 4a6d1193090499f9c7e1d76acc2f99e852d3213d Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 27 Sep 2021 14:21:33 +0200 Subject: [PATCH] radv: remove unnecessary init of outinfo.export_prim_id for GS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a geometry shader is present, not writing the gl_PrimitiveID is undefined, so this is unnecessary. Note that this was never reached on <= GFX8 because vs_common_out.export_prim_id from the GS key was always FALSE. Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_shader_info.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index d37c1e8fc37..7b0c6eb02cc 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -612,9 +612,6 @@ radv_nir_shader_info_pass(struct radv_device *device, const struct nir_shader *n case MESA_SHADER_TESS_EVAL: info->tes.outinfo.export_prim_id = true; break; - case MESA_SHADER_GEOMETRY: - info->vs.outinfo.export_prim_id = true; - break; default: break; }