Mesa ANV: mesh draws render nothing, as the mesh stage has no required subgroup size (agc_driver_mesh) #2862

Closed
opened 2026-10-10 16:48:33 +00:00 by ThatsLeo · 1 comment
ThatsLeo commented 2026-10-10 16:48:33 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThatsLeo on 2026-10-10T16:48:33Z.


agc_driver_mesh fails on Intel Arc (Meteor Lake, Mesa 26.2.3 ANV), and no triangle of any of its draws is rendered:

indexed triangle list, one-wave subgroups: triangle 0 was not rendered in its color, pixel (16, 24, 40, 255)

The validation layer and spirv-val report nothing. Mesh programs are recompiled for the host subgroup size (32 here, LocalSize 32 with SubgroupLocalInvocationId), but the mesh stage is created without a required subgroup size, and ANV picks a narrower one. Compute pipelines already require it.

Fix: ThatsLeo/AnyPS5:fix/agc-mesh-required-subgroup-size (one commit, 2eadedcd, on main 57f96fd2). When subgroupSizeControl is enabled and requiredSubgroupSizeStages includes the mesh stage (ANV reports compute, task and mesh), the mesh stage requires the program's host subgroup size.

Tested: Fedora 44, GCC 16.2.1, Release. agc_driver_mesh passes on Intel Arc with no validation message; lavapipe skips it. Full ctest on main (57f96fd2), on this branch and with all eight fixes listed in #2803-#2807 and here, on Intel Arc and lavapipe: no new failure. With all of them and #1250, all 698 tests pass on Intel Arc and on lavapipe. Dreaming Sarah (PPSA02929) runs with no visual difference.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5793289449 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2862). Originally posted by [ThatsLeo](https://github.com/ThatsLeo) on 2026-10-10T16:48:33Z. --- `agc_driver_mesh` fails on Intel Arc (Meteor Lake, Mesa 26.2.3 ANV), and no triangle of any of its draws is rendered: ``` indexed triangle list, one-wave subgroups: triangle 0 was not rendered in its color, pixel (16, 24, 40, 255) ``` The validation layer and `spirv-val` report nothing. Mesh programs are recompiled for the host subgroup size (32 here, `LocalSize 32` with `SubgroupLocalInvocationId`), but the mesh stage is created without a required subgroup size, and ANV picks a narrower one. Compute pipelines already require it. **Fix:** [`ThatsLeo/AnyPS5:fix/agc-mesh-required-subgroup-size`](https://github.com/ThatsLeo/AnyPS5/tree/fix/agc-mesh-required-subgroup-size) (one commit, `2eadedcd`, on `main` `57f96fd2`). When `subgroupSizeControl` is enabled and `requiredSubgroupSizeStages` includes the mesh stage (ANV reports compute, task and mesh), the mesh stage requires the program's host subgroup size. **Tested:** Fedora 44, GCC 16.2.1, Release. `agc_driver_mesh` passes on Intel Arc with no validation message; lavapipe skips it. Full `ctest` on `main` (`57f96fd2`), on this branch and with all eight fixes listed in #2803-#2807 and here, on Intel Arc and lavapipe: no new failure. With all of them and #1250, all 698 tests pass on Intel Arc and on lavapipe. Dreaming Sarah (PPSA02929) runs with no visual difference. AI-assisted: yes.
ThatsLeo commented 2026-10-10 17:22:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThatsLeo on 2026-10-10T17:22:15Z.


Duplicate of #2815, which reported the same cause earlier with the same fix; I confirmed that fix on Mesa ANV there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100192260 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2862#issuecomment-6100192260). Originally posted by [ThatsLeo](https://github.com/ThatsLeo) on 2026-10-10T17:22:15Z. --- Duplicate of #2815, which reported the same cause earlier with the same fix; I confirmed that fix on Mesa ANV there.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#2862
No description provided.