ir3: VARYING_SLOT_LAYER output is used for binning

In multi-layered framebuffer LRZ also has several layers and binning
pass needs to write depth to a correct layer, so binning VS needs
VARYING_SLOT_LAYER.

Fixes: 9775b33d0f ("tu: Enable GMEM with layered rendering")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34728>
(cherry picked from commit dea4bb3757a5dea0d5117453b9a3990ae933857e)
This commit is contained in:
Danylo Piliaiev
2025-04-28 14:56:50 +02:00
committed by Eric Engestrom
parent 1664381813
commit d14c0562c6
2 changed files with 2 additions and 2 deletions

View File

@@ -1114,7 +1114,7 @@
"description": "ir3: VARYING_SLOT_LAYER output is used for binning",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "9775b33d0f14f91622f5a26a3c499a84da227c3d",
"notes": null

View File

@@ -973,7 +973,7 @@ output_slot_used_for_binning(gl_varying_slot slot)
{
return slot == VARYING_SLOT_POS || slot == VARYING_SLOT_PSIZ ||
slot == VARYING_SLOT_CLIP_DIST0 || slot == VARYING_SLOT_CLIP_DIST1 ||
slot == VARYING_SLOT_VIEWPORT;
slot == VARYING_SLOT_VIEWPORT || slot == VARYING_SLOT_LAYER;
}
static bool