mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
bdd8646306
commit
d3fddf63ec
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue