Fix results-check for floating-point intermediate atomic operations
authorLiam Middlebrook <lmiddlebrook@nvidia.com>
Fri, 23 Oct 2020 02:09:22 +0000 (19:09 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 18 Nov 2020 07:52:48 +0000 (02:52 -0500)
commit0498f5958186de7e931bb929618ab1fef6dd9d84
tree9b54287421457413e949142d929c6b4226e42537
parent266cf3e646711de8e70b8ed66431324d2659f04a
Fix results-check for floating-point intermediate atomic operations

This commit fixes the results checking function for a set of tests that
verify atomic operations on floating-point formats. Previously when
compiled with GCC 4.8.4 the generated code would store incorrect values
into `resultValues[i]` rather than correctly interpreting the uint32_t
input data as a float and converting to a uint32_t before storing in
`resultValues[i]`.

Affects:
dEQP-VK.image.atomic_operations.add*r32f*
dEQP-VK.image.atomic_operations.exchange*r32f*

Components: Vulkan

VK-GL-CTS issue: 2632

Change-Id: I34e55d8ef109b5a14bda86d28821a0053c874546
external/vulkancts/modules/vulkan/image/vktImageAtomicOperationTests.cpp