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
if (conversion != CONVERTED && denorm)
{
- if (resBits == 0)
+ if (resBits == 0 || (ref < 0 && resBits == 0x80000000UL))
{
conversion = ZERO_FLUSHED;
return DE_TRUE;