Enable Vulkan validation layers
BUG=dawn:150 Change-Id: Ie1b252f7fecb323badb40a226e185390d0c241e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7281 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Hao Li <hao.x.li@intel.com>
This commit is contained in:
parent
f3f5bf480d
commit
1458dbf518
|
@ -120,7 +120,8 @@ namespace dawn_native { namespace vulkan {
|
||||||
usedKnobs.renderDocCapture = true;
|
usedKnobs.renderDocCapture = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(DAWN_ENABLE_ASSERTS)
|
|
||||||
|
if (GetInstance()->IsBackendValidationEnabled()) {
|
||||||
if (mGlobalInfo.standardValidation) {
|
if (mGlobalInfo.standardValidation) {
|
||||||
layersToRequest.push_back(kLayerNameLunargStandardValidation);
|
layersToRequest.push_back(kLayerNameLunargStandardValidation);
|
||||||
usedKnobs.standardValidation = true;
|
usedKnobs.standardValidation = true;
|
||||||
|
@ -129,7 +130,8 @@ namespace dawn_native { namespace vulkan {
|
||||||
extensionsToRequest.push_back(kExtensionNameExtDebugReport);
|
extensionsToRequest.push_back(kExtensionNameExtDebugReport);
|
||||||
usedKnobs.debugReport = true;
|
usedKnobs.debugReport = true;
|
||||||
}
|
}
|
||||||
#endif
|
}
|
||||||
|
|
||||||
// Always request all extensions used to create VkSurfaceKHR objects so that they are
|
// Always request all extensions used to create VkSurfaceKHR objects so that they are
|
||||||
// always available for embedders looking to create VkSurfaceKHR on our VkInstance.
|
// always available for embedders looking to create VkSurfaceKHR on our VkInstance.
|
||||||
if (mGlobalInfo.macosSurface) {
|
if (mGlobalInfo.macosSurface) {
|
||||||
|
|
Loading…
Reference in New Issue