aco: try to use fma instead of mad when denormals are enabled
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 15 May 2020 13:03:15 +0000 (14:03 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 18:24:22 +0000 (18:24 +0000)
commit1b10764e50998a556e000323c77d4a1632a80dfc
tree0d9bb2c4254788238cddd6d224e54a0232b8ff82
parent6cb42cdd8fddb990ee47124c18a510f4da6e99ac
aco: try to use fma instead of mad when denormals are enabled

v_mad_f32 doesn't support denormals but v_fma_f32 does.

No fossil-db changes.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5245>
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_optimizer.cpp
src/amd/compiler/aco_register_allocation.cpp