/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_tgsi_action.c | 66 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 …]
|
D | lp_bld_nir.c | 45 is_aos(const struct lp_build_nir_context *bld_base) in is_aos() argument 48 return bld_base->base.type.length == 16 && bld_base->base.type.width == 8; in is_aos() 53 visit_cf_list(struct lp_build_nir_context *bld_base, 58 cast_type(struct lp_build_nir_context *bld_base, LLVMValueRef val, in cast_type() argument 61 LLVMBuilderRef builder = bld_base->base.gallivm->builder; in cast_type() 66 return LLVMBuildBitCast(builder, val, bld_base->half_bld.vec_type, ""); in cast_type() 68 return LLVMBuildBitCast(builder, val, bld_base->base.vec_type, ""); in cast_type() 70 return LLVMBuildBitCast(builder, val, bld_base->dbl_bld.vec_type, ""); in cast_type() 79 return LLVMBuildBitCast(builder, val, bld_base->int8_bld.vec_type, ""); in cast_type() 81 return LLVMBuildBitCast(builder, val, bld_base->int16_bld.vec_type, ""); in cast_type() [all …]
|
D | lp_bld_tgsi.c | 49 lp_bld_tgsi_list_init(struct lp_build_tgsi_context *bld_base) in lp_bld_tgsi_list_init() argument 51 bld_base->instructions = (struct tgsi_full_instruction *) in lp_bld_tgsi_list_init() 53 if (!bld_base->instructions) { in lp_bld_tgsi_list_init() 56 bld_base->max_instructions = LP_NUM_INSTRUCTIONS; in lp_bld_tgsi_list_init() 62 lp_bld_tgsi_add_instruction(struct lp_build_tgsi_context *bld_base, in lp_bld_tgsi_add_instruction() argument 65 if (bld_base->num_instructions == bld_base->max_instructions) { in lp_bld_tgsi_add_instruction() 67 REALLOC(bld_base->instructions, bld_base->max_instructions in lp_bld_tgsi_add_instruction() 69 (bld_base->max_instructions + LP_NUM_INSTRUCTIONS) in lp_bld_tgsi_add_instruction() 74 bld_base->instructions = instructions; in lp_bld_tgsi_add_instruction() 75 bld_base->max_instructions += LP_NUM_INSTRUCTIONS; in lp_bld_tgsi_add_instruction() [all …]
|
D | lp_bld_tgsi_aos.c | 67 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 …]
|
D | lp_bld_tgsi_soa.c | 116 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 …]
|
D | lp_bld_nir.h | 78 void (*load_ubo)(struct lp_build_nir_context *bld_base, 84 void (*load_kernel_arg)(struct lp_build_nir_context *bld_base, 91 void (*load_global)(struct lp_build_nir_context *bld_base, 97 void (*store_global)(struct lp_build_nir_context *bld_base, 103 void (*atomic_global)(struct lp_build_nir_context *bld_base, 112 void (*load_mem)(struct lp_build_nir_context *bld_base, 116 void (*store_mem)(struct lp_build_nir_context *bld_base, 121 void (*atomic_mem)(struct lp_build_nir_context *bld_base, 128 void (*barrier)(struct lp_build_nir_context *bld_base); 130 void (*image_op)(struct lp_build_nir_context *bld_base, [all …]
|
D | lp_bld_nir_soa.c | 60 mask_vec(struct lp_build_nir_context *bld_base) in mask_vec() argument 62 struct lp_build_nir_soa_context * bld = (struct lp_build_nir_soa_context *)bld_base; in mask_vec() 63 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in mask_vec() 76 invocation_0_must_be_active(struct lp_build_nir_context *bld_base) in invocation_0_must_be_active() argument 78 struct lp_build_nir_soa_context * bld = (struct lp_build_nir_soa_context *)bld_base; in invocation_0_must_be_active() 84 if (bld_base->shader->info.stage == MESA_SHADER_FRAGMENT) in invocation_0_must_be_active() 111 struct lp_build_nir_context * bld_base, in emit_fetch_64bit() argument 115 struct gallivm_state *gallivm = bld_base->base.gallivm; in emit_fetch_64bit() 120 int len = bld_base->base.type.length * 2; in emit_fetch_64bit() 123 for (i = 0; i < bld_base->base.type.length * 2; i+=2) { in emit_fetch_64bit() [all …]
|
D | lp_bld_nir_aos.c | 37 swizzle_aos(struct lp_build_nir_context *bld_base, in swizzle_aos() argument 45 struct lp_build_nir_aos_context *bld = lp_nir_aos_context(bld_base); in swizzle_aos() 57 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles); in swizzle_aos() 92 init_var_slots(struct lp_build_nir_context *bld_base, in init_var_slots() argument 96 (struct lp_build_nir_aos_context *)bld_base; in init_var_slots() 102 bld->outputs[this_loc] = lp_build_alloca(bld_base->base.gallivm, in init_var_slots() 103 bld_base->base.vec_type, in init_var_slots() 109 emit_var_decl(struct lp_build_nir_context *bld_base, in emit_var_decl() argument 113 init_var_slots(bld_base, var); in emit_var_decl() 119 emit_load_var(struct lp_build_nir_context *bld_base, in emit_load_var() argument [all …]
|
D | lp_bld_tgsi.h | 318 unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base); 322 struct lp_build_tgsi_context * bld_base, 456 void (*emit_barrier)(struct lp_build_context *bld_base); 510 struct lp_build_tgsi_context bld_base; member 593 struct lp_build_tgsi_context *bld_base, 617 struct lp_build_tgsi_context bld_base; member 656 lp_soa_context(struct lp_build_tgsi_context *bld_base) in lp_soa_context() argument 658 return (struct lp_build_tgsi_soa_context *)bld_base; in lp_soa_context() 662 lp_aos_context(struct lp_build_tgsi_context *bld_base) in lp_aos_context() argument 664 return (struct lp_build_tgsi_aos_context *)bld_base; in lp_aos_context() [all …]
|
D | lp_bld_tgsi_action.h | 137 struct lp_build_tgsi_context * bld_base); 146 struct lp_build_tgsi_context * bld_base);
|