Add create functions for common Vulkan types.
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / wsi / vktWsiIncrementalPresentTests.cpp
index 9a2bbf1..2df4f3f 100644 (file)
@@ -213,25 +213,6 @@ de::MovePtr<vk::wsi::Window> createWindow (const vk::wsi::Display& display, cons
        }
 }
 
-vk::VkQueue getDeviceQueue (const vk::DeviceInterface& vkd, vk::VkDevice device, deUint32 queueFamilyIndex, deUint32 queueIndex)
-{
-       vk::VkQueue queue = (vk::VkQueue)0;
-       vkd.getDeviceQueue(device, queueFamilyIndex, queueIndex, &queue);
-       return queue;
-}
-
-vk::Move<vk::VkSemaphore> createSemaphore (const vk::DeviceInterface&  vkd,
-                                                                                  vk::VkDevice                                 device)
-{
-       const vk::VkSemaphoreCreateInfo createInfo =
-       {
-               vk::VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
-               DE_NULL,
-               0u
-       };
-       return vk::createSemaphore(vkd, device, &createInfo);
-}
-
 void initSemaphores (const vk::DeviceInterface&                vkd,
                                         vk::VkDevice                                   device,
                                         std::vector<vk::VkSemaphore>&  semaphores)
@@ -255,18 +236,6 @@ void deinitSemaphores (const vk::DeviceInterface&  vkd,
        semaphores.clear();
 }
 
-vk::Move<vk::VkFence> createFence (const vk::DeviceInterface&  vkd,
-                                                                  vk::VkDevice                                 device)
-{
-       const vk::VkFenceCreateInfo createInfo =
-       {
-               vk::VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
-               DE_NULL,
-               0u
-       };
-       return vk::createFence(vkd, device, &createInfo);
-}
-
 void initFences (const vk::DeviceInterface&    vkd,
                                 vk::VkDevice                           device,
                                 std::vector<vk::VkFence>&      fences)