aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-04-30 18:10:50 -0400
committerMarek Olšák <[email protected]>2018-05-10 18:26:32 -0400
commit6841845b00e534f3b284f3afe85bd182317c3baa (patch)
tree1712894185ac0db06af3a712eef562807e624f71
parent6f7f10d28559c5c3b612bc3fc3a0900671b66722 (diff)
ac: set correct LLVM processor names for Raven & Vega12
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r--src/amd/common/ac_llvm_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
index a06c83a2963..be2d92b4c08 100644
--- a/src/amd/common/ac_llvm_util.c
+++ b/src/amd/common/ac_llvm_util.c
@@ -115,9 +115,11 @@ const char *ac_get_llvm_processor_name(enum radeon_family family)
case CHIP_VEGAM:
return "polaris11";
case CHIP_VEGA10:
- case CHIP_VEGA12:
- case CHIP_RAVEN:
return "gfx900";
+ case CHIP_RAVEN:
+ return "gfx902";
+ case CHIP_VEGA12:
+ return HAVE_LLVM >= 0x0700 ? "gfx904" : "gfx902";
default:
return "";
}