rt: a Shared heap's texture on a device without unified memory is an image of its own
The L21 ruling, the third use of rule 2's unified-memory query (Vulkan's device type). On an integrated or CPU device a Shared heap's image texture lies in its heap, as before. Elsewhere it is an optimal image of its own in device memory, made as new_texture makes one but not zeroed (Metal's heap textures are not), and its heap range is left unused. Before, a discrete device either refused the placement (Gap::HeapTexture where its optimal images take no Shared type: the RTX 2080 and 3090 on NVIDIA 620.70.06) or bound the image in system memory, which every read crossed the link for (97 times a Private heap's time on an RX 7900 XTX, job m3-max-79841). How: heap_source decides by core.unified_memory() and the block's class. The own form checks the placement against heap_texture_size_and_align's answers by the same rule the in-heap form uses (heap_place, factored out of make: a heap range past its block, a texture past the heap's end, a byte off the alignment are Refusal::HeapTexturePlace), then makes Source::HeapOwn: Bind::Pooled (a place in a texture block or an allocation of its own, which spills as a texture's does), the heap's hazard id kept, no alias Placement, and Under::Heap with at None, so use_heap still covers it (heap_block) and blits see no shared span (bound). Texture buffers and textures over heap buffers are untouched. Docs: AGENTS.md rule 2's unified sentence gains the clause (the count stays fourteen); the runtime README's heap text and known gaps (the device memory sum beside the heap's block, where it runs out, and the earlier speed row); new_heap_texture(_for_views), heap_texture_size_and_align, has_unified_memory and Gap::HeapTexture docs; docs/API.md and the conformance heap-size side's step 2; docs/REFUSALS.md regenerated (HeapTexturePlace's site is heap_place). RUNTIME_VERSION 2564 (renumbered at landing: development held 2563). runtime-sources.sha256 unchanged (guard PASS, m3-max-84127). Verified: red FAIL / new PASS on the RTX 3090 (build m3-max-84138, run 84144), the RX 7900 XTX (84137, 84221; rt suite under m2v_gpu 993 passed, 4 skipped, 84222) and the Iris Xe (84227, 84238); CPU suites 84127 (conformance + rt 1279 passed, 2 skipped); clippy plain 84180, m2v_gpu 84172, m2v_cpu_icd 84181, rustdoc + api-docs 84182, all EXIT=0; states-only play on lavapipe 84256 equal to the base (gb-3090-r2 10643 render / 15299 compute, windrag-780m-b4-um790 8972 / 225, 0 refused). The consumer's arm64 guest walk on the RTX 3090 at pin S (m3-max-84046) asked for no texture on a Shared heap, so the evidence is the device tests and timing.
This commit is contained in:
1 parent
d35283294c
commit
69033afcd4
9 files changed
+156
-69
No files matched your search
+4
-2
@@ -2793,8 +2793,10 @@ named states the rule in full.
|
||||
numbers with Metal's; it holds each answer to three steps: (1) the alignment is a power of two;
|
||||
(2) a Private descriptor's texture is made at offset `align` in a heap of `align + size` bytes;
|
||||
(3) there, level 0's first slice written from a buffer reads back unchanged. A Shared descriptor
|
||||
is held to the same steps in a heap of a Shared block where the device's image takes the Shared
|
||||
memory type, and to step 1 where its placement there is `Gap::HeapTexture`. A Managed or
|
||||
is held to the same steps in a heap of a Shared block where the runtime makes it there (on a
|
||||
device without unified memory always, as an image of its own; on one with it where the
|
||||
device's image takes the Shared memory type), and to step 1 where its placement there is
|
||||
`Gap::HeapTexture`. A Managed or
|
||||
Memoryless descriptor is held to step 1 alone, as no heap of either mode is made. A descriptor
|
||||
whose bytes the runtime does not move (depth and stencil both, multisample, `Depth32Float`) is
|
||||
held to steps 1 and 2.
|
||||
|
||||
Reference in new issue
Block a user