New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Vulkan validation layers for shell_test #17684
Enable Vulkan validation layers for shell_test #17684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% clear on what the implied relationship between IsDebuggingEnabled() and ValidationLayersEnabled() should be here..
Yeah. There seems to be no point to IsDebuggingEnabled
now. Let's just get rid of it.
vulkan/vulkan_utilities.cc
Outdated
@@ -10,16 +10,24 @@ | |||
|
|||
namespace vulkan { | |||
|
|||
static bool sValidationLayersEnabled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's stay away from static variables. This makes it hard to perform validation on a per Flutter application level basis. This flag can be store in VulkanApplication
instead and queried when the layers are being setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
6d9909d
to
92307ea
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm not 100% clear on what the implied relationship between IsDebuggingEnabled() and ValidationLayersEnabled() should be here, but I've made validation layers strictly imply that debugging is enabled.