Commit 02767228 authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Vulkan: replace VK_LAYER_LUNARG_standard_validation with VK_LAYER_KHRONOS_validation

Layer name VK_LAYER_LUNARG_standard_validation is deprecated.
VK_LAYER_KHRONOS_validation is the suggested replacement.

Bug: none
Change-Id: If917a734fd86c28bddfda3e651b97990be95f5d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1841232Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703300}
parent 4f947fe1
......@@ -126,7 +126,7 @@ bool VulkanDeviceQueue::Initialize(
}
std::unordered_set<std::string> desired_layers({
"VK_LAYER_LUNARG_standard_validation",
"VK_LAYER_KHRONOS_validation",
});
for (const VkLayerProperties& layer_property : device_layers) {
......
......@@ -155,11 +155,10 @@ bool VulkanInstance::Initialize(
[xlib_surface_extension_name](const char* e) {
return xlib_surface_extension_name == e;
}) != enabled_extensions.end();
// VK_LAYER_LUNARG_standard_validation 1.1.106 is required to support
// VK_LAYER_KHRONOS_validation 1.1.106 is required to support
// VK_KHR_xlib_surface.
constexpr base::StringPiece standard_validation(
"VK_LAYER_LUNARG_standard_validation");
"VK_LAYER_KHRONOS_validation");
for (const VkLayerProperties& layer_property : layer_properties_) {
if (standard_validation != layer_property.layerName)
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment