diff options
author | Samuel Pitoiset <[email protected]> | 2018-02-09 13:54:27 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-02-12 11:54:21 +0100 |
commit | 5ef5944848527c214a460cd746fcc467991c80c7 (patch) | |
tree | 41b47e33ba1607d367bc21c8bbc76a84e349c2a3 | |
parent | da8b0b82644870ce3844ada795d39266d24f1271 (diff) |
ac/nir: drop nir_to_llvm_context from visit_load_local_invocation_index()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 4ecbc985db1..c695d4ec721 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3899,14 +3899,14 @@ visit_load_helper_invocation(struct ac_nir_context *ctx) } static LLVMValueRef -visit_load_local_invocation_index(struct nir_to_llvm_context *ctx) +visit_load_local_invocation_index(struct ac_nir_context *ctx) { LLVMValueRef result; LLVMValueRef thread_id = ac_get_thread_id(&ctx->ac); - result = LLVMBuildAnd(ctx->builder, ctx->abi.tg_size, + result = LLVMBuildAnd(ctx->ac.builder, ctx->abi->tg_size, LLVMConstInt(ctx->ac.i32, 0xfc0, false), ""); - return LLVMBuildAdd(ctx->builder, result, thread_id, ""); + return LLVMBuildAdd(ctx->ac.builder, result, thread_id, ""); } static LLVMValueRef visit_var_atomic(struct nir_to_llvm_context *ctx, @@ -4377,7 +4377,7 @@ static void visit_intrinsic(struct ac_nir_context *ctx, result = ctx->abi->num_work_groups; break; case nir_intrinsic_load_local_invocation_index: - result = visit_load_local_invocation_index(ctx->nctx); + result = visit_load_local_invocation_index(ctx); break; case nir_intrinsic_load_push_constant: result = visit_load_push_constant(ctx->nctx, instr); |