Skip to content

Commit

Permalink
HACK: enable mvk debug & metal validation
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Oct 24, 2023
1 parent 38dc5f5 commit 21549e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ impl NativeTest {
std::env::set_var("MTL_DEBUG_LAYER", env_value);
std::env::set_var("MTL_SHADER_VALIDATION", env_value);

// Enable MoltenVK Debug for our failing test
if config.name.contains("subgroup_operations") {
std::env::set_var("MVK_CONFIG_LOG_LEVEL", "2");
std::env::set_var("MVK_DEBUG", "1");
std::env::set_var("MTL_DEBUG_LAYER", "1");
std::env::set_var("MTL_SHADER_VALIDATION", "1");
}

execute_test(config, Some(test_info), adapter_index).await;
}),
}
Expand Down

0 comments on commit 21549e6

Please sign in to comment.