nir/opt_algebraic: lower 64-bit fmin3/fmax3/fmed3
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Apr 2020 14:55:31 +0000 (16:55 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Apr 2020 06:59:47 +0000 (06:59 +0000)
commit59427b6d1d07a5824272f7d6b562bcfe83d63b2b
tree55fae12a8c1007a3018c9ad5fe74c0862b71448f
parenteed0ace466d05e4ab07e638ac94a821788a8deaa
nir/opt_algebraic: lower 64-bit fmin3/fmax3/fmed3

This unconditionally lowers 64-bit fmin3/fmax3/fmed3 because
AMD hardware doesn't have native instructions, and no drivers
except RADV uses these instructions.

Fixes dEQP-VK.spirv_assembly.instruction.amd_trinary_minmax.*.f64.*
with ACO.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4570>
src/compiler/nir/nir_opt_algebraic.py