mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
ac: add ac_build_s_endpgm
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
This commit is contained in:
parent
1c44480538
commit
9b71041627
2 changed files with 7 additions and 0 deletions
|
|
@ -4889,3 +4889,9 @@ ac_build_main(const struct ac_shader_args *args,
|
|||
return main_function;
|
||||
}
|
||||
|
||||
void ac_build_s_endpgm(struct ac_llvm_context *ctx)
|
||||
{
|
||||
LLVMTypeRef calltype = LLVMFunctionType(ctx->voidt, NULL, 0, false);
|
||||
LLVMValueRef code = LLVMConstInlineAsm(calltype, "s_endpgm", "", true, false);
|
||||
LLVMBuildCall(ctx->builder, code, NULL, 0, "");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -786,6 +786,7 @@ LLVMValueRef ac_build_main(const struct ac_shader_args *args,
|
|||
enum ac_llvm_calling_convention convention,
|
||||
const char *name, LLVMTypeRef ret_type,
|
||||
LLVMModuleRef module);
|
||||
void ac_build_s_endpgm(struct ac_llvm_context *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue