diff --git a/crates/metal2vulkan-rt/src/tests/draw.rs b/crates/metal2vulkan-rt/src/tests/draw.rs index d4e1b3153..b63481eb8 100644 --- a/crates/metal2vulkan-rt/src/tests/draw.rs +++ b/crates/metal2vulkan-rt/src/tests/draw.rs @@ -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!( ( diff --git a/crates/metal2vulkan-rt/src/tests/shadow.rs b/crates/metal2vulkan-rt/src/tests/shadow.rs index f5ad00ae2..09602806f 100644 --- a/crates/metal2vulkan-rt/src/tests/shadow.rs +++ b/crates/metal2vulkan-rt/src/tests/shadow.rs @@ -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::::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::::new()); }