radv/gfx10: require LLVM 9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jun 2019 06:21:15 +0000 (08:21 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 7 Jul 2019 15:51:32 +0000 (17:51 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c

index 961a81286eec17e350454eabc57981ada0e796eb..c48a3cf081f0e3859fab060037877a297257e499 100644 (file)
@@ -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;