radeon/ac: fix intrinsic version check
authorDave Airlie <airlied@redhat.com>
Sun, 5 Mar 2017 20:05:58 +0000 (06:05 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 5 Mar 2017 20:05:58 +0000 (06:05 +1000)
Reported-by: 375gnu@gmail.com
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100068

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_llvm_build.c

index a9dc51b68c2e1a2672555fba616feb0c7cbd7699..acda5e26db7bfdecb6ab179fc7b9de82188d77dc 100644 (file)
@@ -736,7 +736,7 @@ LLVMValueRef ac_build_buffer_load_format(struct ac_llvm_context *ctx,
                                         LLVMValueRef voffset,
                                         bool readonly_memory)
 {
-       if (HAVE_LLVM >= 0x0309) {
+       if (HAVE_LLVM >= 0x0400) {
                LLVMValueRef args [] = {
                        LLVMBuildBitCast(ctx->builder, rsrc, ctx->v4i32, ""),
                        vindex,