Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion crates/xcl/src/gpu/recomp/pso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,8 @@ mod shader_cache_tests {
Ok((compiled(marker), rerouted))
})
.unwrap()
.dxil[0]
// (`compiled`: a DXIL container whose marker byte is 67, not its first byte)
.dxil[67]
};
let mut calls = 0;
assert_eq!(go(enormous_blob, 7, 1, true, &mut calls), 1);
Expand Down
10 changes: 8 additions & 2 deletions crates/xcl/src/hle/d3d12x/device_x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,8 +1373,14 @@ mod tests {
103, 107, // YUV (NV12, YUY2)
] {
let (out_fmt, out_flags) = make(3, fmt, 1, 0x4);
assert_eq!(out_fmt, fmt, "format {fmt} kept");
assert_eq!(out_flags & 0x4, 0, "format {fmt} must strip ALLOW_UNORDERED_ACCESS");
if matches!((fmt, out_fmt), (85, 28) | (88, 87)) {
// promoted to a format a PC driver takes as a UAV of the same values: the flag
// stays, and is valid there
assert_eq!(out_flags & 0x4, 0x4, "format {fmt} promoted to {out_fmt} keeps ALLOW_UNORDERED_ACCESS");
} else {
assert_eq!(out_fmt, fmt, "format {fmt} kept");
assert_eq!(out_flags & 0x4, 0, "format {fmt} must strip ALLOW_UNORDERED_ACCESS");
}
}
// Multisampled textures never support UAV even on UAV-capable formats:
assert_eq!(make(3, 28, 4, 0x5), (28, 0x1));
Expand Down
Loading