Fix wrong conversion from shared pointer to int.
authorMohd Faisal <mohd.faisal@arm.com>
Thu, 11 Nov 2021 11:34:09 +0000 (11:34 +0000)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 19 Nov 2021 01:05:44 +0000 (01:05 +0000)
Dereference the correct pointer to object and converting to int (flag)
via implicit converter.

Affects:

dEQP-VK.api.buffer_memory_requirements.*

Components: Vulkan

VK-GL-CTS issue: 3300

Change-Id: Id38991211b0dd65166dec3e75cf5f5f96309e1ff

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

index bd7b2d2b5188600f3bc699c9b16f2f7db04e70b3..5b1eb1a55face35c2532587b5e7374f216c87f05 100644 (file)
@@ -624,12 +624,12 @@ TestStatus        BufferMemoryRequirementsInstance::iterate (void)
                DE_ASSERT(!m_config.usageFlags->empty());
                for (auto u = m_config.usageFlags->cbegin(); u != m_config.usageFlags->cend(); ++u)
                {
-                       const VkBufferUsageFlags infoUsageFlags = *u;
+                       const VkBufferUsageFlags infoUsageFlags = *(u->get());
 
                        DE_ASSERT(!m_config.extMemHandleFlags->empty());
                        for (auto m = m_config.extMemHandleFlags->cbegin(); m != m_config.extMemHandleFlags->cend(); ++m)
                        {
-                               const VkExternalMemoryHandleTypeFlags handleFlags = *m;
+                               const VkExternalMemoryHandleTypeFlags handleFlags = *(m->get());
 
                                void* pNext = nullptr;