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.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_nir.c39 static void visit_cf_list(struct lp_build_nir_context *bld_base,
42 static LLVMValueRef cast_type(struct lp_build_nir_context *bld_base, LLVMValueRef val, in cast_type() argument
45 LLVMBuilderRef builder = bld_base->base.gallivm->builder; in cast_type()
50 …ast(builder, val, LLVMVectorType(LLVMHalfTypeInContext(bld_base->base.gallivm->context), bld_base-… in cast_type()
52 return LLVMBuildBitCast(builder, val, bld_base->base.vec_type, ""); in cast_type()
54 return LLVMBuildBitCast(builder, val, bld_base->dbl_bld.vec_type, ""); in cast_type()
63 return LLVMBuildBitCast(builder, val, bld_base->int8_bld.vec_type, ""); in cast_type()
65 return LLVMBuildBitCast(builder, val, bld_base->int16_bld.vec_type, ""); in cast_type()
67 return LLVMBuildBitCast(builder, val, bld_base->int_bld.vec_type, ""); in cast_type()
69 return LLVMBuildBitCast(builder, val, bld_base->int64_bld.vec_type, ""); in cast_type()
[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.c116 mask_vec(struct lp_build_tgsi_context *bld_base) in mask_vec() argument
118 struct lp_build_tgsi_soa_context * bld = lp_soa_context(bld_base); in mask_vec()
119 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in mask_vec()
132 struct lp_build_tgsi_context * bld_base) in lp_exec_tgsi_break() argument
135 bld_base->instructions[bld_base->pc + 1].Instruction.Opcode; in lp_exec_tgsi_break()
138 lp_exec_break(mask, &bld_base->pc, break_always); in lp_exec_tgsi_break()
173 struct lp_build_tgsi_context * bld_base) in lp_exec_endswitch() argument
194 assert(bld_base->instructions[ctx->switch_pc - 1].Instruction.Opcode == in lp_exec_endswitch()
197 tmp_pc = bld_base->pc; in lp_exec_endswitch()
198 bld_base->pc = ctx->switch_pc; in lp_exec_endswitch()
[all …]
Dlp_bld_nir.h62 void (*load_ubo)(struct lp_build_nir_context *bld_base,
68 void (*load_kernel_arg)(struct lp_build_nir_context *bld_base,
75 void (*load_global)(struct lp_build_nir_context *bld_base,
80 void (*store_global)(struct lp_build_nir_context *bld_base,
86 void (*atomic_global)(struct lp_build_nir_context *bld_base,
94 void (*load_mem)(struct lp_build_nir_context *bld_base,
97 void (*store_mem)(struct lp_build_nir_context *bld_base,
101 void (*atomic_mem)(struct lp_build_nir_context *bld_base,
107 void (*barrier)(struct lp_build_nir_context *bld_base);
109 void (*image_op)(struct lp_build_nir_context *bld_base,
[all …]
Dlp_bld_nir_soa.c58 mask_vec(struct lp_build_nir_context *bld_base) in mask_vec() argument
60 struct lp_build_nir_soa_context * bld = (struct lp_build_nir_soa_context *)bld_base; in mask_vec()
61 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in mask_vec()
75 struct lp_build_nir_context * bld_base, in emit_fetch_64bit() argument
79 struct gallivm_state *gallivm = bld_base->base.gallivm; in emit_fetch_64bit()
84 int len = bld_base->base.type.length * 2; in emit_fetch_64bit()
87 for (i = 0; i < bld_base->base.type.length * 2; i+=2) { in emit_fetch_64bit()
90 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit()
92 shuffles[i] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit()
98 return LLVMBuildBitCast(builder, res, bld_base->dbl_bld.vec_type, ""); in emit_fetch_64bit()
[all …]
Dlp_bld_tgsi.h315 unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base);
319 struct lp_build_tgsi_context * bld_base,
453 void (*emit_barrier)(struct lp_build_context *bld_base);
507 struct lp_build_tgsi_context bld_base; member
590 struct lp_build_tgsi_context *bld_base,
614 struct lp_build_tgsi_context bld_base; member
653 lp_soa_context(struct lp_build_tgsi_context *bld_base) in lp_soa_context() argument
655 return (struct lp_build_tgsi_soa_context *)bld_base; in lp_soa_context()
659 lp_aos_context(struct lp_build_tgsi_context *bld_base) in lp_aos_context() argument
661 return (struct lp_build_tgsi_aos_context *)bld_base; in lp_aos_context()
[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/swr/
Dswr_shader.cpp383 struct lp_build_tgsi_context * bld_base,
392 struct lp_build_tgsi_context * bld_base,
402 struct lp_build_tgsi_context * bld_base,
415 struct lp_build_tgsi_context *bld_base);
420 struct lp_build_tgsi_context * bld_base,
429 struct lp_build_tgsi_context * bld_base,
558 struct lp_build_tgsi_context *bld_base = (struct lp_build_tgsi_context*)bld; in swr_tcs_llvm_fetch_input() local
560 return iface->pBuilder->swr_tcs_llvm_fetch_input(tcs_iface, bld_base, in swr_tcs_llvm_fetch_input()
580 struct lp_build_tgsi_context *bld_base = (struct lp_build_tgsi_context*)bld; in swr_tcs_llvm_fetch_output() local
582 return iface->pBuilder->swr_tcs_llvm_fetch_output(tcs_iface, bld_base, in swr_tcs_llvm_fetch_output()
[all …]