/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_blend_soa.c | 119 lp_build_blend_soa_factor(struct lp_build_blend_soa_context *bld, in lp_build_blend_soa_factor() argument 127 return bld->base.one; in lp_build_blend_soa_factor() 129 return bld->src[i]; in lp_build_blend_soa_factor() 131 return bld->src[3]; in lp_build_blend_soa_factor() 133 return bld->dst[i]; in lp_build_blend_soa_factor() 135 return bld->dst[3]; in lp_build_blend_soa_factor() 138 return bld->base.one; in lp_build_blend_soa_factor() 140 if(!bld->inv_dst[3]) in lp_build_blend_soa_factor() 141 bld->inv_dst[3] = lp_build_comp(&bld->base, bld->dst[3]); in lp_build_blend_soa_factor() 142 if(!bld->src_alpha_saturate) in lp_build_blend_soa_factor() [all …]
|
D | lp_bld_blend_aos.c | 87 lp_build_blend_factor_unswizzled(struct lp_build_blend_aos_context *bld, in lp_build_blend_factor_unswizzled() argument 93 return bld->base.zero; in lp_build_blend_factor_unswizzled() 95 return bld->base.one; in lp_build_blend_factor_unswizzled() 98 return bld->src; in lp_build_blend_factor_unswizzled() 101 return bld->dst; in lp_build_blend_factor_unswizzled() 104 return bld->base.one; in lp_build_blend_factor_unswizzled() 106 if(!bld->inv_dst) in lp_build_blend_factor_unswizzled() 107 bld->inv_dst = lp_build_comp(&bld->base, bld->dst); in lp_build_blend_factor_unswizzled() 108 if(!bld->saturate) in lp_build_blend_factor_unswizzled() 109 bld->saturate = lp_build_min(&bld->base, bld->src, bld->inv_dst); in lp_build_blend_factor_unswizzled() [all …]
|
D | lp_bld_interp.c | 160 coeffs_init_simple(struct lp_build_interp_soa_context *bld, in coeffs_init_simple() argument 165 struct lp_build_context *coeff_bld = &bld->coeff_bld; in coeffs_init_simple() 166 struct lp_build_context *setup_bld = &bld->setup_bld; in coeffs_init_simple() 171 for (attrib = 0; attrib < bld->num_attribs; ++attrib) { in coeffs_init_simple() 183 const unsigned interp = bld->interp[attrib]; in coeffs_init_simple() 227 bld->a0aos[attrib] = a0aos; in coeffs_init_simple() 228 bld->dadxaos[attrib] = dadxaos; in coeffs_init_simple() 229 bld->dadyaos[attrib] = dadyaos; in coeffs_init_simple() 238 attribs_update_simple(struct lp_build_interp_soa_context *bld, in attribs_update_simple() argument 246 struct lp_build_context *coeff_bld = &bld->coeff_bld; in attribs_update_simple() [all …]
|
D | lp_bld_blend.c | 87 lp_build_blend_func(struct lp_build_context *bld, in lp_build_blend_func() argument 94 return lp_build_add(bld, term1, term2); in lp_build_blend_func() 96 return lp_build_sub(bld, term1, term2); in lp_build_blend_func() 98 return lp_build_sub(bld, term2, term1); in lp_build_blend_func() 100 return lp_build_min(bld, term1, term2); in lp_build_blend_func() 102 return lp_build_max(bld, term1, term2); in lp_build_blend_func() 105 return bld->zero; in lp_build_blend_func() 131 lp_build_blend(struct lp_build_context *bld, in lp_build_blend() argument 149 return lp_build_lerp(bld, src_factor, dst, src); in lp_build_blend() 151 return lp_build_lerp(bld, dst_factor, src, dst); in lp_build_blend() [all …]
|
D | lp_bld_alpha.c | 58 struct lp_build_context bld; in lp_build_alpha_test() local 61 lp_build_context_init(&bld, gallivm, type); in lp_build_alpha_test() 77 alpha = lp_build_clamp(&bld, alpha, bld.zero, bld.one); in lp_build_alpha_test() 78 ref = lp_build_clamp(&bld, ref, bld.zero, bld.one); in lp_build_alpha_test() 84 lp_build_context_init(&bld, gallivm, type); in lp_build_alpha_test() 87 test = lp_build_cmp(&bld, func, alpha, ref); in lp_build_alpha_test()
|
D | lp_bld_depth.c | 96 lp_build_stencil_test_single(struct lp_build_context *bld, in lp_build_stencil_test_single() argument 101 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_stencil_test_single() 103 struct lp_type type = bld->type; in lp_build_stencil_test_single() 121 LLVMValueRef valuemask = lp_build_const_int_vec(bld->gallivm, type, stencil->valuemask); in lp_build_stencil_test_single() 127 res = lp_build_cmp(bld, stencil->func, stencilRef, stencilVals); in lp_build_stencil_test_single() 140 lp_build_stencil_test(struct lp_build_context *bld, in lp_build_stencil_test() argument 151 res = lp_build_stencil_test_single(bld, &stencil[0], in lp_build_stencil_test() 158 back_res = lp_build_stencil_test_single(bld, &stencil[1], in lp_build_stencil_test() 161 res = lp_build_select(bld, front_facing, res, back_res); in lp_build_stencil_test() 174 lp_build_stencil_op_single(struct lp_build_context *bld, in lp_build_stencil_op_single() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_tgsi_aos.c | 75 struct lp_build_tgsi_aos_context *bld = lp_aos_context(bld_base); in swizzle_aos() local 82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x]; in swizzle_aos() 83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y]; in swizzle_aos() 84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z]; in swizzle_aos() 85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_w]; in swizzle_aos() 87 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles); in swizzle_aos() 92 swizzle_scalar_aos(struct lp_build_tgsi_aos_context *bld, in swizzle_scalar_aos() argument 96 chan = bld->swizzles[chan]; in swizzle_scalar_aos() 97 return lp_build_swizzle_scalar_aos(&bld->bld_base.base, a, chan); in swizzle_scalar_aos() 108 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); in emit_fetch_constant() local [all …]
|
D | lp_bld_arit.c | 74 lp_build_min_simple(struct lp_build_context *bld, in lp_build_min_simple() argument 78 const struct lp_type type = bld->type; in lp_build_min_simple() 149 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple() 154 cond = lp_build_cmp(bld, PIPE_FUNC_LESS, a, b); in lp_build_min_simple() 155 return lp_build_select(bld, cond, a, b); in lp_build_min_simple() 164 lp_build_max_simple(struct lp_build_context *bld, in lp_build_max_simple() argument 168 const struct lp_type type = bld->type; in lp_build_max_simple() 240 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_max_simple() 245 cond = lp_build_cmp(bld, PIPE_FUNC_GREATER, a, b); in lp_build_max_simple() 246 return lp_build_select(bld, cond, a, b); in lp_build_max_simple() [all …]
|
D | lp_bld_arit.h | 51 lp_build_comp(struct lp_build_context *bld, 55 lp_build_add(struct lp_build_context *bld, 60 lp_build_horizontal_add(struct lp_build_context *bld, 64 lp_build_hadd_partial4(struct lp_build_context *bld, 69 lp_build_sub(struct lp_build_context *bld, 74 lp_build_mul(struct lp_build_context *bld, 79 lp_build_mul_imm(struct lp_build_context *bld, 84 lp_build_div(struct lp_build_context *bld, 89 lp_build_lerp(struct lp_build_context *bld, 100 lp_build_lerp_2d(struct lp_build_context *bld, [all …]
|
D | lp_bld_sample_aos.c | 76 lp_build_sample_wrap_nearest_int(struct lp_build_sample_context *bld, in lp_build_sample_wrap_nearest_int() argument 87 struct lp_build_context *int_coord_bld = &bld->int_coord_bld; in lp_build_sample_wrap_nearest_int() 88 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_sample_wrap_nearest_int() 98 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_sample_wrap_nearest_int() 136 lp_build_sample_wrap_nearest_float(struct lp_build_sample_context *bld, in lp_build_sample_wrap_nearest_float() argument 143 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_sample_wrap_nearest_float() 155 if (bld->static_state->normalized_coords) { in lp_build_sample_wrap_nearest_float() 192 lp_build_sample_wrap_linear_int(struct lp_build_sample_context *bld, in lp_build_sample_wrap_linear_int() argument 206 struct lp_build_context *int_coord_bld = &bld->int_coord_bld; in lp_build_sample_wrap_linear_int() 207 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_sample_wrap_linear_int() [all …]
|
D | lp_bld_sample_soa.c | 74 lp_build_sample_texel_soa(struct lp_build_sample_context *bld, in lp_build_sample_texel_soa() argument 87 const struct lp_sampler_static_state *static_state = bld->static_state; in lp_build_sample_texel_soa() 88 const unsigned dims = bld->dims; in lp_build_sample_texel_soa() 89 struct lp_build_context *int_coord_bld = &bld->int_coord_bld; in lp_build_sample_texel_soa() 90 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_sample_texel_soa() 138 lp_build_sample_offset(&bld->int_coord_bld, in lp_build_sample_texel_soa() 139 bld->format_desc, in lp_build_sample_texel_soa() 152 offset = lp_build_andnot(&bld->int_coord_bld, offset, use_border); in lp_build_sample_texel_soa() 155 lp_build_fetch_rgba_soa(bld->gallivm, in lp_build_sample_texel_soa() 156 bld->format_desc, in lp_build_sample_texel_soa() [all …]
|
D | lp_bld_tgsi_soa.c | 68 static void lp_exec_mask_init(struct lp_exec_mask *mask, struct lp_build_context *bld) in lp_exec_mask_init() argument 70 LLVMTypeRef int_type = LLVMInt32TypeInContext(bld->gallivm->context); in lp_exec_mask_init() 71 LLVMBuilderRef builder = bld->gallivm->builder; in lp_exec_mask_init() 73 mask->bld = bld; in lp_exec_mask_init() 79 mask->int_vec_type = lp_build_int_vec_type(bld->gallivm, mask->bld->type); in lp_exec_mask_init() 83 mask->loop_limiter = lp_build_alloca(bld->gallivm, int_type, "looplimiter"); in lp_exec_mask_init() 93 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_mask_update() 125 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_mask_cond_push() 142 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_mask_cond_invert() 169 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_bgnloop() [all …]
|
D | lp_bld_sample.c | 184 lp_build_rho(struct lp_build_sample_context *bld, in lp_build_rho() argument 188 struct gallivm_state *gallivm = bld->gallivm; in lp_build_rho() 189 struct lp_build_context *int_size_bld = &bld->int_size_bld; in lp_build_rho() 190 struct lp_build_context *float_size_bld = &bld->float_size_bld; in lp_build_rho() 191 struct lp_build_context *float_bld = &bld->float_bld; in lp_build_rho() 192 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_rho() 193 struct lp_build_context *perquadf_bld = &bld->perquadf_bld; in lp_build_rho() 195 const unsigned dims = bld->dims; in lp_build_rho() 196 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_rho() 197 LLVMTypeRef i32t = LLVMInt32TypeInContext(bld->gallivm->context); in lp_build_rho() [all …]
|
D | lp_bld_bitarit.c | 41 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b) in lp_build_or() argument 43 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_or() 44 const struct lp_type type = bld->type; in lp_build_or() 52 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_or() 53 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, ""); in lp_build_or() 59 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_or() 67 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b) in lp_build_xor() argument 69 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_xor() 70 const struct lp_type type = bld->type; in lp_build_xor() 78 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_xor() [all …]
|
D | lp_bld_swizzle.c | 89 lp_build_broadcast_scalar(struct lp_build_context *bld, in lp_build_broadcast_scalar() argument 92 assert(lp_check_elem_type(bld->type, LLVMTypeOf(scalar))); in lp_build_broadcast_scalar() 94 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar); in lp_build_broadcast_scalar() 165 lp_build_swizzle_scalar_aos(struct lp_build_context *bld, in lp_build_swizzle_scalar_aos() argument 169 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_swizzle_scalar_aos() 170 const struct lp_type type = bld->type; in lp_build_swizzle_scalar_aos() 174 if(a == bld->undef || a == bld->zero || a == bld->one) in lp_build_swizzle_scalar_aos() 184 LLVMTypeRef elem_type = LLVMInt32TypeInContext(bld->gallivm->context); in lp_build_swizzle_scalar_aos() 191 return LLVMBuildShuffleVector(builder, a, bld->undef, LLVMConstVector(shuffles, n), ""); in lp_build_swizzle_scalar_aos() 212 lp_build_const_mask_aos(bld->gallivm, in lp_build_swizzle_scalar_aos() [all …]
|
D | lp_bld_quad.c | 62 lp_build_ddx(struct lp_build_context *bld, in lp_build_ddx() argument 65 LLVMValueRef a_left = lp_build_swizzle_aos(bld, a, swizzle_left); in lp_build_ddx() 66 LLVMValueRef a_right = lp_build_swizzle_aos(bld, a, swizzle_right); in lp_build_ddx() 67 return lp_build_sub(bld, a_right, a_left); in lp_build_ddx() 72 lp_build_ddy(struct lp_build_context *bld, in lp_build_ddy() argument 75 LLVMValueRef a_top = lp_build_swizzle_aos(bld, a, swizzle_top); in lp_build_ddy() 76 LLVMValueRef a_bottom = lp_build_swizzle_aos(bld, a, swizzle_bottom); in lp_build_ddy() 77 return lp_build_sub(bld, a_bottom, a_top); in lp_build_ddy() 91 lp_build_packed_ddx_ddy_onecoord(struct lp_build_context *bld, in lp_build_packed_ddx_ddy_onecoord() argument 94 struct gallivm_state *gallivm = bld->gallivm; in lp_build_packed_ddx_ddy_onecoord() [all …]
|
D | lp_bld_logic.c | 379 lp_build_cmp(struct lp_build_context *bld, in lp_build_cmp() argument 384 return lp_build_compare(bld->gallivm, bld->type, func, a, b); in lp_build_cmp() 392 lp_build_select_bitwise(struct lp_build_context *bld, in lp_build_select_bitwise() argument 397 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_select_bitwise() 398 struct lp_type type = bld->type; in lp_build_select_bitwise() 409 LLVMTypeRef int_vec_type = lp_build_int_vec_type(bld->gallivm, type); in lp_build_select_bitwise() 426 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); in lp_build_select_bitwise() 441 lp_build_select(struct lp_build_context *bld, in lp_build_select() argument 446 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_select() 447 LLVMContextRef lc = bld->gallivm->context; in lp_build_select() [all …]
|
D | lp_bld_type.c | 374 lp_build_context_init(struct lp_build_context *bld, in lp_build_context_init() argument 378 bld->gallivm = gallivm; in lp_build_context_init() 379 bld->type = type; in lp_build_context_init() 381 bld->int_elem_type = lp_build_int_elem_type(gallivm, type); in lp_build_context_init() 383 bld->elem_type = lp_build_elem_type(gallivm, type); in lp_build_context_init() 385 bld->elem_type = bld->int_elem_type; in lp_build_context_init() 388 bld->int_vec_type = bld->int_elem_type; in lp_build_context_init() 389 bld->vec_type = bld->elem_type; in lp_build_context_init() 392 bld->int_vec_type = LLVMVectorType(bld->int_elem_type, type.length); in lp_build_context_init() 393 bld->vec_type = LLVMVectorType(bld->elem_type, type.length); in lp_build_context_init() [all …]
|
D | lp_bld_bitarit.h | 48 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); 51 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); 54 lp_build_and(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); 57 lp_build_andnot(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); 60 lp_build_shl(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); 63 lp_build_shr(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); 66 lp_build_shl_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm); 69 lp_build_shr_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm); 72 lp_build_not(struct lp_build_context *bld, LLVMValueRef a);
|
D | lp_bld_sample.h | 275 apply_sampler_swizzle(struct lp_build_sample_context *bld, in apply_sampler_swizzle() argument 280 swizzles[0] = bld->static_state->swizzle_r; in apply_sampler_swizzle() 281 swizzles[1] = bld->static_state->swizzle_g; in apply_sampler_swizzle() 282 swizzles[2] = bld->static_state->swizzle_b; in apply_sampler_swizzle() 283 swizzles[3] = bld->static_state->swizzle_a; in apply_sampler_swizzle() 285 lp_build_swizzle_soa_inplace(&bld->texel_bld, texel, swizzles); in apply_sampler_swizzle() 323 lp_build_lod_selector(struct lp_build_sample_context *bld, 333 lp_build_nearest_mip_level(struct lp_build_sample_context *bld, 339 lp_build_linear_mip_levels(struct lp_build_sample_context *bld, 347 lp_build_get_mipmap_level(struct lp_build_sample_context *bld, [all …]
|
D | lp_bld_swizzle.h | 57 lp_build_broadcast_scalar(struct lp_build_context *bld, 74 lp_build_swizzle_scalar_aos(struct lp_build_context *bld, 85 lp_build_swizzle_aos(struct lp_build_context *bld, 91 lp_build_swizzle_soa_channel(struct lp_build_context *bld, 97 lp_build_swizzle_soa(struct lp_build_context *bld, 104 lp_build_swizzle_soa_inplace(struct lp_build_context *bld,
|
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
D | nv50_ir_lowering_nv50.cpp | 41 expandIntegerMUL(BuildUtil *bld, Instruction *mul) in expandIntegerMUL() argument 60 bld->setPosition(mul, true); in expandIntegerMUL() 66 t[j] = bld->getSSA(fullSize); in expandIntegerMUL() 69 i[0] = bld->mkSplit(a, halfSize, mul->getSrc(0)); in expandIntegerMUL() 70 i[1] = bld->mkSplit(b, halfSize, mul->getSrc(1)); in expandIntegerMUL() 72 i[2] = bld->mkOp2(OP_MUL, fTy, t[0], a[0], b[1]); in expandIntegerMUL() 73 i[3] = bld->mkOp3(OP_MAD, fTy, t[1], a[1], b[0], t[0]); in expandIntegerMUL() 74 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL() 75 i[4] = bld->mkOp3(OP_MAD, fTy, t[3], a[0], b[0], t[2]); in expandIntegerMUL() 79 Value *imm = bld->loadImm(NULL, 1 << (halfSize * 8)); in expandIntegerMUL() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleBuilderTest.java | 113 Builder bld = bld_st; in TestLocaleBuilder() local 115 bld.clear(); in TestLocaleBuilder() 122 bld.setLanguage(TESTCASE[tidx][i++]); in TestLocaleBuilder() 124 bld.setScript(TESTCASE[tidx][i++]); in TestLocaleBuilder() 126 bld.setRegion(TESTCASE[tidx][i++]); in TestLocaleBuilder() 128 bld.setVariant(TESTCASE[tidx][i++]); in TestLocaleBuilder() 132 bld.setUnicodeLocaleKeyword(key, type); in TestLocaleBuilder() 134 bld.addUnicodeLocaleAttribute(TESTCASE[tidx][i++]); in TestLocaleBuilder() 138 bld.setExtension(key.charAt(0), value); in TestLocaleBuilder() 140 bld.setExtension(ULocale.PRIVATE_USE_EXTENSION, TESTCASE[tidx][i++]); in TestLocaleBuilder() [all …]
|
/external/mesa3d/src/gallium/drivers/nvc0/codegen/ |
D | nv50_ir_lowering_nvc0.cpp | 53 BuildUtil bld; member in nv50_ir::NVC0LegalizeSSA 63 bld.setPosition(i, false); in handleDIV() 64 def[0] = bld.mkMovToReg(0, i->getSrc(0))->getDef(0); in handleDIV() 65 def[1] = bld.mkMovToReg(1, i->getSrc(1))->getDef(0); in handleDIV() 72 call = bld.mkFlow(OP_CALL, NULL, CC_ALWAYS, NULL); in handleDIV() 73 bld.mkMov(i->getDef(0), def[(i->op == OP_DIV) ? 0 : 1]); in handleDIV() 74 bld.mkClobber(FILE_GPR, (i->op == OP_DIV) ? 0xe : 0xd, 2); in handleDIV() 75 bld.mkClobber(FILE_PREDICATE, (i->dType == TYPE_S32) ? 0xf : 0x3, 0); in handleDIV() 92 bld.setProgram(fn->getProgram()); in visit() 609 BuildUtil bld; member in nv50_ir::NVC0LoweringPass [all …]
|
/external/dnsmasq/ |
D | Makefile | 33 DNSMASQ_CFLAGS=`echo $(COPTS) | ../bld/pkg-wrapper HAVE_DBUS $(PKG_CONFIG) --cflags dbus-1` 34 DNSMASQ_LIBS= `echo $(COPTS) | ../bld/pkg-wrapper HAVE_DBUS $(PKG_CONFIG) --libs dbus-1` 43 -f ../bld/Makefile dnsmasq 61 -f ../bld/Makefile dnsmasq 65 -f ../bld/Makefile $${f%.po}.mo; \ 69 cd $(SRC); ../bld/install-mo $(DESTDIR)$(LOCALEDIR) $(INSTALL) 70 cd $(MAN); ../bld/install-man $(DESTDIR)$(MANDIR) $(INSTALL) 73 @cd $(SRC) && $(MAKE) XGETTEXT=$(XGETTEXT) -f ../bld/Makefile dnsmasq.pot
|