OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 10 May 2017 10:28:07 +0000 (11:28 +0100)
commitbd79ce435610be9a7ad2eb25bca22dbcb1a384d9
treed462f66d2beae52f413abe4aa32f47f09bc4107b
parent0640bae86ce4bde2253667916d45c103ed1b531e
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>
(cherry picked from commit 83e58b036e1c34f26c99d04615df2b530f3045d9)
src/amd/common/ac_nir_to_llvm.c
src/amd/common/sid.h