From 638eea19b666409340a759bc2654e9e0b870945f Mon Sep 17 00:00:00 2001 From: Peter Kohaut Date: Fri, 21 Jan 2022 09:55:35 +0100 Subject: [PATCH] Fix compilation on Android Function testSemaphoreImportSyncFdSignaled is not used and the build process for Android fails because of it. Fix just removes this unused function. Components: Vulkan, AOSP Affects: None VK-GL-CTS Issue: 3465 Change-Id: I82ad0e8df8196ac08d0003f30b7e624461239f84 --- .../vulkan/api/vktApiExternalMemoryTests.cpp | 25 ---------------------- 1 file changed, 25 deletions(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp index 2ab9c72..e50a9b4 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp @@ -1163,31 +1163,6 @@ tcu::TestStatus testSemaphoreSignalWaitImport (Context& context, } } -tcu::TestStatus testSemaphoreImportSyncFdSignaled (Context& context, - const SemaphoreTestConfig config) -{ - const vk::PlatformInterface& vkp (context.getPlatformInterface()); - const CustomInstance instance (createTestInstance(context, config.externalType, 0u, 0u)); - const vk::InstanceDriver& vki (instance.getDriver()); - const vk::VkPhysicalDevice physicalDevice (vk::chooseDevice(vki, instance, context.getTestContext().getCommandLine())); - const deUint32 queueFamilyIndex (chooseQueueFamilyIndex(vki, physicalDevice, 0u)); - const vk::VkSemaphoreImportFlags flags = config.permanence == PERMANENCE_TEMPORARY ? vk::VK_SEMAPHORE_IMPORT_TEMPORARY_BIT : (vk::VkSemaphoreImportFlagBits)0u; - - checkSemaphoreSupport(vki, physicalDevice, config.externalType); - - { - const vk::Unique device (createTestDevice(context, vkp, instance, vki, physicalDevice, config.externalType, 0u, 0u, queueFamilyIndex)); - const vk::DeviceDriver vkd (vkp, instance, *device); - const vk::VkQueue queue (getQueue(vkd, *device, queueFamilyIndex)); - NativeHandle handle = -1; - const vk::Unique semaphore (createAndImportSemaphore(vkd, *device, config.externalType, handle, flags)); - - submitEmptyWait(vkd, queue, *semaphore); - - return tcu::TestStatus::pass("Pass"); - } -} - tcu::TestStatus testSemaphoreMultipleExports (Context& context, const SemaphoreTestConfig config) { -- 2.7.4