summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-07-06 03:01:56 +0100
committerDave Airlie <[email protected]>2017-07-06 23:07:45 +0100
commitd97275e42c0750fa74ce17de4f985c73c54a1bf4 (patch)
treec506e91bb47a5a70a43deb3ce4c34e0e0e01e534 /src
parent01e958d63141b21fbb18f5e32fa4a7f76f59ba91 (diff)
ac/llvm: set xnack like radeonsi does.
Use family, but only set xnack+ for gfx9. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/common/ac_llvm_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
index 4f32d4bb974..84ed73f164e 100644
--- a/src/amd/common/ac_llvm_util.c
+++ b/src/amd/common/ac_llvm_util.c
@@ -126,7 +126,9 @@ LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family, enum ac
LLVMTargetRef target = ac_get_llvm_target(triple);
snprintf(features, sizeof(features),
- "+DumpCode,+vgpr-spilling,-fp32-denormals,-xnack");
+ "+DumpCode,+vgpr-spilling,-fp32-denormals%s",
+ family >= CHIP_VEGA10 ? ",+xnack" : ",-xnack");
+
LLVMTargetMachineRef tm = LLVMCreateTargetMachine(
target,
triple,