From 52e68881f9877062828ffc5823a7b13acef1db17 Mon Sep 17 00:00:00 2001 From: "J.D. Rouan" Date: Tue, 13 Oct 2020 13:04:05 -0700 Subject: [PATCH] Remove deprecated Validation Layer names. The individual validation layers have been deprecated and replaced by a single layer called VK_LAYER_KHRONOS_validation. See also: https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/master/LAYER_CONFIGURATION.md --- gapis/api/templates/vulkan_gfx_api_extras.tmpl | 12 +----------- gapis/api/vulkan/find_issues.go | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/gapis/api/templates/vulkan_gfx_api_extras.tmpl b/gapis/api/templates/vulkan_gfx_api_extras.tmpl index 1059c77617..4d6ee872a7 100644 --- a/gapis/api/templates/vulkan_gfx_api_extras.tmpl +++ b/gapis/api/templates/vulkan_gfx_api_extras.tmpl @@ -55,17 +55,7 @@ ¶ const char kVirtualSwapchainLayerName[] = "VirtualSwapchain"; const char kGraphicsSpyLayerName[] = "GraphicsSpy"; - const char* kValidationLayerNames[] = { - // Meta layers - "VK_LAYER_KHRONOS_validation", - "VK_LAYER_LUNARG_standard_validation", - // Regular layers - "VK_LAYER_GOOGLE_threading", - "VK_LAYER_LUNARG_parameter_validation", - "VK_LAYER_LUNARG_object_tracker", - "VK_LAYER_LUNARG_core_validation", - "VK_LAYER_GOOGLE_unique_objects", - }; + const char* kValidationLayerNames[] = { "VK_LAYER_KHRONOS_validation" }; const char kDebugReportExtensionName[] = "VK_EXT_debug_report"; ¶ diff --git a/gapis/api/vulkan/find_issues.go b/gapis/api/vulkan/find_issues.go index 3cc1288af2..590acd2cbb 100644 --- a/gapis/api/vulkan/find_issues.go +++ b/gapis/api/vulkan/find_issues.go @@ -29,17 +29,7 @@ import ( "github.com/google/gapid/gapis/service" ) -var validationLayerNames = [...]string{ - // Meta layers - "VK_LAYER_KHRONOS_validation", - "VK_LAYER_LUNARG_standard_validation", - // Regular layers - "VK_LAYER_GOOGLE_threading", - "VK_LAYER_LUNARG_parameter_validation", - "VK_LAYER_LUNARG_object_tracker", - "VK_LAYER_LUNARG_core_validation", - "VK_LAYER_GOOGLE_unique_objects", -} +var validationLayerNames = [...]string{ "VK_LAYER_KHRONOS_validation" } const ( // Since Android NDK r21, the VK_LAYER_KHRONOS_validation meta layer