Bound a run of indexed indirect draws' index fetches in two dispatches

The steps this packet landed as, in order:
- Announce a provoking mode past 1 at the draws Metal's third way draws otherwise

Content: the tree of `development` at 107929f7b9, unchanged.
This commit is contained in:
Anees Iqbal committed 2026-10-26 13:19:07 +02:00
1 parent 4533745d05
commit 35dd559a04
26 files changed
+1802 -353

No files matched your search

+8 -5
View File
@@ -1269,8 +1269,9 @@ fast forms record, and each `PrecisionNote`'s rustdoc states its bound.
`DriverFact::RobustIndexFetchReadsZero`, or the index offset lies at or past the buffer's length)
is bounded on the GPU before the pass. Cost: two dispatches before the pass write two draws'
arguments and the indices past the buffer into the command buffer's index pool (a sixty-fourth of
the device's largest device-local heap), between barriers, and the draw is two indirect draws; a
draw the pool cannot hold fails the command buffer.
the device's largest device-local heap), between barriers, two for a run of such draws over one
arguments and one index buffer, and the draw is two indirect draws; a draw the pool cannot hold
fails the command buffer.
- `metal2vulkan-degrade-emulated-mesh-draws` (performance). `EmulatedMeshDraws`: A mesh render
pipeline's draws on a device without `VK_EXT_mesh_shader`. Cost: the object and mesh functions run
as compute dispatches before the pass, between barriers, writing records a synthesized vertex
@@ -2415,9 +2416,11 @@ fast forms record, and each `PrecisionNote`'s rustdoc states its bound.
primitive's last vertex; and a slice or viewport a vertex function selects where the pipeline
selects it in a synthesized geometry stage (a device without `shaderOutputLayer` or
`shaderOutputViewportIndex`, an index that differs between a primitive's vertices, or weights the
stage writes), from each primitive's first vertex. And on every device, a mode past 1, its top bit
set or not, which Metal draws a third way that differs between pipeline states (every line's flat
inputs and `[[primitive_id]]` 0) and the runtime as mode 1: announced at the call. Cost: flat
stage writes), from each primitive's first vertex. And on every device, a draw at a mode past 1,
which Metal draws a third way and the runtime as mode 1, whose shape and pipeline state Metal draws
otherwise than mode 1 (a strip's odd triangles, every line's flat inputs and `[[primitive_id]]` 0,
sized points, the middle vertex of a triangle whose pipeline selects its slice or viewport, mesh
draws unmeasured): announced at the draw. Cost: flat
inputs or a computed primitive ID read another vertex than Metal's, or barycentric weights come in
another order than Metal's or round otherwise.
- `metal2vulkan-degrade-visibility-count-per-color` (precision). `VisibilityCountPerColor`: A