ac/llvm: set xnack like radeonsi does.
Use family, but only set xnack+ for gfx9. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -126,7 +126,9 @@ LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family, enum ac
|
|||||||
LLVMTargetRef target = ac_get_llvm_target(triple);
|
LLVMTargetRef target = ac_get_llvm_target(triple);
|
||||||
|
|
||||||
snprintf(features, sizeof(features),
|
snprintf(features, sizeof(features),
|
||||||
"+DumpCode,+vgpr-spilling,-fp32-denormals,-xnack");
|
"+DumpCode,+vgpr-spilling,-fp32-denormals%s",
|
||||||
|
family >= CHIP_VEGA10 ? ",+xnack" : ",-xnack");
|
||||||
|
|
||||||
LLVMTargetMachineRef tm = LLVMCreateTargetMachine(
|
LLVMTargetMachineRef tm = LLVMCreateTargetMachine(
|
||||||
target,
|
target,
|
||||||
triple,
|
triple,
|
||||||
|
Reference in New Issue
Block a user