[Mesa-stable] [PATCH] radeonsi: Use 'SI' as the LLVM processor for CIK on LLVM <= 3.3
Tom Stellard
tom at stellard.net
Wed Oct 16 09:53:58 PDT 2013
From: Tom Stellard <thomas.stellard at amd.com>
LLVM 3.3 does not know about CIK processors, and the codes paths for SI
and CIK are the same.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Cc: "9.2" <mesa-stable at lists.freedesktop.org>
---
src/gallium/drivers/radeonsi/radeonsi_pipe.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
index c3250e4..121fd18 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
@@ -307,11 +307,15 @@ const char *r600_get_llvm_processor_name(enum radeon_family family)
case CHIP_PITCAIRN: return "pitcairn";
case CHIP_VERDE: return "verde";
case CHIP_OLAND: return "oland";
+#if HAVE_LLVM <= 0x0303
+ default: return "SI";
+#else
case CHIP_HAINAN: return "hainan";
case CHIP_BONAIRE: return "bonaire";
case CHIP_KABINI: return "kabini";
case CHIP_KAVERI: return "kaveri";
default: return "";
+#endif
}
}
--
1.8.1.5
More information about the mesa-stable
mailing list