Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions d3d12/crates/leonida-gpu/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
Expand Down