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 <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13062>
This commit is contained in:
Samuel Pitoiset 2021-09-27 14:21:33 +02:00 committed by Marge Bot
parent 1e5b9b7410
commit 4a6d119309

View file

@ -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;
}