Fix sType used with VkExternalImageFormatPropertiesKHR
authorPiers Daniell <pdaniell@nvidia.com>
Thu, 28 Sep 2017 18:55:23 +0000 (12:55 -0600)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 29 Sep 2017 07:19:44 +0000 (03:19 -0400)
The sType used in the VkExternalImageFormatPropertiesKHR struct
was VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHR
which is wrong and should have been
VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES_KHR.

Using the wrong sType means implementations ignored the unexpected
sType in the chain.

Affects:

dEQP-VK.synchronization.win32_keyed_mutex.*

Change-Id: I3f16b6fcd66740685f742be8e1318c32fcf87d7e
Components: Vulkan
(cherry picked from commit 09c5420239eefe0c3555a4fb15ab3c879d707081)

external/vulkancts/modules/vulkan/synchronization/vktSynchronizationWin32KeyedMutexTests.cpp

index 0bea193..6ed61af 100644 (file)
@@ -1475,7 +1475,7 @@ Win32KeyedMutexTestInstance::Win32KeyedMutexTestInstance  (Context&               context,
                };
                vk::VkExternalImageFormatProperties                                     externalProperties      =
                {
-                       vk::VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO,
+                       vk::VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES,
                        DE_NULL,
                        { 0u, 0u, 0u }
                };