Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi_action.c64 struct lp_build_tgsi_context * bld_base, in scalar_unary_fetch_args() argument
68 emit_data->args[0] = lp_build_emit_fetch(bld_base, emit_data->inst, 0, 0); in scalar_unary_fetch_args()
74 struct lp_build_tgsi_context * bld_base, in scalar_binary_fetch_args() argument
78 emit_data->args[0] = lp_build_emit_fetch(bld_base, emit_data->inst, in scalar_binary_fetch_args()
81 emit_data->args[1] = lp_build_emit_fetch(bld_base, emit_data->inst, in scalar_binary_fetch_args()
91 struct lp_build_tgsi_context * bld_base, in add_emit() argument
95 bld_base->base.gallivm->builder, in add_emit()
103 struct lp_build_tgsi_context * bld_base, in arr_emit() argument
106 LLVMValueRef tmp = lp_build_emit_llvm_unary(bld_base, TGSI_OPCODE_ROUND, emit_data->args[0]); in arr_emit()
107 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); 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.c391 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in lp_get_temp_ptr_soa()
394 LLVMValueRef lindex = lp_build_const_int32(bld->bld_base.base.gallivm, index * 4 + chan); in lp_get_temp_ptr_soa()
413 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in lp_get_output_ptr()
416 LLVMValueRef lindex = lp_build_const_int32(bld->bld_base.base.gallivm, in lp_get_output_ptr()
468 struct gallivm_state *gallivm = bld->bld_base.base.gallivm; in emit_mask_scatter()
485 for (i = 0; i < bld->bld_base.base.type.length; i++) { in emit_mask_scatter()
521 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in get_indirect_index()
522 struct lp_build_context *uint_bld = &bld->bld_base.uint_bld; in get_indirect_index()
532 base = lp_build_const_int_vec(bld->bld_base.base.gallivm, uint_bld->type, reg_index); in get_indirect_index()
541 max_index = lp_build_const_int_vec(bld->bld_base.base.gallivm, in get_indirect_index()
[all …]
Dlp_bld_tgsi.h278 unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base);
282 struct lp_build_tgsi_context * bld_base,
358 struct lp_build_tgsi_context bld_base; member
411 struct lp_build_tgsi_context *bld_base,
435 struct lp_build_tgsi_context bld_base; member
473 lp_soa_context(struct lp_build_tgsi_context *bld_base) in lp_soa_context() argument
475 return (struct lp_build_tgsi_soa_context *)bld_base; in lp_soa_context()
479 lp_aos_context(struct lp_build_tgsi_context *bld_base) in lp_aos_context() argument
481 return (struct lp_build_tgsi_aos_context *)bld_base; in lp_aos_context()
505 struct lp_build_tgsi_context * bld_base,
[all …]
Dlp_bld_tgsi_action.h127 struct lp_build_tgsi_context * bld_base);
136 struct lp_build_tgsi_context * bld_base);
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_setup_tgsi_llvm.c61 struct lp_build_tgsi_context * bld_base, in emit_swizzle() argument
70 LLVMInt32TypeInContext(bld_base->base.gallivm->context); in emit_swizzle()
77 return LLVMBuildShuffleVector(bld_base->base.gallivm->builder, in emit_swizzle()
89 struct gallivm_state * gallivm = bld->bld_base.base.gallivm; in emit_array_index()
105 struct lp_build_tgsi_context *bld_base, in emit_fetch_immediate() argument
111 LLVMContextRef ctx = bld_base->base.gallivm->context; in emit_fetch_immediate()
127 struct lp_build_tgsi_soa_context *bld = lp_soa_context(bld_base); in emit_fetch_immediate()
133 struct lp_build_tgsi_context *bld_base, in emit_fetch_input() argument
138 struct radeon_llvm_context * ctx = radeon_llvm_context(bld_base); in emit_fetch_input()
146 return lp_build_gather_values(bld_base->base.gallivm, values, in emit_fetch_input()
[all …]
Dradeon_llvm.h116 struct lp_build_tgsi_context * bld_base, in bitcast() argument
121 LLVMBuilderRef builder = bld_base->base.gallivm->builder; in bitcast()
122 LLVMContextRef ctx = bld_base->base.gallivm->context; in bitcast()
151 struct lp_build_tgsi_context * bld_base) in radeon_llvm_context() argument
153 return (struct radeon_llvm_context*)bld_base; in radeon_llvm_context()
171 struct lp_build_tgsi_context * bld_base,
/external/mesa3d/src/gallium/drivers/r600/
Dr600_llvm.c22 struct lp_build_tgsi_context * bld_base, in llvm_fetch_const() argument
27 LLVMValueRef idx = lp_build_const_int32(bld_base->base.gallivm, in llvm_fetch_const()
29 LLVMValueRef cval = build_intrinsic(bld_base->base.gallivm->builder, in llvm_fetch_const()
30 "llvm.AMDGPU.load.const", bld_base->base.elem_type, in llvm_fetch_const()
33 return bitcast(bld_base, type, cval); in llvm_fetch_const()
50 ctx->soa.bld_base.base.gallivm, chan); in llvm_load_system_value()
52 ctx->soa.bld_base.base.gallivm->builder, in llvm_load_system_value()
54 ctx->soa.bld_base.base.elem_type, &reg, 1, in llvm_load_system_value()
59 struct lp_build_tgsi_context * bld_base, in llvm_fetch_system_value() argument
64 struct radeon_llvm_context * ctx = radeon_llvm_context(bld_base); in llvm_fetch_system_value()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dradeonsi_shader.c85 struct lp_build_tgsi_context * bld_base) in si_shader_context() argument
87 return (struct si_shader_context *)bld_base; in si_shader_context()
211 struct lp_build_context * uint = &si_shader_ctx->radeon_bld.soa.bld_base.uint_bld; in declare_input_vs()
212 struct lp_build_context * base = &si_shader_ctx->radeon_bld.soa.bld_base.base; in declare_input_vs()
262 &si_shader_ctx->radeon_bld.soa.bld_base.base; in declare_input_fs()
343 si_shader_context(&radeon_bld->soa.bld_base); in declare_input()
354 struct lp_build_tgsi_context * bld_base, in fetch_constant() argument
359 struct lp_build_context * base = &bld_base->base; in fetch_constant()
376 return bitcast(bld_base, type, load); in fetch_constant()
380 static void si_llvm_init_export_args(struct lp_build_tgsi_context *bld_base, in si_llvm_init_export_args() argument
[all …]