summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-11-02 12:42:34 +1100
committerTimothy Arceri <[email protected]>2017-11-03 14:54:45 +1100
commit4d4799643dfc0236014c7d56b94575200e441819 (patch)
treedca4580f4863226e41b06e0eb401150dcde39f56 /src/amd/common
parent209ad5c16f13f253845e23a15f6ad314615179a4 (diff)
ac: use the ac ivoidt llvm type
Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Marek Olšák <[email protected] Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 44137deb09d..d741fb7b45d 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -145,7 +145,6 @@ struct nir_to_llvm_context {
LLVMTypeRef f16;
LLVMTypeRef v2f32;
LLVMTypeRef v4f32;
- LLVMTypeRef voidt;
unsigned uniform_md_kind;
LLVMValueRef empty_md;
@@ -995,7 +994,6 @@ static void create_function(struct nir_to_llvm_context *ctx,
static void setup_types(struct nir_to_llvm_context *ctx)
{
- ctx->voidt = LLVMVoidTypeInContext(ctx->context);
ctx->i16 = LLVMIntTypeInContext(ctx->context, 16);
ctx->i64 = LLVMIntTypeInContext(ctx->context, 64);
ctx->v2i32 = LLVMVectorType(ctx->ac.i32, 2);
@@ -3689,7 +3687,7 @@ static void emit_waitcnt(struct nir_to_llvm_context *ctx,
LLVMConstInt(ctx->ac.i32, simm16, false),
};
ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.s.waitcnt",
- ctx->voidt, args, 1, 0);
+ ctx->ac.voidt, args, 1, 0);
}
static void emit_barrier(struct nir_to_llvm_context *ctx)
@@ -3704,7 +3702,7 @@ static void emit_barrier(struct nir_to_llvm_context *ctx)
return;
}
ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.s.barrier",
- ctx->voidt, NULL, 0, AC_FUNC_ATTR_CONVERGENT);
+ ctx->ac.voidt, NULL, 0, AC_FUNC_ATTR_CONVERGENT);
}
static void emit_discard_if(struct ac_nir_context *ctx,