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:
@@ -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
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user