ac/llvm: Clarify arguments of ac_build_sendmsg.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22690>
This commit is contained in:
@@ -1632,11 +1632,11 @@ LLVMValueRef ac_build_ddxy(struct ac_llvm_context *ctx, uint32_t mask, int idx,
|
|||||||
return ac_build_intrinsic(ctx, name, result_type, &result, 1, 0);
|
return ac_build_intrinsic(ctx, name, result_type, &result, 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ac_build_sendmsg(struct ac_llvm_context *ctx, uint32_t msg, LLVMValueRef wave_id)
|
void ac_build_sendmsg(struct ac_llvm_context *ctx, uint32_t imm, LLVMValueRef m0_content)
|
||||||
{
|
{
|
||||||
LLVMValueRef args[2];
|
LLVMValueRef args[2];
|
||||||
args[0] = LLVMConstInt(ctx->i32, msg, false);
|
args[0] = LLVMConstInt(ctx->i32, imm, false);
|
||||||
args[1] = wave_id;
|
args[1] = m0_content;
|
||||||
ac_build_intrinsic(ctx, "llvm.amdgcn.s.sendmsg", ctx->voidt, args, 2, 0);
|
ac_build_intrinsic(ctx, "llvm.amdgcn.s.sendmsg", ctx->voidt, args, 2, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -332,7 +332,7 @@ LLVMValueRef ac_get_thread_id(struct ac_llvm_context *ctx);
|
|||||||
|
|
||||||
LLVMValueRef ac_build_ddxy(struct ac_llvm_context *ctx, uint32_t mask, int idx, LLVMValueRef val);
|
LLVMValueRef ac_build_ddxy(struct ac_llvm_context *ctx, uint32_t mask, int idx, LLVMValueRef val);
|
||||||
|
|
||||||
void ac_build_sendmsg(struct ac_llvm_context *ctx, uint32_t msg, LLVMValueRef wave_id);
|
void ac_build_sendmsg(struct ac_llvm_context *ctx, uint32_t imm, LLVMValueRef m0_content);
|
||||||
|
|
||||||
LLVMValueRef ac_build_imsb(struct ac_llvm_context *ctx, LLVMValueRef arg, LLVMTypeRef dst_type);
|
LLVMValueRef ac_build_imsb(struct ac_llvm_context *ctx, LLVMValueRef arg, LLVMTypeRef dst_type);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user