From bf1e1a29c301a7ab269b896a81888a79c33190aa Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 25 Jun 2019 08:21:15 +0200 Subject: [PATCH] radv/gfx10: require LLVM 9+ Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c index 961a81286ee..c48a3cf081f 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c @@ -45,6 +45,12 @@ do_winsys_init(struct radv_amdgpu_winsys *ws, int fd) if (!ac_query_gpu_info(fd, ws->dev, &ws->info, &ws->amdinfo)) return false; + /* LLVM 9.0 is required for GFX10. */ + if (ws->info.chip_class == GFX10 && HAVE_LLVM < 0x0900) { + fprintf(stderr, "radv: Navi family support requires LLVM 9 or higher\n"); + return false; + } + if (ws->info.chip_class > GFX9) return false; -- 2.30.2