Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c23cdeb

Browse files
committed
[Impeller] Turns on the Metal validator for impeller_unittests.
1 parent 3d6d915 commit c23cdeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/run_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ def make_test(name, flags=None, extra_env=None):
477477
extra_env={
478478
# pylint: disable=line-too-long
479479
# See https://developer.apple.com/documentation/metal/diagnosing_metal_programming_issues_early?language=objc
480+
'METAL_DEBUG_ERROR_MODE': '0', # Enables metal validation.
481+
'METAL_DEVICE_WRAPPER_TYPE': '1', # Enables metal validation.
480482
'MTL_SHADER_VALIDATION':
481483
'1', # Enables all shader validation tests.
482484
'MTL_SHADER_VALIDATION_GLOBAL_MEMORY':

0 commit comments

Comments
 (0)