radeonsi: make emit_streamout_output externally accessible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 21 Sep 2018 20:07:01 +0000 (22:07 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_internal.h

index 80bc43c753620ed5069b5a6c9eb07fd6b8b8ec5c..934639822d0b011d21c5ea447a0066c2b17240ed 100644 (file)
@@ -2606,11 +2606,11 @@ static void si_dump_streamout(struct pipe_stream_output_info *so)
        }
 }
 
-static void emit_streamout_output(struct si_shader_context *ctx,
-                                 LLVMValueRef const *so_buffers,
-                                 LLVMValueRef const *so_write_offsets,
-                                 struct pipe_stream_output *stream_out,
-                                 struct si_shader_output_values *shader_out)
+void si_emit_streamout_output(struct si_shader_context *ctx,
+                             LLVMValueRef const *so_buffers,
+                             LLVMValueRef const *so_write_offsets,
+                             struct pipe_stream_output *stream_out,
+                             struct si_shader_output_values *shader_out)
 {
        unsigned buf_idx = stream_out->output_buffer;
        unsigned start = stream_out->start_component;
@@ -2733,8 +2733,8 @@ static void si_llvm_emit_streamout(struct si_shader_context *ctx,
                        if (stream != so->output[i].stream)
                                continue;
 
-                       emit_streamout_output(ctx, so_buffers, so_write_offset,
-                                             &so->output[i], &outputs[reg]);
+                       si_emit_streamout_output(ctx, so_buffers, so_write_offset,
+                                                &so->output[i], &outputs[reg]);
                }
        }
        lp_build_endif(&if_ctx);
index 0c81fb64cda1bce00d82174a6266c46c42dfbf60..f758e99047d03179d12b890970aeaf499eba02a1 100644 (file)
@@ -351,6 +351,11 @@ LLVMValueRef si_get_primitive_id(struct si_shader_context *ctx,
 void si_llvm_export_vs(struct si_shader_context *ctx,
                       struct si_shader_output_values *outputs,
                       unsigned noutput);
+void si_emit_streamout_output(struct si_shader_context *ctx,
+                             LLVMValueRef const *so_buffers,
+                             LLVMValueRef const *so_write_offsets,
+                             struct pipe_stream_output *stream_out,
+                             struct si_shader_output_values *shader_out);
 
 void si_llvm_load_input_vs(
        struct si_shader_context *ctx,