mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 04:10:40 +01:00
agx: allocate varying slot if writing viewport only
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
parent
643acacd1b
commit
bc7afbf23d
1 changed files with 1 additions and 1 deletions
|
|
@ -2549,7 +2549,7 @@ agx_remap_varyings_vs(nir_shader *nir, struct agx_varyings_vs *varyings,
|
|||
base += 1;
|
||||
}
|
||||
|
||||
if (nir->info.outputs_written & VARYING_BIT_LAYER) {
|
||||
if (nir->info.outputs_written & (VARYING_BIT_LAYER | VARYING_BIT_VIEWPORT)) {
|
||||
varyings->layer_viewport_slot = base;
|
||||
base += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue