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>
Thu, 22 Mar 2018 15:01:28 +0000 (11:01 -0400)
commitfd2a6661c0977edc67971e14efb6b66af85b7f87
tree6ae507196fd73bec101c2c79450c97aa7dfcb393
parent9695767536cfafd0f35605b3f3d90acb74f13f03
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
(cherry picked from commit 92d5909ab99bc97dc2ae4dd67e1cfa592dafb246)
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsm16bitStorageTests.cpp