Fix memory binding tests
authorziga-lunarg <ziga@lunarg.com>
Sun, 16 Oct 2022 21:07:41 +0000 (23:07 +0200)
committerziga-lunarg <ziga@lunarg.com>
Sun, 16 Oct 2022 21:07:41 +0000 (23:07 +0200)
Wrong size is used in results verification

Components: Vulkan

VK-GL-CTS issue: 4055

Affected tests:
dEQP-VK.memory.binding.*

Change-Id: I3325070d5173dfcc469b2d836616f79a0777d8e4

external/vulkancts/modules/vulkan/memory/vktMemoryBindingTests.cpp

index f85310e..e682a3a 100644 (file)
@@ -888,7 +888,7 @@ deBool                                      BaseTestInstance::checkData                                                     (VkDeviceMemory                 memory,
 
        hostMemory.invalidate();
 
-       for (deUint32 i = 0u; i < size; ++i)
+       for (deUint32 i = 0u; i < m_params.bufferSize; ++i)
        {
                if (hostBuffer[i] != static_cast<deUint8>(random.getNext() & 0xFFu) )
                        return DE_FALSE;