aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-06-25 08:21:15 +0200
committerBas Nieuwenhuizen <[email protected]>2019-07-07 17:51:32 +0200
commitbf1e1a29c301a7ab269b896a81888a79c33190aa (patch)
tree13f6d3ff00d2eab77b306089837a8f30d1baebc5
parent0f769ed3984666919b34c81b4bc34703e73f311c (diff)
radv/gfx10: require LLVM 9+
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c6
1 files changed, 6 insertions, 0 deletions
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;