Account for differences in nan with fp16 comparison
authorPiers Daniell <pdaniell@nvidia.com>
Thu, 15 Feb 2018 19:33:15 +0000 (12:33 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 27 Feb 2018 09:06:40 +0000 (04:06 -0500)
commit92d5909ab99bc97dc2ae4dd67e1cfa592dafb246
tree5021c1dcb0d69d07727e984266987bfedeb898ee
parentc1dfba11ac8acff120f6830025b54b21bce7ec8e
Account for differences in nan with fp16 comparison

When comparing fp16 values it's not possible to use a bitwise
comparison because there can be many different bit patterns
representing nan values, and all nans are equal. This CL updates
the computeCheckBuffersFloats function which compares two
buffers of fp16 values to take into account different forms
of nan.

Affects:

dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.uniform_16_to_16.stress_test

Components: Vulkan

VK-GL-CTS issue: 1018

Change-Id: I77013b49ce070d9615b287eae24dd32731b314b1
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsm16bitStorageTests.cpp