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

+3 -2
View File
@@ -3437,8 +3437,9 @@ cache is answered compile-required on both.
binding and no mesh draw (`drawMeshThreadgroups:`, `drawMeshThreads:` and the indirect form), so
no type here names them and the consumer refuses them itself. `new_render_pipeline_state` takes
a vertex function: an object or mesh function in its place is the translator's refusal
(`Error::Translation`). The translator compiles mesh pipelines (docs/API.md, "Mesh pipelines");
rt makes no `VkPipeline` of one. No replay stream or live session has used one; harvested guest
(`Error::Translation`). The translator's mesh lowering (docs/API.md, "Mesh pipelines") is only
compiled and validated: it has never been compared with Metal on a GPU, and rt makes no
`VkPipeline` of it. No replay stream or live session has used one; harvested guest
functions declare them, and validation's committed object and mesh cases qualify on Metal alone
(its `mesh_render_pipeline` requirement).
- On a Vulkan driver built on Metal (Mesa's KosmicKrisp on the Mac), a fragment function that
+2 -1
View File
@@ -137,7 +137,8 @@ without rasterization and its case observes the empty output (`"output": {"kind"
does not draw one: an object or mesh case requires `mesh_render_pipeline`, which no candidate
runs, so its Metal observation stands with its Vulkan side unsupported. The authored compile
census still compiles its mesh render pipeline, as the candidate would build it, on each
profile. An object case's
profile: a `compiled` cell of an object or mesh case says the pipeline compiles, not that it draws
as Metal does. An object case's
`threadgroup_memory` sets its arguments' lengths through `setObjectThreadgroupMemoryLength:atIndex:`.
Dynamic Metal `threadgroup` arguments are declared through `threadgroup_memory` binding/length
+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