summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-05-13 21:58:30 +0200
committerMarek Olšák <[email protected]>2019-07-03 15:51:12 -0400
commit594010e366f911581ca0a4471a9d9fa68116514f (patch)
treed779e6930230a9e86e1faf2ca18407ac003f2c91
parentde99e0a5634ed8f225130c4841470c5d5a1ac24e (diff)
radeonsi/gfx10: require LLVM 9
Acked-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 31a9d92461f..c93f2b96471 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -897,6 +897,12 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws,
sscreen->ws = ws;
ws->query_info(ws, &sscreen->info);
+ if (sscreen->info.chip_class == GFX10 && HAVE_LLVM < 0x0900) {
+ fprintf(stderr, "radeonsi: Navi family support requires LLVM 9 or higher\n");
+ FREE(sscreen);
+ return NULL;
+ }
+
if (sscreen->info.chip_class >= GFX9) {
sscreen->se_tile_repeat = 32 * sscreen->info.max_se;
} else {