Skip to content
Open
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
14 changes: 12 additions & 2 deletions crates/xcl/src/gpu/recomp/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3367,8 +3367,18 @@ fn gpu_uma_import_check_at_init() {
return;
}
crate::hle::d3d12x::real::init().expect("real D3D12.X backend");
let s = crate::hle::d3d12x::real::stats().uma_import_check;
assert!(s.starts_with("ok") || s.starts_with("off"), "{s}");
let st = crate::hle::d3d12x::real::stats();
let s = st.uma_import_check;
// a D3D12 with no heaps over process memory (D3DMetal answers E_NOTIMPL): no window was
// imported, so there is nothing to check, and the check must not say it passed; any other
// failure to open the windows still fails below
if st.uma_error.starts_with("OpenExistingHeapFromAddress") && st.uma_error.contains("0x80004001") {
assert!(!s.starts_with("ok"), "check passed on windows that were not imported: {s}");
println!("no heaps over process memory on this D3D12 – skipping ({})", st.uma_error);
runner::skip_test("no GPU UMA");
return;
}
assert!(s.starts_with("ok") || s.starts_with("off"), "{s} (UMA: {})", st.uma_error);
}

/// End-to-end GPU test of the sparse-window VRAM runtime layout:
Expand Down
Loading