From 2ac5cce1a1325a15afcec54ff8ca90bae64c48aa Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 9 Jun 2020 08:10:56 +0200 Subject: [PATCH] radv: require LLVM 11+ for GFX 10.3 if not using ACO Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- 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 16c950542d7..3c0e6a52332 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 11 is required for GFX10.3. */ + if (ws->info.chip_class == GFX10_3 && !ws->use_aco && LLVM_VERSION_MAJOR < 11) { + fprintf(stderr, "radv: GFX 10.3 requires LLVM 11 or higher\n"); + return false; + } + /* LLVM 9.0 is required for GFX10. */ if (ws->info.chip_class == GFX10 && !ws->use_aco && LLVM_VERSION_MAJOR < 9) { fprintf(stderr, "radv: Navi family support requires LLVM 9 or higher\n"); -- 2.30.2