Revoke a queue at its second caused GPU error, as Metal does
The steps this packet landed as, in order: - Draw private types in a pulled list form where the indexed list differs from Metal Content: the tree of `development` at d3fc3a5794, unchanged.
This commit is contained in:
1 parent
a3a4cf756d
commit
027451fc5f
45 files changed
+1843
-227
No files matched your search
+19
-1
@@ -490,7 +490,14 @@ Where Metal's rules differ from Vulkan's, the pipeline gives Metal's answer:
|
||||
buffer, a vertex function that writes memory in that form, and a mesh pipeline.
|
||||
A draw of Metal's private quads or quad strip, which the consumer lists as two triangles a quad
|
||||
(`BindState::quad_primitive_ids`), runs the fragment variant that reads `PrimitiveId` shifted
|
||||
right by one (`VariantKey::quad_primitive_ids`), as Metal counts one primitive a quad.
|
||||
right by one (`VariantKey::quad_primitive_ids`), as Metal counts one primitive a quad. A
|
||||
private type's draw whose vertex function writes the varying, or writes memory (Metal runs it
|
||||
once for each vertex of its list, where an indexed draw may run a shared vertex once), runs the
|
||||
private list form (`VariantKey::private_list`, `BindShape::private_list`; needs device
|
||||
addresses): the consumer draws its list without indices from its first index as first vertex,
|
||||
and the vertex function reads each position's index, and Metal's base vertex in the word before
|
||||
the list, at the list's address (`PushHole::CaptureIndexAddress`), adding them as Metal's vertex
|
||||
ID wraps, so each position runs once and the positions count Metal's primitives.
|
||||
Behind an emulated post-tessellation vertex function the varying carries the patch's position
|
||||
in its draw (tessellation, below).
|
||||
- A device draws to at most the lesser of its `maxColorAttachments` and
|
||||
@@ -3042,6 +3049,17 @@ each item named states the rule in full.
|
||||
the runtime's do (0.04 to 1.5 ms after it on MoltenVK, Metal's 0.01 to 0.03 ms).
|
||||
- **A page fault or a victim of the GPU's recovery completes as its work does** (about 1 ms on
|
||||
MoltenVK), where Metal completed it 16.8 to 30.0 ms after its commit.
|
||||
- **A queue's second caused GPU error revokes it, as Metal's does**, and only an event wait held
|
||||
across the revocation is answered unmeasured. Measured on the M3 Max (macOS 27.0.1, about sixty
|
||||
command buffers): page faults and hangs (`CommandBufferError::PageFault`, `GpuHang`) count
|
||||
against their queue, victims of the GPU's recovery (`GpuRecoveryVictim`) do not; from the
|
||||
completion of the queue's second counted command buffer, every one committed on that queue fails
|
||||
at its commit with `CommandBufferError::AccessRevoked` (`MTLCommandBufferErrorAccessRevoked`, 4),
|
||||
running nothing and firing none of its event signals, for good (two seconds on too), while one
|
||||
committed before it runs; the device's other queues, new ones too, run on. The runtime counts the
|
||||
faults and hangs it makes Metal's answer for (primitive type 9, an execution of indirect
|
||||
commands under a state it cannot inherit), not the ones the driver relays, and decides at the
|
||||
commit: a command buffer committed before the revocation runs whatever its event waits.
|
||||
|
||||
**Heaps and memory**
|
||||
|
||||
|
||||
Reference in new issue
Block a user