AGENTS.md: rule 2's twelfth query-chosen form, bound buffers, and rule 3's clause for them

The owner's authorization of 11-26 (brief 'bound'): rule 2 counts twelve forms, the twelfth bound
buffers, stated as its query (the pipeline-robustness feature, robustBufferAccess2 and
robustBufferAccessUpdateAfterBind, then the limits its layout reaches) with the address form and
the check that stays by structure as known gaps; rule 3's direct addresses take a kernel's bound
buffers in their place where that query takes them. Worded by bound buffers, not by descriptor
type.
This commit is contained in:
Anees Iqbal committed 2026-11-26 05:04:55 -08:00
1 parent 6f4d604d68
commit 3ed7d424cf
1 file changed
+11 -3
+11 -3
View File
@@ -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