--- mesa/src/amd/common/ac_llvm_build.c.orig 2017-03-05 22:01:31.655390338 +0300 +++ mesa/src/amd/common/ac_llvm_build.c 2017-03-05 22:01:45.284598731 +0300 @@ -736,7 +736,7 @@ LLVMValueRef voffset, bool readonly_memory) { - if (HAVE_LLVM >= 0x0309) { + if (HAVE_LLVM >= 0x0400) { LLVMValueRef args [] = { LLVMBuildBitCast(ctx->builder, rsrc, ctx->v4i32, ""), vindex,