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
12 changes: 10 additions & 2 deletions crates/xcl/src/hle/d3d12x/real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,19 @@ unsafe fn check_uma_import(device: &ID3D12Device, u: &crate::gpu::uma::Uma, bufs
readback.Unmap(0, None);
Ok(got)
};
let got = run();
let got = match run() {
Ok(got) => got,
Err(e) => {
// The copy may still be running: what it uses stays (a few KiB, once). Released under
// the GPU, vkd3d-proton frees it at once and the GPU faults (RADV: page faults, then a
// ring timeout) – a slow first use of the imported window is enough to get here.
std::mem::forget((queue, alloc, list, fence, readback));
return Err(e);
}
};
for &(_, _, p, _) in &probes {
u.free(p);
}
let got = got?;
let wrong: Vec<String> =
probes.iter().filter(|&&(_, i, _, c)| got[i] != c).map(|&(k, i, _, c)| format!("window {k}: wrote {c:#x}, the GPU read {:#x}", got[i])).collect();
if !wrong.is_empty() {
Expand Down
Loading