rt tests: the copy form's held-strip read and its draw's eighth barrier

The covering-area host test expected a read over nine held strips to copy all of it. The ninth
strip, at the read's end, is still held after the first went past eight, so the plan copies the
read less that strip, one area: [0, 64] by [0, 8].

The attachment-read device test expected seven barriers on the copy form. The new shadow is homed
by the next submission's upload, whose end barrier counts too: eight.

Verified: the UHD 630 leg of a20271ce5b (job m3-max-46933) failed exactly these two assertions,
62 of 64 passing, with attachment_read_copies 2 printed.
This commit is contained in:
Anees Iqbal committed 2026-11-18 08:57:13 -08:00
1 parent 9f2ca244ff
commit dcc1b7affe
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -1125,10 +1125,11 @@ mod on_device {
let shadows = counters.gauges();
// Through the loop: the pass's two, the move, the memory barrier's, the segment's
// end. Through a copy: the pass's two, two around each of the two copies, the
// segment's end.
// segment's end, and the upload's end, which moves the new shadow home ahead of
// the pass.
let barriers = match looped {
true => 5,
false => 7,
false => 8,
};
assert_eq!(
(
+3 -2
View File
@@ -176,9 +176,10 @@ fn a_covering_area_drops_what_it_covers_and_past_eight_the_oldest_goes() {
assert_eq!(held.plan(&[strips[0]]), vec![strips[0]]);
// The last ones are still held.
assert_eq!(held.plan(&[strips[8]]), Vec::<Area>::new());
// One area over every strip drops them all and holds them.
// One area over every strip copies what the held strip at its end leaves of it, one area,
// then drops them all and holds it.
let all = rect([0, 72], [0, 8]);
assert_eq!(held.plan(&[all]), vec![all]);
assert_eq!(held.plan(&[all]), vec![rect([0, 64], [0, 8])]);
for strip in &strips {
assert_eq!(held.plan(&[*strip]), Vec::<Area>::new());
}