Fix undefined behaviour by allowing NaNs
authorMarcin Kańtoch <marcin.kantoch@amd.com>
Tue, 26 Jul 2022 15:25:41 +0000 (17:25 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 4 Aug 2022 16:21:28 +0000 (16:21 +0000)
commit8b95b2a1da75ca3dc3a2cfac98ce10d9a699687e
treeb24ad4284068655431d5338a133104f662491898
parenta9ea239d36d7c21efd2477d307d2e523d7740595
Fix undefined behaviour by allowing NaNs

One graphicsfuzz test contains computations with the float constant 0x1.8p+128.
This constant represents a NaN value. The computation with undef in the test
allows any optimization/triggers undefined behavior and the driver is free
to crash. Adding OpExecutionMode %4 SignedZeroInfNanPreserve 32 to the CTS fixes
this by allowing NaNs.

Affects:
dEQP-VK.graphicsfuzz.cov-instruction-simplify-atanh-log-undefined

Components: Vulkan

VK-GL-CTS issue: 3787

Change-Id: Id7140deddec240fdc5d9b1712c974199fa06b250
external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-instruction-simplify-atanh-log-undefined.amber