mesa/src
Dave Airlie 41ec2af2a8 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>
(cherry picked from commit 2c61594d84)
[Emil Velikov: use correct file radv_shader.c -> radv_pipeline.c]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>

Conflicts:
	src/amd/vulkan/radv_shader.c
2017-10-17 16:59:31 +01:00
..
amd radv: lower ffma in nir. 2017-10-17 16:59:31 +01:00
broadcom broadcom: correct header file in BROADCOM_FILES 2017-07-24 01:40:05 +03:00
compiler spirv: Fix SpvOpAtomicISub 2017-10-17 16:59:30 +01:00
egl egl/dri2: Implement swapInterval fallback in a conformant way 2017-09-28 13:54:57 +00:00
gallium nv50/ir: fix 64-bit integer shifts 2017-10-17 16:59:30 +01:00
gbm gbm: fix typo 2017-07-19 15:51:54 +01:00
getopt
glx glxcmds: Fix a typo in the __APPLE__ codepath 2017-08-17 15:48:20 -07:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: Do not assert() on VK_ATTACHMENT_UNUSED 2017-10-17 16:59:30 +01:00
loader dri3: Wait for all pending swapbuffers to be scheduled before touching the front 2017-08-05 00:09:25 +01:00
mapi mapi: add missing no_error tag to glBlitNamedFramebuffer() 2017-07-18 10:07:34 +02:00
mesa st/mesa: don't clobber glGetInternalformat* buffer for GL_NUM_SAMPLE_COUNTS 2017-10-17 16:59:30 +01:00
util util/queue: fix a race condition in the fence code 2017-10-11 17:22:55 +01:00
vulkan vulkan/wsi/wayland: Return better error messages 2017-09-28 13:54:58 +00:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00