radeonsi: make emit_streamout_output externally accessible
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:

committed by
Marek Olšák

parent
e241b405ca
commit
112bf7f900
@@ -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,
|
void si_emit_streamout_output(struct si_shader_context *ctx,
|
||||||
LLVMValueRef const *so_buffers,
|
LLVMValueRef const *so_buffers,
|
||||||
LLVMValueRef const *so_write_offsets,
|
LLVMValueRef const *so_write_offsets,
|
||||||
struct pipe_stream_output *stream_out,
|
struct pipe_stream_output *stream_out,
|
||||||
struct si_shader_output_values *shader_out)
|
struct si_shader_output_values *shader_out)
|
||||||
{
|
{
|
||||||
unsigned buf_idx = stream_out->output_buffer;
|
unsigned buf_idx = stream_out->output_buffer;
|
||||||
unsigned start = stream_out->start_component;
|
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)
|
if (stream != so->output[i].stream)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
emit_streamout_output(ctx, so_buffers, so_write_offset,
|
si_emit_streamout_output(ctx, so_buffers, so_write_offset,
|
||||||
&so->output[i], &outputs[reg]);
|
&so->output[i], &outputs[reg]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lp_build_endif(&if_ctx);
|
lp_build_endif(&if_ctx);
|
||||||
|
@@ -351,6 +351,11 @@ LLVMValueRef si_get_primitive_id(struct si_shader_context *ctx,
|
|||||||
void si_llvm_export_vs(struct si_shader_context *ctx,
|
void si_llvm_export_vs(struct si_shader_context *ctx,
|
||||||
struct si_shader_output_values *outputs,
|
struct si_shader_output_values *outputs,
|
||||||
unsigned noutput);
|
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(
|
void si_llvm_load_input_vs(
|
||||||
struct si_shader_context *ctx,
|
struct si_shader_context *ctx,
|
||||||
|
Reference in New Issue
Block a user