Fix compilation on Android
authorPeter Kohaut <peter.kohaut@arm.com>
Fri, 21 Jan 2022 08:55:35 +0000 (09:55 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 3 Feb 2022 16:56:24 +0000 (16:56 +0000)
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

external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp

index 2ab9c72..e50a9b4 100644 (file)
@@ -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<vk::VkDevice>          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<vk::VkSemaphore>       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)
 {