Docs: the mesh lowering is only compiled and validated, never compared with Metal on a GPU

The rule keeps the mesh lowering (a sole lowering a supported device
could run, and large) with an honest known-gap line. The runtime README's
mesh gap said "The translator compiles mesh pipelines"; it now says the
lowering is only compiled and validated and has never been compared with
Metal on a GPU. docs/API.md's Mesh pipelines section says so before it
describes what the lowering emits, and its "Every device runs a grid of
up to 2^29 threadgroups" becomes what the lowering takes. Validation's
README says a compiled cell of an object or mesh case in the authored
compile census means it compiles, not that it draws as Metal does.

Searched README.md, docs/*.md (METAL-COVERAGE and CONFORMANCE-COVERAGE
included), the runtime, validation and conformance READMEs: METAL-COVERAGE
lists mesh render pipelines as missing, and CONFORMANCE-COVERAGE counts
Metal-side cases only, so neither reads as mesh working. Docs only.
This commit is contained in:
Anees Iqbal committed 2026-11-22 00:17:22 -08:00
1 parent 37e64a6935
commit e10fa7ba23
3 files changed
+12 -6

No files matched your search

+7 -3
View File
@@ -1004,6 +1004,10 @@ stages are task and mesh shaders, which need `VK_EXT_mesh_shader` with `meshShad
pipeline and each of its object and mesh functions (`Unsupported{MeshShading}`, naming what it
lacks).
The mesh lowering is only compiled and validated: no mesh draw it makes has been compared with
Metal on a GPU, and the runtime makes no mesh pipeline (its README's known gaps of render pipeline
states). What follows is what the lowering emits.
A grid Metal draws nothing for (an axis past `bind::METAL_MESH_GRID_AXIS`, or more than
`bind::METAL_MESH_GRID_TOTAL` threadgroups, measured on the M3 Max) draws nothing in every form:
a direct draw's command is zeroed, an object function's wrapper launches nothing for such a grid,
@@ -1022,9 +1026,9 @@ the consumer uploads (the record, and its pieces' commands where `draw` is indir
draw's arguments pass (`MeshArgumentsForm::FoldedObject`) writes the record, the pieces and their
commands, which `draw` (`DrawMeshTasksIndirectCount`) reads. Metal's threads per grid wrap to 32
bits along each axis, as its builtins report them; a direct draw runs only the threadgroups those
threads fill, rounded up, an indirect one every threadgroup (`bind::metal_object_grid`). Every
device runs a grid of up to `bind::METAL_OBJECT_GRID_TOTAL` (2^29) threadgroups, the most Metal's GPU
ran within its watchdog's 5 seconds. A larger one, which Metal's GPU discards, draws nothing and
threads fill, rounded up, an indirect one every threadgroup (`bind::metal_object_grid`). The
lowering takes a grid of up to `bind::METAL_OBJECT_GRID_TOTAL` (2^29) threadgroups on every device,
the most Metal's GPU ran within its watchdog's 5 seconds. A larger one, which Metal's GPU discards, draws nothing and
fails its command buffer with Metal's error (the runtime's `CommandBufferError::GpuRecoveryVictim`):
a direct draw says so in `DrawCommands::discards_command_buffer`, and the consumer fails the command
buffer from the draw's encoder on, as Metal does; an indirect draw's arguments pass sets