diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-25 08:21:15 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-07-07 17:51:32 +0200 |
commit | bf1e1a29c301a7ab269b896a81888a79c33190aa (patch) | |
tree | 13f6d3ff00d2eab77b306089837a8f30d1baebc5 /src | |
parent | 0f769ed3984666919b34c81b4bc34703e73f311c (diff) |
radv/gfx10: require LLVM 9+
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 6 |
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; |