radeonsi/gfx10: require LLVM 9
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 13 May 2019 19:58:30 +0000 (21:58 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_pipe.c

index 31a9d92461f50c644181e312fe628da500af89ce..c93f2b96471b9d888c47c0797648d0edfe11a3e3 100644 (file)
@@ -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 {