message: Enable Vulkan validation layers
diff: @@ -120,7 +120,8 @@ namespace dawn_native { namespace vulkan {
  usedKnobs.renderDocCapture = true;
  }
  #endif
  -#if defined(DAWN_ENABLE_ASSERTS)
  +
  + if (GetInstance()->IsBackendValidationEnabled()) {
  if (mGlobalInfo.standardValidation) {
  layersToRequest.push_back(kLayerNameLunargStandardValidation);
  usedKnobs.standardValidation = true;
  @@ -129,7 +130,8 @@ namespace dawn_native { namespace vulkan {
  extensionsToRequest.push_back(kExtensionNameExtDebugReport);
  usedKnobs.debugReport = true;
  }
  -#endif
  + }
  +
  // Always request all extensions used to create VkSurfaceKHR objects so that they are
  // always available for embedders looking to create VkSurfaceKHR on our VkInstance.
  if (mGlobalInfo.macosSurface) {
  