radv: flush f32->f16 conversion denormals to zero. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 17 Mar 2017 02:11:30 +0000 (12:11 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 3 May 2017 02:55:34 +0000 (12:55 +1000)
commit83e58b036e1c34f26c99d04615df2b530f3045d9
tree1c89241329944a5b75c2f4b3a1ea925f649309ad
parenteeff7e11544f333d211c8f8ad3679db814050cfa
radv: flush f32->f16 conversion denormals to zero. (v2)

SPIR-V defines the f32->f16 operation as flushing denormals to 0,
this compares the class using amd class opcode.

Thanks to Matt Arsenault for figuring it out.

This fix is VI+ only, add a TODO for SI/CIK.

This fixes:
dEQP-VK.spirv_assembly.instruction.compute.opquantize.flush_to_zero

Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/sid.h