mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radeonsi: extract TGSI memory/texture opcode handling into its own file
It's about time to get the growth of si_shader.c somewhat under control. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
cd9504667b
commit
c485b47383
5 changed files with 1886 additions and 1841 deletions
|
|
@ -18,6 +18,7 @@ C_SOURCES := \
|
|||
si_shader.h \
|
||||
si_shader_internal.h \
|
||||
si_shader_tgsi_alu.c \
|
||||
si_shader_tgsi_mem.c \
|
||||
si_shader_tgsi_setup.c \
|
||||
si_state.c \
|
||||
si_state_draw.c \
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -301,5 +301,6 @@ LLVMValueRef si_get_bounded_indirect_index(struct si_shader_context *ctx,
|
|||
LLVMTypeRef si_const_array(LLVMTypeRef elem_type, int num_elements);
|
||||
|
||||
void si_shader_context_init_alu(struct lp_build_tgsi_context *bld_base);
|
||||
void si_shader_context_init_mem(struct si_shader_context *ctx);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
1883
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
Normal file
1883
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1277,6 +1277,7 @@ void si_llvm_context_init(struct si_shader_context *ctx,
|
|||
bld_base->op_actions[TGSI_OPCODE_ENDLOOP].emit = endloop_emit;
|
||||
|
||||
si_shader_context_init_alu(&ctx->bld_base);
|
||||
si_shader_context_init_mem(ctx);
|
||||
|
||||
ctx->voidt = LLVMVoidTypeInContext(ctx->gallivm.context);
|
||||
ctx->i1 = LLVMInt1TypeInContext(ctx->gallivm.context);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue