From a50c7fdeb55eca4a27c70151b4154665c32e22e9 Mon Sep 17 00:00:00 2001 From: local Date: Wed, 25 Nov 2026 11:09:41 -0600 Subject: [PATCH] Replay: buffers in heaps opened from memory are made again (without the cross-adapter flag) Co-Authored-By: Claude Opus 5.5 --- crates/victory-gpu/src/replay/play.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/victory-gpu/src/replay/play.rs b/crates/victory-gpu/src/replay/play.rs index b823576..b157414 100644 --- a/crates/victory-gpu/src/replay/play.rs +++ b/crates/victory-gpu/src/replay/play.rs @@ -735,7 +735,11 @@ impl Player { let m = moves.entry(format!("{seen:?}")).or_insert((0u32, 0u64)); *m = (m.0 + 1, m.1 + r.desc.width); } - let desc = gpu::to_desc(&r.desc); + let mut desc = gpu::to_desc(&r.desc); + // (Heaps are made without what let others open them.) + if matches!(r.place, Place::Placed { .. }) { + desc.Flags &= !D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER; + } let mut made: Option = None; let clear: Option = r.clear.map(|c| { // SAFETY: 20 bytes that were a clear value.