radeonsi: make si_insert_input_* functions non-static
authorMarek Olšák <marek.olsak@amd.com>
Tue, 24 Dec 2019 00:53:46 +0000 (19:53 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 15 Jan 2020 20:06:29 +0000 (15:06 -0500)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h

index aff52250bd3246b8ca39001a9cc806e1316e50c2..d68951533a7be00756c6905d34301b221fc74d80 100644 (file)
@@ -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);
index 5fc13279a81900ac4c338018976fdaa0c881ca8b..6d36b9750c7ac2ab9f4a88e483af6275d26d9315 100644 (file)
@@ -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,