Home
last modified time | relevance | path

Searched refs:bld_base (Results 1 – 13 of 13) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi_action.c66 struct lp_build_tgsi_context * bld_base, in scalar_unary_fetch_args() argument
70 emit_data->args[0] = lp_build_emit_fetch(bld_base, emit_data->inst, 0, 0); in scalar_unary_fetch_args()
76 struct lp_build_tgsi_context * bld_base, in scalar_binary_fetch_args() argument
80 emit_data->args[0] = lp_build_emit_fetch(bld_base, emit_data->inst, in scalar_binary_fetch_args()
83 emit_data->args[1] = lp_build_emit_fetch(bld_base, emit_data->inst, in scalar_binary_fetch_args()
93 struct lp_build_tgsi_context * bld_base, in add_emit() argument
97 bld_base->base.gallivm->builder, in add_emit()
105 struct lp_build_tgsi_context * bld_base, in arr_emit() argument
108 LLVMValueRef tmp = lp_build_emit_llvm_unary(bld_base, TGSI_OPCODE_ROUND, emit_data->args[0]); in arr_emit()
109 emit_data->output[emit_data->chan] = LLVMBuildFPToSI(bld_base->base.gallivm->builder, tmp, in arr_emit()
[all …]
Dlp_bld_tgsi.c43 unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base) in lp_bld_tgsi_list_init() argument
45 bld_base->instructions = (struct tgsi_full_instruction *) in lp_bld_tgsi_list_init()
47 if (!bld_base->instructions) { in lp_bld_tgsi_list_init()
50 bld_base->max_instructions = LP_MAX_INSTRUCTIONS; in lp_bld_tgsi_list_init()
56 struct lp_build_tgsi_context * bld_base, in lp_bld_tgsi_add_instruction() argument
60 if (bld_base->num_instructions == bld_base->max_instructions) { in lp_bld_tgsi_add_instruction()
62 instructions = REALLOC(bld_base->instructions, bld_base->max_instructions in lp_bld_tgsi_add_instruction()
64 (bld_base->max_instructions + LP_MAX_INSTRUCTIONS) in lp_bld_tgsi_add_instruction()
69 bld_base->instructions = instructions; in lp_bld_tgsi_add_instruction()
70 bld_base->max_instructions += LP_MAX_INSTRUCTIONS; in lp_bld_tgsi_add_instruction()
[all …]
Dlp_bld_tgsi_aos.c67 swizzle_aos(struct lp_build_tgsi_context *bld_base, in swizzle_aos() argument
75 struct lp_build_tgsi_aos_context *bld = lp_aos_context(bld_base); in swizzle_aos()
87 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles); in swizzle_aos()
97 return lp_build_swizzle_scalar_aos(&bld->bld_base.base, a, chan, 4); in swizzle_scalar_aos()
103 struct lp_build_tgsi_context * bld_base, in emit_fetch_constant() argument
108 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); in emit_fetch_constant()
109 LLVMBuilderRef builder = bld_base->base.gallivm->builder; in emit_fetch_constant()
110 struct lp_type type = bld_base->base.type; in emit_fetch_constant()
120 res = bld->bld_base.base.undef; in emit_fetch_constant()
127 index = lp_build_const_int32(bld->bld_base.base.gallivm, in emit_fetch_constant()
[all …]
Dlp_bld_tgsi_soa.c356 struct lp_build_tgsi_context * bld_base) in lp_exec_break() argument
371 unsigned opcode = bld_base->instructions[bld_base->pc + 1].Instruction.Opcode; in lp_exec_break()
384 bld_base->pc = ctx->switch_pc; in lp_exec_break()
532 struct lp_build_tgsi_context * bld_base) in lp_exec_endswitch() argument
553 assert(bld_base->instructions[ctx->switch_pc - 1].Instruction.Opcode == in lp_exec_endswitch()
556 tmp_pc = bld_base->pc; in lp_exec_endswitch()
557 bld_base->pc = ctx->switch_pc; in lp_exec_endswitch()
568 assert(bld_base->pc == ctx->switch_pc + 1); in lp_exec_endswitch()
616 struct lp_build_tgsi_context * bld_base, in default_analyse_is_last() argument
619 unsigned pc = bld_base->pc; in default_analyse_is_last()
[all …]
Dlp_bld_tgsi.h316 unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base);
320 struct lp_build_tgsi_context * bld_base,
413 struct lp_build_tgsi_context * bld_base,
420 struct lp_build_tgsi_context * bld_base,
424 struct lp_build_tgsi_context * bld_base,
428 struct lp_build_tgsi_context * bld_base,
435 struct lp_build_tgsi_context bld_base; member
505 struct lp_build_tgsi_context *bld_base,
529 struct lp_build_tgsi_context bld_base; member
568 lp_soa_context(struct lp_build_tgsi_context *bld_base) in lp_soa_context() argument
[all …]
Dlp_bld_tgsi_action.h137 struct lp_build_tgsi_context * bld_base);
146 struct lp_build_tgsi_context * bld_base);
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_tgsi_alu.c31 static void kill_if_fetch_args(struct lp_build_tgsi_context *bld_base, in kill_if_fetch_args() argument
35 struct si_shader_context *ctx = si_shader_context(bld_base); in kill_if_fetch_args()
41 LLVMValueRef value = lp_build_emit_fetch(bld_base, inst, 0, i); in kill_if_fetch_args()
57 struct lp_build_tgsi_context *bld_base, in kil_emit() argument
60 struct si_shader_context *ctx = si_shader_context(bld_base); in kil_emit()
88 struct lp_build_tgsi_context *bld_base, in emit_icmp() argument
92 struct si_shader_context *ctx = si_shader_context(bld_base); in emit_icmp()
122 struct lp_build_tgsi_context *bld_base, in emit_ucmp() argument
125 struct si_shader_context *ctx = si_shader_context(bld_base); in emit_ucmp()
136 struct lp_build_tgsi_context *bld_base, in emit_cmp() argument
[all …]
Dsi_shader_tgsi_setup.c157 LLVMTypeRef tgsi2llvmtype(struct lp_build_tgsi_context *bld_base, in tgsi2llvmtype() argument
160 struct si_shader_context *ctx = si_shader_context(bld_base); in tgsi2llvmtype()
179 LLVMValueRef bitcast(struct lp_build_tgsi_context *bld_base, in bitcast() argument
182 struct si_shader_context *ctx = si_shader_context(bld_base); in bitcast()
183 LLVMTypeRef dst_type = tgsi2llvmtype(bld_base, type); in bitcast()
219 static LLVMValueRef emit_swizzle(struct lp_build_tgsi_context *bld_base, in emit_swizzle() argument
226 struct si_shader_context *ctx = si_shader_context(bld_base); in emit_swizzle()
245 get_temp_array_id(struct lp_build_tgsi_context *bld_base, in get_temp_array_id() argument
249 struct si_shader_context *ctx = si_shader_context(bld_base); in get_temp_array_id()
250 unsigned num_arrays = ctx->bld_base.info->array_max[TGSI_FILE_TEMPORARY]; in get_temp_array_id()
[all …]
Dsi_shader_tgsi_mem.c35 struct lp_build_tgsi_context *bld_base,
45 struct lp_build_tgsi_context *bld_base, in get_buffer_size() argument
48 struct si_shader_context *ctx = si_shader_context(bld_base); in get_buffer_size()
159 struct lp_build_tgsi_context *bld_base, in image_fetch_rsrc() argument
164 struct si_shader_context *ctx = si_shader_context(bld_base); in image_fetch_rsrc()
171 const struct tgsi_shader_info *info = bld_base->info; in image_fetch_rsrc()
204 index = lp_build_emit_fetch_src(bld_base, image, in image_fetch_rsrc()
220 struct lp_build_tgsi_context *bld_base, in image_fetch_coords() argument
224 struct si_shader_context *ctx = si_shader_context(bld_base); in image_fetch_coords()
233 tmp = lp_build_emit_fetch(bld_base, inst, src, chan); in image_fetch_coords()
[all …]
Dsi_shader_internal.h50 struct lp_build_tgsi_context bld_base; member
216 si_shader_context(struct lp_build_tgsi_context *bld_base) in si_shader_context() argument
218 return (struct si_shader_context*)bld_base; in si_shader_context()
234 LLVMTypeRef tgsi2llvmtype(struct lp_build_tgsi_context *bld_base,
237 LLVMValueRef bitcast(struct lp_build_tgsi_context *bld_base,
259 LLVMValueRef si_llvm_emit_fetch_64bit(struct lp_build_tgsi_context *bld_base,
264 LLVMValueRef si_llvm_emit_fetch(struct lp_build_tgsi_context *bld_base,
287 void si_llvm_emit_store(struct lp_build_tgsi_context *bld_base,
307 void si_shader_context_init_alu(struct lp_build_tgsi_context *bld_base);
Dsi_shader.c82 struct lp_build_tgsi_context *bld_base,
350 return lp_build_mul_imm(&ctx->bld_base.uint_bld, in get_tcs_out_patch0_offset()
360 return lp_build_mul_imm(&ctx->bld_base.uint_bld, in get_tcs_out_patch0_patch_data_offset()
807 result = ctx->bld_base.emit_fetch_funcs[ind->File](&ctx->bld_base, &src, in si_get_indirect_index()
1084 static LLVMValueRef buffer_load(struct lp_build_tgsi_context *bld_base, in buffer_load() argument
1089 struct si_shader_context *ctx = si_shader_context(bld_base); in buffer_load()
1115 return si_llvm_emit_fetch_64bit(bld_base, type, value, value2); in buffer_load()
1125 static LLVMValueRef lds_load(struct lp_build_tgsi_context *bld_base, in lds_load() argument
1129 struct si_shader_context *ctx = si_shader_context(bld_base); in lds_load()
1136 values[chan] = lds_load(bld_base, type, chan, dw_addr); in lds_load()
[all …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_shader.cpp233 struct lp_build_tgsi_context * bld_base,
241 struct lp_build_tgsi_context * bld_base,
247 struct lp_build_tgsi_context * bld_base,
253 struct lp_build_tgsi_context * bld_base,
276 struct lp_build_tgsi_context * bld_base, in swr_gs_llvm_fetch_input() argument
285 return iface->pBuilder->swr_gs_llvm_fetch_input(gs_iface, bld_base, in swr_gs_llvm_fetch_input()
295 struct lp_build_tgsi_context * bld_base, in swr_gs_llvm_emit_vertex() argument
301 iface->pBuilder->swr_gs_llvm_emit_vertex(gs_base, bld_base, in swr_gs_llvm_emit_vertex()
308 struct lp_build_tgsi_context * bld_base, in swr_gs_llvm_end_primitive() argument
314 iface->pBuilder->swr_gs_llvm_end_primitive(gs_base, bld_base, in swr_gs_llvm_end_primitive()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c1380 struct lp_build_tgsi_context * bld_base, in draw_gs_llvm_fetch_input() argument
1388 struct gallivm_state *gallivm = bld_base->base.gallivm; in draw_gs_llvm_fetch_input()
1392 struct lp_type type = bld_base->base.type; in draw_gs_llvm_fetch_input()
1396 res = bld_base->base.zero; in draw_gs_llvm_fetch_input()
1436 struct lp_build_tgsi_context * bld_base, in draw_gs_llvm_emit_vertex() argument
1444 struct lp_type gs_type = bld_base->base.type; in draw_gs_llvm_emit_vertex()
1470 struct lp_build_tgsi_context * bld_base, in draw_gs_llvm_end_primitive() argument
1482 for (i = 0; i < bld_base->base.type.length; ++i) { in draw_gs_llvm_end_primitive()
1499 struct lp_build_tgsi_context * bld_base, in draw_gs_llvm_epilogue() argument