Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
case CHIP_POLARIS11:
case CHIP_POLARIS12: /* same as polaris11 */
return HAVE_LLVM >= 0x0309 ? "polaris11" : "carrizo";
+ case CHIP_VEGA10:
+ return "gfx900";
default:
return "";
}
goto fail;
}
+ /* 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);
+ goto fail;
+ }
+
/* family and rev_id are for addrlib */
switch (ws->info.family) {
case CHIP_TAHITI: