Module: Mesa Branch: main Commit: 4a6d1193090499f9c7e1d76acc2f99e852d3213d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a6d1193090499f9c7e1d76acc2f99e852d3213d
Author: Samuel Pitoiset <[email protected]> Date: Mon Sep 27 14:21:33 2021 +0200 radv: remove unnecessary init of outinfo.export_prim_id for GS 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 <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13062> --- 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; }
