Translator and runtime: the mesh stages no longer require drawIndirectCount

Since the step-4 ruling no mesh draw reads a GPU-written draw count: an
indirect draw of an object function is the runtime's refusal at the draw
(DrawKind::IndirectObjectGrid), a mesh-only indirect draw is the launcher's one
task workgroup (vkCmdDrawMeshTasksEXT(1, 1, 1)), and an object grid's pieces past
the task limits take a host-written count through multiDrawIndirect. Rule 4
(anything unused is deleted) drops it, as the planner ruled through main:

- lower::mesh::FEATURES and floor::MESH_STAGES hold taskShader, meshShader and
  multiDrawIndirect; device creation enables VK_EXT_mesh_shader with those
  three where the device reports all three.
- The cond-1 tests iterate the three; the floor test also shows a device
  without drawIndirectCount given the mesh stages, and the device test no
  longer reads it.
- The README's Mesh stages section and its extension row, docs/API.md, the
  compile_mesh_pipeline and new_mesh_render_pipeline_state docs, and the
  requirement's own doc say three.
- SEMANTICS_VERSION 2370 (placeholder; main renumbers): the MeshShading
  refusal's needs change on a profile without drawIndirectCount (the M3 Max
  under MoltenVK reports it false).

No lab device changes: every card that lists VK_EXT_mesh_shader reports
drawIndirectCount (vulkaninfo on the RTX 3090, RTX 2080, RTX 5080 Laptop,
RX 7900 XTX, Radeon 780M and lavapipe). REFUSALS.md and the signatures were
regenerated and did not move; the runtime sources pin was rewritten.

Verified: JOBLINE
This commit is contained in:
Anees Iqbal committed 2026-12-03 17:05:45 -08:00
1 parent ab493847c9
commit 07d9577c20
13 files changed
+52 -62

No files matched your search

+3 -3
View File
@@ -1173,9 +1173,9 @@ each instance. A fragment function compiled to read Vulkan's `PrimitiveId` behin
`Device::compile_mesh_pipeline` compiles a `MeshPipelineDescriptor` (an optional object function,
a mesh function and a fragment function). It draws mesh draws only (`drawMeshThreadgroups:`,
`drawMeshThreads:` and their indirect forms). The
stages are task and mesh shaders, which need `VK_EXT_mesh_shader` with `taskShader`, `meshShader`,
`multiDrawIndirect` and `drawIndirectCount`, all enabled together, whether or not the pipeline has
an object function (a mesh draw's pieces take the two draw features). A device without any one of
stages are task and mesh shaders, which need `VK_EXT_mesh_shader` with `taskShader`, `meshShader`
and `multiDrawIndirect`, all enabled together, whether or not the pipeline has an object function
(an object grid's pieces past the task limits are one multi-draw). A device without any one of
them (MoltenVK, older ANV) refuses the pipeline and each of its object and mesh functions
(`Unsupported{MeshShading}`, naming what it lacks).