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
7 changes: 6 additions & 1 deletion crates/xcl/src/hle/d3d12x/device_x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,12 @@ mod tests {
let mut r: Option<ID3D12Resource> = None;
dev.CreatePlacedResource(&heap, 0, &d, D3D12_RESOURCE_STATES(state as i32), None, &mut r).map(|_| r)
};
assert!(place(0x8 & real::PC_RESOURCE_STATES).is_err(), "UNORDERED_ACCESS without the UAV flag");
// Microsoft's runtime refuses this state for a resource without the UAV flag. vkd3d-proton
// (under Wine) does not check it and creates the resource, so the refusal is asserted on
// Windows only; the state XCL asks for is checked on both below.
if !crate::util::under_wine() {
assert!(place(0x8 & real::PC_RESOURCE_STATES).is_err(), "UNORDERED_ACCESS without the UAV flag");
}
let state = pc_initial_state(6, 0x8);
assert_eq!(state, D3D12_RESOURCE_STATE_DEPTH_WRITE.0 as u32);
let r = place(state).unwrap_or_else(|e| panic!("placed in {state:#x}: {e}"));
Expand Down
Loading