Handle denorm flush to negative zero in unpackhalf2x16 tests.
authorJeff Bolz <jbolz@nvidia.com>
Fri, 31 Aug 2018 02:42:54 +0000 (21:42 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 6 Sep 2018 15:36:28 +0000 (11:36 -0400)
commit2d586eac46267c708e06dbb1ecd9e9b3d1664554
tree3e7e85798d0a9140be0d39543cdd988a544c54fc
parent0770bab1af1771f0de0904ced18f33e1efc8a38f
Handle denorm flush to negative zero in unpackhalf2x16 tests.

Whether input fp16 values are flushed to zero is implementation
dependent. However, negative denorm values can be flushed to negative
zero and the logic did not handle that case.

Affects: dEQP-VK.glsl.builtin.function.pack_unpack.unpackhalf2x16*
Component: Vulkan
VK-GL-CTS issue: 1341

Change-Id: I2cd4a68cb5e498cd714a7e55b27ae4bc05ccde2d
external/vulkancts/modules/vulkan/shaderexecutor/vktShaderPackingFunctionTests.cpp