From: Marek Olšák Date: Tue, 24 Dec 2019 00:53:46 +0000 (-0500) Subject: radeonsi: make si_insert_input_* functions non-static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34ef0c5083af7279af9a4ac8653a1966013d3a59;p=mesa.git radeonsi: make si_insert_input_* functions non-static Reviewed-by: Pierre-Eric Pelloux-Prayer --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index aff52250bd3..d68951533a7 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2172,18 +2172,16 @@ static void si_write_tess_factors(struct si_shader_context *ctx, ac_build_endif(&ctx->ac, 6503); } -static LLVMValueRef -si_insert_input_ret(struct si_shader_context *ctx, LLVMValueRef ret, - struct ac_arg param, unsigned return_index) +LLVMValueRef si_insert_input_ret(struct si_shader_context *ctx, LLVMValueRef ret, + struct ac_arg param, unsigned return_index) { return LLVMBuildInsertValue(ctx->ac.builder, ret, ac_get_arg(&ctx->ac, param), return_index, ""); } -static LLVMValueRef -si_insert_input_ret_float(struct si_shader_context *ctx, LLVMValueRef ret, - struct ac_arg param, unsigned return_index) +LLVMValueRef si_insert_input_ret_float(struct si_shader_context *ctx, LLVMValueRef ret, + struct ac_arg param, unsigned return_index) { LLVMBuilderRef builder = ctx->ac.builder; LLVMValueRef p = ac_get_arg(&ctx->ac, param); @@ -2193,9 +2191,8 @@ si_insert_input_ret_float(struct si_shader_context *ctx, LLVMValueRef ret, return_index, ""); } -static LLVMValueRef -si_insert_input_ptr(struct si_shader_context *ctx, LLVMValueRef ret, - struct ac_arg param, unsigned return_index) +LLVMValueRef si_insert_input_ptr(struct si_shader_context *ctx, LLVMValueRef ret, + struct ac_arg param, unsigned return_index) { LLVMBuilderRef builder = ctx->ac.builder; LLVMValueRef ptr = ac_get_arg(&ctx->ac, param); diff --git a/src/gallium/drivers/radeonsi/si_shader_internal.h b/src/gallium/drivers/radeonsi/si_shader_internal.h index 5fc13279a81..6d36b9750c7 100644 --- a/src/gallium/drivers/radeonsi/si_shader_internal.h +++ b/src/gallium/drivers/radeonsi/si_shader_internal.h @@ -291,6 +291,12 @@ void si_get_ps_prolog_key(struct si_shader *shader, bool separate_prolog); void si_get_ps_epilog_key(struct si_shader *shader, union si_shader_part_key *key); +LLVMValueRef si_insert_input_ret(struct si_shader_context *ctx, LLVMValueRef ret, + struct ac_arg param, unsigned return_index); +LLVMValueRef si_insert_input_ret_float(struct si_shader_context *ctx, LLVMValueRef ret, + struct ac_arg param, unsigned return_index); +LLVMValueRef si_insert_input_ptr(struct si_shader_context *ctx, LLVMValueRef ret, + struct ac_arg param, unsigned return_index); void gfx10_emit_ngg_epilogue(struct ac_shader_abi *abi, unsigned max_outputs,