nir: remove gl_PrimitiveID output from MS when it's not used in FS
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15340>
This commit is contained in:
committed by
Marge Bot
parent
65600a34c2
commit
9b23aaf3cf
@@ -148,7 +148,8 @@ nir_remove_unused_io_vars(nir_shader *shader,
|
||||
used = used_by_other_stage;
|
||||
|
||||
if (var->data.location < VARYING_SLOT_VAR0 && var->data.location >= 0)
|
||||
continue;
|
||||
if (shader->info.stage != MESA_SHADER_MESH || var->data.location != VARYING_SLOT_PRIMITIVE_ID)
|
||||
continue;
|
||||
|
||||
if (var->data.always_active_io)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user