mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir/opt_varyings: Allow optimizing primitive ID for MS -> FS.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28685>
This commit is contained in:
parent
8792098772
commit
21ff2907c7
1 changed files with 3 additions and 2 deletions
|
|
@ -991,8 +991,9 @@ can_optimize_varying(struct linkage_info *linkage, gl_varying_slot location)
|
|||
location == VARYING_SLOT_FOGC)
|
||||
return options_var;
|
||||
|
||||
/* The primitive ID can always be optimized in GS -> FS. */
|
||||
if (linkage->producer_stage == MESA_SHADER_GEOMETRY &&
|
||||
/* The primitive ID can always be optimized in GS -> FS and MS -> FS. */
|
||||
if ((linkage->producer_stage == MESA_SHADER_GEOMETRY ||
|
||||
linkage->producer_stage == MESA_SHADER_MESH) &&
|
||||
location == VARYING_SLOT_PRIMITIVE_ID)
|
||||
return options_var;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue