Revert "Replay: buffers in heaps opened from memory are made again (without the cross-adapter flag)"
This reverts commit a50c7fdeb5.
This commit is contained in:
1 parent
b5410ccd82
commit
fa4f6c33e6
1 file changed
+1
-5
@@ -788,11 +788,7 @@ impl Player {
|
|||||||
let m = moves.entry(format!("{seen:?}")).or_insert((0u32, 0u64));
|
let m = moves.entry(format!("{seen:?}")).or_insert((0u32, 0u64));
|
||||||
*m = (m.0 + 1, m.1 + r.desc.width);
|
*m = (m.0 + 1, m.1 + r.desc.width);
|
||||||
}
|
}
|
||||||
let mut desc = gpu::to_desc(&r.desc);
|
let 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<ID3D12Resource> = None;
|
let mut made: Option<ID3D12Resource> = None;
|
||||||
let clear: Option<D3D12_CLEAR_VALUE> = r.clear.map(|c| {
|
let clear: Option<D3D12_CLEAR_VALUE> = r.clear.map(|c| {
|
||||||
// SAFETY: 20 bytes that were a clear value.
|
// SAFETY: 20 bytes that were a clear value.
|
||||||
|
|||||||
Reference in new issue
Block a user