mesa/src/amd
Dave Airlie 2c61594d84 radv: lower ffma in nir.
So it appears the Vulkan SPIR-V fma opcode can be equivalent to a
mad operation, and the fma hw opcode on AMD hw is issued like a double
opcode so is slower. Also the radeonsi stack does this.

This appears to improve performance on a number of games from Feral,
and thanks to Feral for noticing the problem.

I'm reposting this one as Marek indicated he thinks this is what
we should be doing on AMD hw.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-10-11 07:31:27 +10:00
..
addrlib meson: build "radv" vulkan driver for radeon hardware 2017-09-27 09:12:34 -07:00
common amd: move r600d_common.h into r600g 2017-10-09 16:27:06 +02:00
vulkan radv: lower ffma in nir. 2017-10-11 07:31:27 +10:00
Android.addrlib.mk Android: amd: use exported include dirs instead of explicit includes 2017-05-11 13:52:21 +01:00
Android.common.mk Android: fix undeclared identifier 'gfx9d_reg_table' 2017-09-11 09:35:23 -05:00
Android.mk android: amd/common: add support for libmesa_amd_common 2016-11-05 18:42:29 +01:00
Makefile.addrlib.am amd/addrlib: import gfx9 support 2017-03-30 14:44:33 +02:00
Makefile.am ac: automake: rework sid_tables.h generation 2017-01-12 19:29:28 +00:00
Makefile.common.am ac/common: always build NIR translation 2017-07-31 17:59:10 +02:00
Makefile.sources amd: move r600d_common.h into r600g 2017-10-09 16:27:06 +02:00
meson.build meson: build "radv" vulkan driver for radeon hardware 2017-09-27 09:12:34 -07:00