Use the correct imageType for image support checks.
authorBas Nieuwenhuizen <basni@google.com>
Fri, 11 Oct 2019 01:50:02 +0000 (03:50 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 16 Oct 2019 11:43:09 +0000 (07:43 -0400)
Components: Vulkan

Affects:
dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.depth_stencil.{1d,3d}*

VK-GL-CTS issue: 2050

Change-Id: If73d9ff3e026ae4c32fd00fcc546734eebf9990e

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

index f8f5521..9668657 100644 (file)
@@ -2640,14 +2640,14 @@ public:
                VkImageFormatProperties properties;
                if ((context.getInstanceInterface().getPhysicalDeviceImageFormatProperties (context.getPhysicalDevice(),
                                                                                                                                                                        m_params.src.image.format,
-                                                                                                                                                                       VK_IMAGE_TYPE_2D,
+                                                                                                                                                                       m_params.src.image.imageType,
                                                                                                                                                                        m_params.src.image.tiling,
                                                                                                                                                                        VK_IMAGE_USAGE_TRANSFER_SRC_BIT,
                                                                                                                                                                        0,
                                                                                                                                                                        &properties) == VK_ERROR_FORMAT_NOT_SUPPORTED) ||
                        (context.getInstanceInterface().getPhysicalDeviceImageFormatProperties (context.getPhysicalDevice(),
                                                                                                                                                                        m_params.dst.image.format,
-                                                                                                                                                                       VK_IMAGE_TYPE_2D,
+                                                                                                                                                                       m_params.dst.image.imageType,
                                                                                                                                                                        m_params.dst.image.tiling,
                                                                                                                                                                        VK_IMAGE_USAGE_TRANSFER_DST_BIT,
                                                                                                                                                                        0,