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>
Fri, 2 Sep 2022 23:26:15 +0000 (23:26 +0000)
commit9a9d57569b39a167b5c939b727aa0c8fa07d4bf4
treeedc3ecae05dca8abb5839439d864e272e0b935ba
parent749952882bc87f7c2bdb011934abdd17c5a9cd11
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: I2442bc4f50add8b8f779dbfae3c5fe2be8fd85f4
external/vulkancts/data/vulkan/amber/graphicsfuzz/cov-instruction-simplify-atanh-log-undefined.amber
external/vulkancts/data/vulkan/amber/graphicsfuzz/index.txt