From b3954e2f9d7833764a5647587100420a71f6cfd5 Mon Sep 17 00:00:00 2001 From: Tony Zlatinski Date: Tue, 9 Jun 2020 22:11:50 -0500 Subject: [PATCH] Don't request DebugReportRecorder with no layers Don't request the creation of DebugReportRecorder when there are no layers installed. When creating a custom instance with createCustomInstance(), one can not expect the vkCreateDebugReportCallbackEXT to be available when the layers are not enabled(installed) and the VK_EXT_debug_report is not requested. Affects: dEQP-VK.api.tooling_info.* Components: Vulkan VK-GL-CTS issue: 2411 Change-Id: Ib19a8b12a0562f7588b23338cb7ff4abea3da9d9 --- external/vulkancts/modules/vulkan/api/vktApiToolingInfoTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiToolingInfoTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiToolingInfoTests.cpp index a5384f4..96d906d 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiToolingInfoTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiToolingInfoTests.cpp @@ -80,7 +80,7 @@ CustomInstance createCustomInstance (Context& context, bool allowLayers) } Move instance = vk::createDefaultInstance(vkp, apiVersion, enabledLayersStr, enabledExtensions, DE_NULL); - return CustomInstance(context, instance, allowLayers, context.getTestContext().getCommandLine().printValidationErrors()); + return CustomInstance(context, instance, !enabledLayers.empty(), context.getTestContext().getCommandLine().printValidationErrors()); } bool checkToolsProperties (Context& context, const std::vector& deviceToolPropertiesEXTArray) -- 2.7.4