Mesa (master): radv: enable GFX9 on radv
Dave Airlie
airlied at kemper.freedesktop.org
Mon Jun 5 23:45:23 UTC 2017
Module: Mesa
Branch: master
Commit: 65477bae9cfb884463708de1869e4c3ad392a5f4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65477bae9cfb884463708de1869e4c3ad392a5f4
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Jun 6 09:06:57 2017 +1000
radv: enable GFX9 on radv
I'm open to reverting this closer to release if bad things
happen, but it might be easier to debugging to leave it for now.
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
index 94fd8b84e0..bce8dd2cce 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
@@ -46,8 +46,10 @@ do_winsys_init(struct radv_amdgpu_winsys *ws, int fd)
if (!ac_query_gpu_info(fd, ws->dev, &ws->info, &ws->amdinfo))
return false;
- if (ws->info.chip_class >= GFX9) {
- fprintf(stderr, "radv: GFX9 is not supported.\n");
+ /* LLVM 5.0 is required for GFX9. */
+ if (ws->info.chip_class >= GFX9 && HAVE_LLVM < 0x0500) {
+ fprintf(stderr, "amdgpu: LLVM 5.0 is required, got LLVM %i.%i\n",
+ HAVE_LLVM >> 8, HAVE_LLVM & 255);
return false;
}
More information about the mesa-commit
mailing list