Added metal validation for `impeller_unittests (flutter/engine#55527)

This turns on Metal validation for launching impeller_unittests from the tests panel.  This matches the default behavior of launching tests from XCode.  Without these assertions errors in Metal are completely silent.  In my case I just got a black screen until I tried running the tests through xcode.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
gaaclarke
2024-09-30 12:19:08 -07:00
committed by GitHub
parent 05fc8c01db
commit 74788642ea
2 changed files with 11 additions and 0 deletions

View File

@@ -145,6 +145,12 @@
"prependTestRunningArgs": [
"--enable_playground"
]
},
"env": {
"MTL_DEBUG_LAYER": "1",
"MTL_DEBUG_LAYER_ERROR_MODE": "assert",
"MTL_DEBUG_LAYER_WARNING_MODE": "nslog",
"MTL_SHADER_VALIDATION": "1"
}
},
{

View File

@@ -133,6 +133,11 @@ settings:
gtest:
prependTestRunningArgs:
- --enable_playground
env:
MTL_DEBUG_LAYER: "1"
MTL_DEBUG_LAYER_ERROR_MODE: assert
MTL_DEBUG_LAYER_WARNING_MODE: nslog
MTL_SHADER_VALIDATION: "1"
- name: display_list_unittests_arm64
pattern: ../out/host_debug_unopt_arm64/display_list_unittests
runTask: