RUNTIME 2431 splices a shadow's copy back into host pages where the
device's check of those pages failed or has not answered. Its staged form
(a copy back out of a staging buffer: a 2D texture whose texels start off
their alignment, or a texture buffer) recorded its rows' whole lines as one
vkCmdCopyBuffer region a row, bypassing row_copies.rs, which every other
copy back out of a staging buffer goes through. So on ANV and the RTX 5080
Laptop (DriverFact::RowCopiesDispatchFaster), and the Iris Xe splices
every such copy back, the rows went as N regions again instead of one
dispatch, and WorkCounts::row_copies counted none.
runtime_lane::row_copies::a_shadow_s_staged_rows_go_back_as_one_dispatch
caught it on lavapipe: its device has no record of the check's verdicts,
so the copy back is spliced, and the row copies since were (0, 0) where
(0, 1) was wanted.
SplicePlan::place now makes a staged splice's whole lines a RowCopies from
the staging buffer into the truth (counted, one dispatch where the device
runs it faster); record_spliced records it; the encoder's splice records it
with the copy's stages and uses as that dispatch's (ShadowCopy::spliced_uses:
a texture buffer's shadow read by both the dispatch and the edges' copy),
retains its set, and notes the host step's write as before.
The validation test is split: its clear over the pages is a helper; the
original test keeps its contract, and
a_spliced_shadow_s_whole_lines_go_back_as_one_dispatch runs it on a device
whose check fails (DeviceOptions::fail_in_place_check), asserting the copy
back spliced and its whole lines one row copy, dispatched where faster.
Cause: shadow_splice.rs `splices` splices a copy back into host pages while the in-place check is
failed or pending (RUNTIME 2431, 9ea0a9c1f6); the staged splice recorded its whole lines as
vkCmdCopyBuffer, one region a row (shadow.rs record_spliced), never through RowCopies: N regions
where one dispatch was planned, on every device that splices (the Iris Xe always). RUNTIME_VERSION 2486.
Verified: msi job m3-max-38028, lavapipe, --cfg m2v_cpu_icd: validation 43/43 (runtime_lane::row_copies
all four, a_shadow_s_staged_rows_go_back_as_one_dispatch failing 3/3 before at 51280732aa
(m3-max-37994) and passing now; the new a_spliced_shadow_s_whole_lines_go_back_as_one_dispatch:
shadow_copies_back_spliced == 1, row copies (0, 1)); runtime shadow and splice tests 113/113; clippy
-p runtime -p validation --all-targets --all-features -D warnings 0. Plain and --cfg m2v_gpu clippy
and rustdoc in m3-max-38030.