From 90c0d0444039715a64fa008a02512066325f02c9 Mon Sep 17 00:00:00 2001 From: Igor Ostrowski Date: Tue, 12 Mar 2019 11:36:10 +0100 Subject: [PATCH] Add handle compatibility check in win32 keyed mutex tests Affects: dEQP-VK.synchronization.win32_keyed_mutex.* Components: Vulkan VK-GL-CTS issue: 1669 Change-Id: I1ce4edae009d291100725fce9d87ae6ac826c4ae --- .../synchronization/vktSynchronizationWin32KeyedMutexTests.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationWin32KeyedMutexTests.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationWin32KeyedMutexTests.cpp index 69946b7..e6dcf6e 100644 --- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationWin32KeyedMutexTests.cpp +++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationWin32KeyedMutexTests.cpp @@ -1497,7 +1497,10 @@ Win32KeyedMutexTestInstance::Win32KeyedMutexTestInstance (Context& context, 0u, } }; - VK_CHECK(m_vki.getPhysicalDeviceImageFormatProperties2(m_physicalDevice, &imageFormatInfo, &formatProperties)); + const vk::VkResult res = m_vki.getPhysicalDeviceImageFormatProperties2(m_physicalDevice, &imageFormatInfo, &formatProperties); + if (res == vk::VK_ERROR_FORMAT_NOT_SUPPORTED) + TCU_THROW(NotSupportedError, "Handle type is not compatible"); + VK_CHECK(res); // \todo How to log this nicely? log << TestLog::Message << "External image format properties: " << imageFormatInfo << "\n"<< externalProperties << TestLog::EndMessage; -- 2.7.4