From 8370620611b3956eb6b6508730675952ff95c4ca Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Tue, 22 May 2018 02:03:03 -0400 Subject: [PATCH] hitman --- src/amd/common/ac_llvm_util.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index be2d92b4c0..23845d2754 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.c @@ -49,10 +49,15 @@ static void ac_init_llvm_target() * to disappear. * https://reviews.llvm.org/D26348 * + * Also, since llvm 4.0, the load-store vectorizer is enabled by + * default. It can cause display glitches on SI GPUs, so disable it. + * https://bugs.freedesktop.org/show_bug.cgi?id=99923 + * * "mesa" is the prefix for error messages. */ - const char *argv[2] = { "mesa", "-simplifycfg-sink-common=false" }; - LLVMParseCommandLineOptions(2, argv, NULL); + const char *argv[3] = { "mesa", "-simplifycfg-sink-common=false", + "-amdgpu-load-store-vectorizer=0" }; + LLVMParseCommandLineOptions(3, argv, NULL); } static once_flag ac_init_llvm_target_once_flag = ONCE_FLAG_INIT; -- 2.17.0