diff --git a/d3d12/crates/leonida-gpu/src/host.rs b/d3d12/crates/leonida-gpu/src/host.rs index b22544b398..6a4030b408 100644 --- a/d3d12/crates/leonida-gpu/src/host.rs +++ b/d3d12/crates/leonida-gpu/src/host.rs @@ -14731,6 +14731,11 @@ mod refresh_tests { if std::env::var_os("LEONIDA_SEND_CHANGED").is_some_and(|v| v != "0") { assert_eq!(again, []); assert_eq!(written, [(2 * PAGE + 128, 2 * PAGE + 132), (2 * PAGE + 136, 2 * PAGE + 144)]); + } else if crate::toggled!("LEONIDA_TAKE_BLOCKS") { + // The page the landing took is no longer reported whole: it went up as the 4 KiB pieces + // that differed, so nothing is left dirty for it. The volatile writes are the next page. + assert_eq!(again, []); + assert_eq!(written, [(2 * PAGE, 2 * PAGE + 4096)]); } else { assert_eq!(again, [(PAGE, 2 * PAGE)]); assert_eq!(written, [(2 * PAGE, 3 * PAGE)]);