[Mesa-dev] [PATCH 06/16] ac: set correct LLVM processor names for Raven & Vega12

Marek Olšák maraeo at gmail.com
Wed May 2 04:00:30 UTC 2018


From: Marek Olšák <marek.olsak at amd.com>

---
 src/amd/common/ac_llvm_util.c | 6 ++++--
 1 file 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
@@ -108,23 +108,25 @@ const char *ac_get_llvm_processor_name(enum radeon_family family)
 		return "fiji";
 	case CHIP_STONEY:
 		return "stoney";
 	case CHIP_POLARIS10:
 		return "polaris10";
 	case CHIP_POLARIS11:
 	case CHIP_POLARIS12:
 	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 "";
 	}
 }
 
 LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family,
 					      enum ac_target_machine_options tm_options,
 					      const char **out_triple)
 {
 	assert(family >= CHIP_TAHITI);
-- 
2.17.0



More information about the mesa-dev mailing list