radv: emit fmuladd instead of fma to llvm

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 4 October 2017 01:22 EDT

For Vulkan SPIR-V the spec states fma() Inherited from OpFMul followed by OpFAdd.

Matt says the backend will do the right thing depending on the hardware being compiled for, if you use the fmuladd intrinsic.

Using the Mad Max pts test, on high settings at 4K: CHP: 55->60 HGDD: 46->50 LM: 55->60 No change on Stronghold.

Thanks to Feral for spending the time to track this down.

4e93d6b radv: emit fmuladd instead of fma to llvm.
src/amd/common/ac_nir_to_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share