Skip to content
Open
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
2 changes: 1 addition & 1 deletion crates/xcl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::Path;
// `pso.rs` also contains cache storage and pipeline setup. Keep it out of the source hash so
// those changes do not discard translations; bump this only when its container parsing,
// translation options, profiles, or post-translation HLSL changes.
const TRANSLATION_GLUE_REVISION: &str = "pso-glue-v1";
const TRANSLATION_GLUE_REVISION: &str = "pso-glue-v2";

const TRANSLATOR_SOURCES: &[&str] = &[
"src/gpu/dxbc.rs",
Expand Down
4 changes: 2 additions & 2 deletions crates/xcl/src/gpu/recomp/pso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ fn cached_shader(
}

fn cache_allowed(stage: Stage, present: impl Fn(&str) -> bool) -> bool {
!["XCL_RECOMP_NO_STRUCTURED", "XCL_RECOMP_WHY", "XCL_X64_ALL_MASKS", "XCL_WAVE64_SPIN"]
!["XCL_RECOMP_NO_STRUCTURED", "XCL_RECOMP_WHY", "XCL_X64_ALL_MASKS", "XCL_WAVE64_SPIN", "XCL_SAFE_BARRIER"]
.iter()
.any(|name| present(name))
&& (stage != Stage::Pixel
Expand Down Expand Up @@ -905,7 +905,7 @@ mod shader_cache_tests {

#[test]
fn shader_cache_bypasses_debug_overrides() {
for name in ["XCL_RECOMP_NO_STRUCTURED", "XCL_RECOMP_WHY", "XCL_X64_ALL_MASKS", "XCL_WAVE64_SPIN"] {
for name in ["XCL_RECOMP_NO_STRUCTURED", "XCL_RECOMP_WHY", "XCL_X64_ALL_MASKS", "XCL_WAVE64_SPIN", "XCL_SAFE_BARRIER"] {
assert!(!cache_allowed(Stage::Compute, |v| v == name));
assert!(!cache_allowed(Stage::Vertex, |v| v == name));
assert!(!cache_allowed(Stage::Pixel, |v| v == name));
Expand Down
Loading