From: Tony Zlatinski Date: Wed, 10 Jun 2020 03:11:50 +0000 (-0500) Subject: Don't request DebugReportRecorder with no layers X-Git-Tag: upstream/1.3.5~1255^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3954e2f9d7833764a5647587100420a71f6cfd5;p=platform%2Fupstream%2FVK-GL-CTS.git 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 --- 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)