diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-03-11 05:19:46 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-03-11 05:19:46 +0000 |
commit | a555e39846a398cfab864e0c5446a76e5b74dc58 (patch) | |
tree | 6ceedf2ffd975d0e7dd1f7ad28283e109c198629 /lib/mesa/src | |
parent | b3be78d4d183780c112c35dcd7d9899a62232cda (diff) |
ac: don't set old denormals flags with LLVM >= 11
From Marek Olsak
8dc5e174c7b96b6d4b5a6923068410f298167a39 in mainline Mesa
Diffstat (limited to 'lib/mesa/src')
-rw-r--r-- | lib/mesa/src/amd/llvm/ac_llvm_util.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mesa/src/amd/llvm/ac_llvm_util.c b/lib/mesa/src/amd/llvm/ac_llvm_util.c index 968410199..903b0d175 100644 --- a/lib/mesa/src/amd/llvm/ac_llvm_util.c +++ b/lib/mesa/src/amd/llvm/ac_llvm_util.c @@ -70,10 +70,6 @@ static void ac_init_llvm_target() /* Atomic optimizations require LLVM 10.0 for gfx10 support. */ "-amdgpu-atomic-optimizations=true", #endif -#if LLVM_VERSION_MAJOR >= 11 - /* This was disabled by default in: https://reviews.llvm.org/D77228 */ - "-structurizecfg-skip-uniform-regions", -#endif }; LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL); } @@ -173,10 +169,11 @@ static LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family, LLVMTargetRef target = ac_get_llvm_target(triple); snprintf(features, sizeof(features), - "+DumpCode%s%s%s%s%s%s", + "+DumpCode%s%s%s%s%s%s%s", LLVM_VERSION_MAJOR >= 11 ? "" : ",-fp32-denormals,+fp64-denormals", family >= CHIP_NAVI10 && !(tm_options & AC_TM_WAVE32) ? ",+wavefrontsize64,-wavefrontsize32" : "", + tm_options & AC_TM_SISCHED ? ",+si-scheduler" : "", tm_options & AC_TM_FORCE_ENABLE_XNACK ? ",+xnack" : "", tm_options & AC_TM_FORCE_DISABLE_XNACK ? ",-xnack" : "", tm_options & AC_TM_PROMOTE_ALLOCA_TO_SCRATCH ? ",-promote-alloca" : "", |