ac: set fast math flags when RADV_DEBUG="unsafemath" is used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Jan 2018 13:51:44 +0000 (14:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 Jan 2018 20:39:55 +0000 (21:39 +0100)
commit4f5318df2cba4f4a455cf3a5aaa020908806987d
treee3a525c286d201e4e3f9701fb46b3049bea3d433
parent2091206ad3764c94317bd700cc551f9c31a2847d
ac: set fast math flags when RADV_DEBUG="unsafemath" is used

When that debug option is not used, we use the default float mode
because the no signed zeros optimisation is not Vulkan compatible.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c