Skip to content

Commit 08227ef

Browse files
committed
HACK: enable mvk debug & metal validation
1 parent af5415e commit 08227ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/src/native.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ impl NativeTest {
5252
std::env::set_var("MTL_DEBUG_LAYER", env_value);
5353
std::env::set_var("MTL_SHADER_VALIDATION", env_value);
5454

55+
// Enable MoltenVK Debug for our failing test
56+
if config.name.contains("subgroup_operations") {
57+
std::env::set_var("MVK_CONFIG_LOG_LEVEL", "2");
58+
std::env::set_var("MVK_DEBUG", "1");
59+
std::env::set_var("MTL_DEBUG_LAYER", "1");
60+
std::env::set_var("MTL_SHADER_VALIDATION", "1");
61+
}
62+
5563
execute_test(config, Some(test_info), adapter_index).await;
5664
}),
5765
}

0 commit comments

Comments
 (0)