Fix unaligned host accesses in UBO and SSBO tests
authorGary Sweet <gsweet@broadcom.com>
Mon, 22 Oct 2018 11:39:09 +0000 (12:39 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 25 Oct 2018 10:14:17 +0000 (06:14 -0400)
commita642cc1ba028fc89a2e8f5c925ad2260866b28bb
tree14cc4cd47babbe69fe650ab43e2615ad833e351a
parent4094e2e628de19b0d3269bac743ded2f5bb99d88
Fix unaligned host accesses in UBO and SSBO tests

Prevent uniform blocks from starting unaligned.
Previously these tests would end up casting
non-4-byte aligned addresses to float*. On 32-bit
ARM CPUs this can cause unaligned access faults.

Components: Vulkan

Affects:
dEQP-VK.ubo.*
dEQP-VK.ssbo.*

VK-GL-CTS issue: 1434

Change-Id: Ied437b150b61f11630b5c1511ccedd410308b004
external/vulkancts/modules/vulkan/ssbo/vktSSBOLayoutCase.cpp
external/vulkancts/modules/vulkan/ubo/vktUniformBlockCase.cpp