radv: add a LLVM version string workaround for SotTR and ACO
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 May 2020 07:54:11 +0000 (09:54 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 07:57:18 +0000 (07:57 +0000)
commit1ef03dade12b4d5056c3fe5637f9dfd98a42aae6
treec76055036f261e9555e7e79ecdd155ba09a6a31f
parent91c757b7963f458f678226f9637f04a490085405
radv: add a LLVM version string workaround for SotTR and ACO

When the LLVM version is too old or missing, SotTR applies shader
workarounds and that reduces performance by 2-5% with ACO.

SotTR workarounds are applied with LLVM 8 and older, so reporting
LLVM 9.0.1 should be fine.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4984>
src/amd/vulkan/radv_device.c
src/util/00-mesa-defaults.conf
src/util/xmlpool/t_options.h