Fix illegal memory access for robustness test
authorNoah Fredriks <Noah.Fredriks@amd.com>
Mon, 15 Jan 2018 21:09:55 +0000 (16:09 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 23 Jan 2018 01:10:32 +0000 (20:10 -0500)
Don't subtract 3 from buffer pointer for VK_FORMAT_A2B10G10R10_UNORM_PACK32
alpha channel because this format is a deUint32 instead of Vec4.

Affects: dEQP-VK.robustness.vertex_access.a2b10g10r10_unorm_pack32.*

Components: Vulkan

VK-GL-CTS issue: 946

Change-Id: I2a5241191e01252ce071658b8dbd79d3e424aa41

external/vulkancts/modules/vulkan/robustness/vktRobustnessVertexAccessTests.cpp

index c66b914..8a445dc 100644 (file)
@@ -862,7 +862,7 @@ bool VertexAccessInstance::verifyResult (void)
                                if (canMatchVec4Pattern)
                                {
                                        if (m_inputFormat == VK_FORMAT_A2B10G10R10_UNORM_PACK32)
-                                               matchesVec4Pattern      =  verifyOutOfBoundsVec4(outValuePtr - 3, VK_FORMAT_R32G32B32_SFLOAT);
+                                               matchesVec4Pattern      =  verifyOutOfBoundsVec4(outValuePtr, m_inputFormat);
                                        else
                                                matchesVec4Pattern      =  verifyOutOfBoundsVec4(outValuePtr - 3, m_inputFormat);
                                }