diff --git a/AGENTS.md b/AGENTS.md index 42022167f..410f5cf0e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,7 +58,7 @@ order, and a lower one never overrides a higher one. limit and memory-type queries. Product code holds no vendor, device or driver ID, and no runtime policy switch. A test enforces this for `metal2vulkan-runtime`. One form means one form per Vulkan capability: where the floor cannot require a feature, that feature's query may choose a - second form, for eleven only: 16-bit floats, storage-image reads without a format, 64-bit + second form, for twelve only: 16-bit floats, storage-image reads without a format, 64-bit atomics, 64-bit floats, SIMD groups (the subgroup size range with its stages and operations, and maximal reconvergence), unified memory (decided by Vulkan's physical device type alone: one copy of a Managed buffer on an integrated or CPU @@ -76,7 +76,14 @@ order, and a lower one never overrides a higher one. stencil operations, then once for each of those bits, and, where the draw writes depth under a depth compare other than always or never, once more for the depth; those draws, and the note that fragments of one draw that overlap leave the OR of their values, are recorded as a known - gap), and Shared memory's host coherence (decided by the host-coherent flag of the memory type + gap), bound buffers (a device that enables the pipeline-robustness feature and reports + robustBufferAccess2 and robustBufferAccessUpdateAfterBind, with the limits its layout reaches, + binds a kernel's buffer arguments, each contained by its pipeline's robust buffer access 2; a + device without them reaches them at their device addresses with each access checked in the + shader, and that check's cost is recorded as a known gap, as is the check that stays, by + structure, on a slot a wide pointer, a typed atomic or the stage-in fetch reaches, on a slot + bound below its argument's alignment, and on every render stage), and Shared memory's host + coherence (decided by the host-coherent flag of the memory type Shared takes, the first host-visible, host-cached type a buffer can use, a host-coherent one first: a device whose type has it makes no flush or invalidate call; on a device whose type is the cached type without coherence, the Shared memory a submission's command buffers and Managed @@ -88,7 +95,8 @@ order, and a lower one never overrides a higher one. flush's cost grows with the Shared bytes a submission reaches, are recorded as a known gap). A second form chosen by anything else is not allowed. 3. **Native-like speed.** Structure decides speed: driver-owned memory, optimal images in real - layouts, direct addresses, nothing copied that Metal would not copy. Optimal images have two + layouts, direct addresses (a kernel's bound buffers in their place where rule 2's query takes + them), nothing copied that Metal would not copy. Optimal images have two exceptions. A texture over a Shared buffer: a linear image on that buffer's memory, in the device's own layout, created so its first use keeps the bytes, with the alignment the guest reads from Metal's minimum linear texture alignment, and where a format query offers no linear