mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
1e5b9b7410
commit
4a6d119309
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue