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 af5415e commit 08227ef
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 08227ef

Please sign in to comment.