Row L291: a texture over a buffer laid in place (a linear image on the
buffer's memory, rule 3's form) took neither the feedback usage nor a shadow,
so a draw that read it as an attachment of its own pass, through a texture or
by a fetch, was Gap::Draw (AttachmentRead, FetchedAttachment) on every device.
Metal reads any render target this way.
Form (the ruled one: rule 2's attachment feedback loop form, with the counted
shadow copy where it is not available, a known gap):
- Plan::linear_loop. check_over sets it where the plan reads attachments, the
device has the feedback loop, the format's linear tiling features sample it,
and the linear image query makes the image with the sampled and feedback
usages at the texture's extent (asked with the dma-buf handle for a dma-buf's
import). Plan::linear_usage then adds both usages.
- If the linear image with those usages does not lie as the texture's bytes do
(Unmade::Unfit), it is made again in place without them, and a draw reads it
through its shadow where the device makes one (Plan::shadow_offered), as a
device without the loop does. Only after that does a texture fall back to the
copied form, as before.
- The pass moves the image from the general layout to the feedback layout and
back, through the same moves a surface plane takes. Once it is back in
general, the image and the buffer are again aliases that read their bytes
alike. vkspec, memory aliasing: "Buffers, linear tensors, and linear image
subresources are considered host-accessible subresources when they are in
any of these layouts: VK_IMAGE_LAYOUT_PREINITIALIZED, VK_IMAGE_LAYOUT_GENERAL,
VK_IMAGE_LAYOUT_ZERO_INITIALIZED_EXT" and "If two aliases are both
host-accessible, then they interpret the contents of the memory in
consistent ways, and data written to one alias can be read by the other
alias."
Docs: the runtime README says where the image leaves the general layout
(Memory blocks and buffers) and how a draw reads it (Render encoders). Its
known gaps of render encoders gain the shadow for an in-place target whose
linear image takes no feedback usage, and drop the refusal. error.rs's
AttachmentRead doc is updated, and REFUSALS.md is regenerated (unchanged).
known-gaps-rt.tsv drops the 15 rows the change fixes, each of which the replay
printed as "the gap looks fixed" once the draw read its target in place:
- pass-start-barrier-over-buffer-{read, sample, barrier-read, barrier-sample,
draw-barrier-read} on llvmpipe and the Iris Xe (10 rows): their targets are
in place on these two, and the reading draw was refused; it now reads its
target in place. The 780M, the RX 7900 XTX and the RX 550 had no rows for
these cases; their replays report "differed, justified" (the case's
accepted difference).
- pass-start-barrier-new-texture-chain on llvmpipe, the Iris Xe, the 780M, the
RX 7900 XTX and the RX 550 (5 rows): its new texture over a buffer is in
place on all five (the refusal arose only there), and its reading draw was
refused the same way; it now reads its target in place.
CONFORMANCE-COVERAGE.md is regenerated.
Verified:
- Green, on lavapipe, m3-max-78715 (at 60d2af3017, this change before the
ledger and layouts edits): 12 of 12 passed (876 skipped). Both forms read
in place through the feedback loop.
- Cards, at 921a33a894, running over_reads, fetch-over and the layouts
in-place test, 3 of 3 passed on each:
- Radeon 780M (RADV, Mesa 26.2.6), m3-max-78784: in place, through the loop.
- Iris Xe (ANV, Mesa 26.2.6), m3-max-78819: in place, through the loop.
- RTX 3090 (NVIDIA 620.70.06), m3-max-78785: its linear tiling lays these
targets in the copied form, so the in-place path did not run there.
- The shadow form for an in-place target (a linear query that refuses the
feedback usage) ran on no lab device: unaudited.
- Conformance replay (the case selection, or every case for lavapipe) with
the 15 rows dropped, EXIT=0 with no surprise either way:
- llvmpipe, m3-max-78743 (at 580fecacb7, every case);
- RX 7900 XTX, m3-max-78749; RX 550, m3-max-78750; Radeon 780M,
m3-max-78751; Iris Xe, m3-max-78760 (each at f9f3178302).
The trees differ from 921a33a894 only in other venues' rows and the
layouts test.
- m3-max-78783 at 921a33a894: workspace clippy (all targets, all features,
-D warnings) EXIT=0 in all three configurations (plain, --cfg m2v_cpu_icd,
--cfg m2v_gpu); Rustdoc EXIT=0. The runtime suite on lavapipe: 885 tests
run, 885 passed, 3 skipped.
- m3-max-78757 at f9f3178302: private Rustdoc of the runtime EXIT=0. The
conformance crate's suite: 1047 of 1047 passed, 0 skipped.