From: Matthew Netsch Date: Fri, 22 Jul 2022 17:00:20 +0000 (+0000) Subject: Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/main X-Git-Tag: upstream/1.3.5~228 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=411d8631d6757d5d62e987b2ef8c0f5e1bc1a608;p=platform%2Fupstream%2FVK-GL-CTS.git Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/main Change-Id: I19b0c75e8e7ba0927e1b69a2dc4e1f2df1e952d1 --- 411d8631d6757d5d62e987b2ef8c0f5e1bc1a608 diff --cc external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp index 2a7ff15,4bfb59a..90b6383 --- a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp @@@ -5602,26 -5655,44 +5668,44 @@@ ResolveImageToImage::ResolveImageToImag if (m_options == COPY_MS_IMAGE_TO_MS_IMAGE_COMPUTE || m_options == COPY_MS_IMAGE_TO_MS_IMAGE_TRANSFER) { // 'queueFamilyIndex' will be updated in 'createCustomDevice()' to match the requested queue type. - uint32_t queueFamilyIndex = 0; + #ifdef CTS_USES_VULKANSC + m_customDevice = createCustomDevice(context, m_options, m_customInstance, queueFamilyIndex); + #else m_customDevice = createCustomDevice(context, m_options, queueFamilyIndex); + #endif // CTS_USES_VULKANSC m_device = m_customDevice.get(); + + #ifndef CTS_USES_VULKANSC + m_deviceDriver = de::MovePtr(new DeviceDriver(context.getPlatformInterface(), m_customInstance, m_device)); + #else - m_deviceDriver = de::MovePtr(new DeviceDriverSC(context.getPlatformInterface(), m_customInstance, m_device, context.getTestContext().getCommandLine(), context.getResourceInterface(), context.getDeviceVulkanSC10Properties()), vk::DeinitDeviceDeleter(context.getResourceInterface().get(), m_device)); ++ m_deviceDriver = de::MovePtr(new DeviceDriverSC(context.getPlatformInterface(), m_customInstance, m_device, context.getTestContext().getCommandLine(), context.getResourceInterface(), context.getDeviceVulkanSC10Properties(), context.getDeviceProperties()), vk::DeinitDeviceDeleter(context.getResourceInterface().get(), m_device)); + #endif // CTS_USES_VULKANSC + m_queue = getDeviceQueue(m_context.getDeviceInterface(), m_device, context.getUniversalQueueFamilyIndex(), 0u); m_alternativeQueue = getDeviceQueue(m_context.getDeviceInterface(), m_device, queueFamilyIndex, 0u); - m_alternativeQueueFamilyIndex = queueFamilyIndex; - m_alternativeAllocator = de::MovePtr(new SimpleAllocator(vk, m_device, getPhysicalDeviceMemoryProperties(vki, context.getPhysicalDevice()))); - m_allocator = m_alternativeAllocator.get(); + } + + m_alternativeQueueFamilyIndex = queueFamilyIndex; + + #ifndef CTS_USES_VULKANSC + const DeviceInterface& vk = m_context.getDeviceInterface(); + #else + const DeviceInterface& vk = (DE_NULL != m_deviceDriver) ? *m_deviceDriver : m_context.getDeviceInterface(); + #endif // CTS_USES_VULKANSC - // Release the command buffer. - m_cmdBuffer = Move(); + m_alternativeAllocator = de::MovePtr(new SimpleAllocator(vk, m_device, getPhysicalDeviceMemoryProperties(vki, context.getPhysicalDevice()))); + m_allocator = m_alternativeAllocator.get(); - // Create a new command pool and allocate a command buffer with universal queue family index and destroy the old one. - m_cmdPool = createCommandPool(vk, m_device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, context.getUniversalQueueFamilyIndex()); - m_cmdBuffer = allocateCommandBuffer(vk, m_device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); + // Release the command buffer. + m_cmdBuffer = Move(); - // Create a command pool and allocate a command buffer from the queue family supporting compute / transfer capabilities. - m_alternativeCmdPool = createCommandPool(vk, m_device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex); - m_alternativeCmdBuffer = allocateCommandBuffer(vk, m_device, *m_alternativeCmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); - } + // Create a new command pool and allocate a command buffer with universal queue family index and destroy the old one. + m_cmdPool = createCommandPool(vk, m_device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, context.getUniversalQueueFamilyIndex()); + m_cmdBuffer = allocateCommandBuffer(vk, m_device, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); + + // Create a command pool and allocate a command buffer from the queue family supporting compute / transfer capabilities. + m_alternativeCmdPool = createCommandPool(vk, m_device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex); + m_alternativeCmdBuffer = allocateCommandBuffer(vk, m_device, *m_alternativeCmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); Allocator& memAlloc = *m_allocator; const VkPhysicalDevice vkPhysDevice = m_context.getPhysicalDevice();