diff options
author | Samuel Pitoiset <[email protected]> | 2018-02-09 13:54:30 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-02-12 11:54:27 +0100 |
commit | 485346b05a6ab2791579219ef74809faf383a15c (patch) | |
tree | f5c1faaeb1e6d23c724cc8bf53ffe061f4d40706 /src/amd | |
parent | cd6dfacda9063fdc41f48b86470f50ba5a9e79ae (diff) |
ac/nir: drop nir_to_llvm_context from visit_vulkan_resource_reindex()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 13fa22d4442..f23805667cd 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2382,13 +2382,13 @@ radv_load_resource(struct ac_shader_abi *abi, LLVMValueRef index, return desc_ptr; } -static LLVMValueRef visit_vulkan_resource_reindex(struct nir_to_llvm_context *ctx, +static LLVMValueRef visit_vulkan_resource_reindex(struct ac_nir_context *ctx, nir_intrinsic_instr *instr) { - LLVMValueRef ptr = get_src(ctx->nir, instr->src[0]); - LLVMValueRef index = get_src(ctx->nir, instr->src[1]); + LLVMValueRef ptr = get_src(ctx, instr->src[0]); + LLVMValueRef index = get_src(ctx, instr->src[1]); - LLVMValueRef result = LLVMBuildGEP(ctx->builder, ptr, &index, 1, ""); + LLVMValueRef result = LLVMBuildGEP(ctx->ac.builder, ptr, &index, 1, ""); LLVMSetMetadata(result, ctx->ac.uniform_md_kind, ctx->ac.empty_md); return result; } @@ -4393,7 +4393,7 @@ static void visit_intrinsic(struct ac_nir_context *ctx, break; } case nir_intrinsic_vulkan_resource_reindex: - result = visit_vulkan_resource_reindex(ctx->nctx, instr); + result = visit_vulkan_resource_reindex(ctx, instr); break; case nir_intrinsic_store_ssbo: visit_store_ssbo(ctx, instr); |