Use family, but only set xnack+ for gfx9.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
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,