radv: enable GFX9 on radv
authorDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 23:06:57 +0000 (09:06 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 23:44:26 +0000 (09:44 +1000)
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@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c

index 94fd8b84e00c11d7ac1b5ffb15c92a4a9dba09c5..bce8dd2cceb8a982bb95592932f0f28e39212811 100644 (file)
@@ -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;
        }