radv: add a workaround for Monster Hunter World and LLVM 7&8
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 7 May 2019 14:09:46 +0000 (16:09 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 17 May 2019 09:41:19 +0000 (11:41 +0200)
commitd7501834cd86f9ec0b7c3dea17448dc523e36390
tree76cdc3d8537efddfdabbff5ed33ff9ccef1df384
parent47afc5eed76f12ec38f94f0069c4695c9fe78889
radv: add a workaround for Monster Hunter World and LLVM 7&8

The load/store optimizer pass doesn't handle WaW hazards correctly
and this is the root cause of the reflection issue with Monster
Hunter World. AFAIK, it's the only game that are affected by this
issue.

This is fixed with LLVM r361008, but we need a workaround for older
LLVM versions unfortunately.

Cc: "19.0" "19.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_llvm_util.c
src/amd/common/ac_llvm_util.h
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_shader.c