From 6841845b00e534f3b284f3afe85bd182317c3baa Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 30 Apr 2018 18:10:50 -0400 Subject: ac: set correct LLVM processor names for Raven & Vega12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- 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 @@ -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 ""; } -- cgit v1.2.3