ac/llvm: don't set skip-uniform-regions to fix atomic.cmpswap

This fixes SSBO atomic cmpswap tests and transform feedback order piglit tests.

Fixes: 3bb65c0670 - ac: force enable -structurizecfg-skip-uniform-regions for LLVM 11
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3884

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11517>
This commit is contained in:
Marek Olšák 2021-06-22 00:10:19 -04:00 committed by Marge Bot
parent bdd8646306
commit d3fddf63ec

View file

@ -68,7 +68,10 @@ static void ac_init_llvm_target(void)
"-simplifycfg-sink-common=false",
"-global-isel-abort=2",
"-amdgpu-atomic-optimizations=true",
#if LLVM_VERSION_MAJOR == 11
/* This fixes variable indexing on LLVM 11. It also breaks atomic.cmpswap on LLVM >= 12. */
"-structurizecfg-skip-uniform-regions",
#endif
};
LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL);
}