From 24bb947effc84dadad4a4c298bc69dc5e0cfb726 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 1 Oct 2020 17:18:23 +1000 Subject: [PATCH] Vulkan: Use VK_LAYER_KHRONOS_validation for validation VK_LAYER_LUNARG_standard_validation is deprecated. --- Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp index 990e38acec..d054f0db61 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp +++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp @@ -81,7 +81,7 @@ bool VulkanContext::CheckValidationLayerAvailablility() return strcmp(it.extensionName, VK_EXT_DEBUG_REPORT_EXTENSION_NAME) == 0; }) != extension_list.end() && std::find_if(layer_list.begin(), layer_list.end(), [](const auto& it) { - return strcmp(it.layerName, "VK_LAYER_LUNARG_standard_validation") == 0; + return strcmp(it.layerName, "VK_LAYER_KHRONOS_validation") == 0; }) != layer_list.end()); } @@ -127,7 +127,7 @@ VkInstance VulkanContext::CreateVulkanInstance(WindowSystemType wstype, bool ena // Enable debug layer on debug builds if (enable_validation_layer) { - static const char* layer_names[] = {"VK_LAYER_LUNARG_standard_validation"}; + static const char* layer_names[] = {"VK_LAYER_KHRONOS_validation"}; instance_create_info.enabledLayerCount = 1; instance_create_info.ppEnabledLayerNames = layer_names; }