From 3e249b853ebb679656975b48aca91f76fc1d2fd2 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 28 Jan 2019 10:56:11 -0500 Subject: ac: use the correct LLVM processor name on Raven2 Reviewed-by: Alex Deucher --- src/amd/common/ac_llvm_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index 174a37f22f8..69446863b95 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.c @@ -134,7 +134,7 @@ const char *ac_get_llvm_processor_name(enum radeon_family family) case CHIP_VEGA20: return "gfx906"; case CHIP_RAVEN2: - return "gfx902"; /* TODO: use gfx909 when it's available */ + return HAVE_LLVM >= 0x0800 ? "gfx909" : "gfx902"; default: return ""; } -- cgit v1.2.3