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:
@@ -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"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user