diff options
author | Marek Olšák <[email protected]> | 2020-06-09 01:49:02 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-09 16:17:36 +0000 |
commit | 0795241dde1507e0c6a3f9ef07c281ad4f2acf7b (patch) | |
tree | 9b02aca7064c2757dce1be492690e23d517f3475 /src/gallium/drivers/radeonsi | |
parent | 9538b9a68ed9aa0f8a231d6bf681f6f0a2a9d341 (diff) |
radeonsi: require LLVM 11 for gfx10.3
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5383>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 6 |
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 b8a1a8cc389..088ede2eb2f 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -925,6 +925,12 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, sscreen->ws = ws; ws->query_info(ws, &sscreen->info); + if (sscreen->info.chip_class == GFX10_3 && LLVM_VERSION_MAJOR < 11) { + fprintf(stderr, "radeonsi: GFX 10.3 requires LLVM 11 or higher\n"); + FREE(sscreen); + return NULL; + } + if (sscreen->info.chip_class == GFX10 && LLVM_VERSION_MAJOR < 9) { fprintf(stderr, "radeonsi: Navi family support requires LLVM 9 or higher\n"); FREE(sscreen); |