radv: disable the auto-waitcnt-before-barrier LLVM option
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Aug 2018 13:09:52 +0000 (15:09 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Aug 2018 14:21:50 +0000 (16:21 +0200)
commit71d5b2fbf83061a1319141d26942771e8c75ff2b
tree6232056c1cb54ac88c376906a941f68b66471bbd
parent85113c4d0507f91dd773b555b8e3f75423275010
radv: disable the auto-waitcnt-before-barrier LLVM option

This option allows us to remove additional s_waitcnt instructions
because s_barrier internally does s_waitcnt 0.

Though, apparently there is a problem with LDS accesses that
causes rendering issues with FFXV and DXVK. Disable this
optimization for now (RadeonSI still uses it).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107460
CC: 18.2 <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/gallium/drivers/radeonsi/si_pipe.c