/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_srgb.c | 133 LLVMValueRef rescale_const = lp_build_const_vec(gallivm, f32_type, in lp_build_srgb_to_linear() 137 lin_const = lp_build_const_vec(gallivm, f32_type, 1.0f / (12.6f * 255.0f)); in lp_build_srgb_to_linear() 142 lin_thresh = lp_build_const_vec(gallivm, f32_type, 15.0f); in lp_build_srgb_to_linear() 193 exponent = lp_build_const_vec(gallivm, src_type, exp_f); in lp_build_linear_to_srgb() 194 coeff = lp_build_const_vec(gallivm, src_type, in lp_build_linear_to_srgb() 228 coeff = lp_build_const_vec(gallivm, src_type, in lp_build_linear_to_srgb() 242 lp_build_const_vec(gallivm, src_type, -0.055f * 255.0f)); in lp_build_linear_to_srgb() 288 a_const = lp_build_const_vec(gallivm, src_type, 0.675f * 1.0622 * 255.0f); in lp_build_linear_to_srgb() 289 b_const = lp_build_const_vec(gallivm, src_type, 0.325f * 1.0622 * 255.0f); in lp_build_linear_to_srgb() 290 c_const = lp_build_const_vec(gallivm, src_type, -0.0620f * 255.0f); in lp_build_linear_to_srgb() [all …]
|
D | lp_bld_conv.c | 287 res = LLVMBuildFMul(builder, src, lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() 289 res = LLVMBuildFAdd(builder, res, lp_build_const_vec(gallivm, src_type, bias), ""); in lp_build_clamped_float_to_unsigned_norm() 308 lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() 337 lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() 413 lp_build_const_vec(gallivm, dst_type, scale), ""); in lp_build_unsigned_norm_to_float() 437 bias_ = lp_build_const_vec(gallivm, dst_type, bias); in lp_build_unsigned_norm_to_float() 446 res = LLVMBuildFMul(builder, res, lp_build_const_vec(gallivm, dst_type, scale), ""); in lp_build_unsigned_norm_to_float() 621 const_scale = lp_build_const_vec(gallivm, src_type, lp_const_scale(dst_type)); in lp_build_conv() 734 const_scale = lp_build_const_vec(gallivm, src_type, lp_const_scale(dst_type)); in lp_build_conv() 822 thres = lp_build_const_vec(gallivm, src_type, dst_min); in lp_build_conv() [all …]
|
D | lp_bld_arit.c | 1205 shift = lp_build_const_vec(gallivm, type_tmp, bld->type.width); in lp_build_mul_32_lohi() 1288 factor = lp_build_const_vec(bld->gallivm, bld->type, shift); in lp_build_mul_imm() 1293 factor = lp_build_const_vec(bld->gallivm, bld->type, (double)b); in lp_build_mul_imm() 1831 LLVMValueRef minus_one = lp_build_const_vec(bld->gallivm, type, -1.0); in lp_build_sgn() 2071 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_trunc() 2124 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_round() 2175 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_floor() 2250 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_ceil() 2322 max = lp_build_const_vec(bld->gallivm, bld->type, in clamp_fract() 2391 half = lp_build_const_vec(bld->gallivm, type, nextafterf(0.5, 0.0)); in lp_build_iround() [all …]
|
D | lp_bld_tgsi_action.c | 936 one = lp_build_const_vec(bld_base->dbl_bld.gallivm, bld_base->dbl_bld.type, 1.0f); in drcp_emit() 1579 LLVMValueRef mask = lp_build_const_vec(int_bld->gallivm, int_bld->type, in ishr_emit_cpu() 1855 LLVMValueRef mask = lp_build_const_vec(uint_bld->gallivm, uint_bld->type, in shl_emit_cpu() 2054 LLVMValueRef mask = lp_build_const_vec(uint_bld->gallivm, uint_bld->type, in ushr_emit_cpu() 2367 LLVMValueRef mask = lp_build_const_vec(uint_bld->gallivm, uint_bld->type, in u64shl_emit_cpu() 2381 LLVMValueRef mask = lp_build_const_vec(int_bld->gallivm, int_bld->type, in i64shr_emit_cpu() 2395 LLVMValueRef mask = lp_build_const_vec(uint_bld->gallivm, uint_bld->type, in u64shr_emit_cpu() 2437 lp_build_const_vec(uint_bld->gallivm, uint_bld->type, 32)); in lsb_emit_cpu() 2440 lp_build_const_vec(uint_bld->gallivm, uint_bld->type, -1)); in lsb_emit_cpu() 2448 uint_bld, lp_build_const_vec(uint_bld->gallivm, uint_bld->type, 31), in umsb_emit_cpu() [all …]
|
D | lp_bld_const.h | 93 lp_build_const_vec(struct gallivm_state *gallivm, struct lp_type type,
|
D | lp_bld_format_soa.c | 209 LLVMValueRef scale_val = lp_build_const_vec(gallivm, type, scale); in lp_build_extract_soa_chan() 217 lp_build_const_vec(gallivm, type, -1.0f)); in lp_build_extract_soa_chan() 258 LLVMValueRef scale_val = lp_build_const_vec(gallivm, type, scale); in lp_build_extract_soa_chan() 737 rgba_out[3] = lp_build_const_vec(gallivm, type, 1.0f); in lp_build_fetch_rgba_soa() 927 LLVMValueRef scale_val = lp_build_const_vec(gallivm, type, scale); in lp_build_insert_soa_chan()
|
D | lp_bld_sample.c | 614 lp_build_const_vec(bld->gallivm, bld->type, pre_offset)); in lp_build_brilinear_lod() 619 lp_build_const_vec(bld->gallivm, bld->type, factor), in lp_build_brilinear_lod() 620 lp_build_const_vec(bld->gallivm, bld->type, post_offset)); in lp_build_brilinear_lod() 667 lp_build_const_vec(bld->gallivm, bld->type, pre_factor)); in lp_build_brilinear_rho() 676 lp_build_const_vec(bld->gallivm, bld->type, factor), in lp_build_brilinear_rho() 677 lp_build_const_vec(bld->gallivm, bld->type, post_offset)); in lp_build_brilinear_rho() 859 lp_build_const_vec(bld->gallivm, lodf_bld->type, 0.5F)); in lp_build_lod_selector() 1627 LLVMValueRef posHalf = lp_build_const_vec(coord_bld->gallivm, coord_bld->type, 0.5); in lp_build_cube_imapos() 1691 LLVMValueRef posHalf = lp_build_const_vec(gallivm, coord_bld->type, 0.5); in lp_build_cube_lookup() 2085 x_stride = lp_build_const_vec(bld->gallivm, bld->type, in lp_build_sample_offset()
|
D | lp_bld_format_float.c | 87 LLVMValueRef zero = lp_build_const_vec(gallivm, f32_type, 0.0f); in lp_build_float_to_smallfloat() 169 i32_qnanbit = lp_build_const_vec(gallivm, i32_type, 1 << 22); in lp_build_float_to_smallfloat()
|
D | lp_bld_sample_soa.c | 240 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_mirror() 285 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_repeat_npot_linear() 333 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_sample_wrap_linear() 1139 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5f); in lp_build_sample_image_linear() 1326 LLVMValueRef half = lp_build_const_vec(bld->gallivm, c_bld->type, 0.5f); in lp_build_sample_image_linear() 1415 one_third = lp_build_const_vec(bld->gallivm, coord_bld->type, in lp_build_sample_image_linear() 2287 min_clamp = lp_build_const_vec(gallivm, vec4_type, -1.0F); in lp_build_clamp_border_color() 2385 min_clamp = lp_build_const_vec(gallivm, vec4_type, -1.0F); in lp_build_clamp_border_color() 2414 min_clamp = lp_build_const_vec(gallivm, vec4_type, -1.0F); in lp_build_clamp_border_color() 2432 max_clamp = lp_build_const_vec(gallivm, vec4_type, MAX_RGB9E5); in lp_build_clamp_border_color() [all …]
|
D | lp_bld_sample_aos.c | 503 x_stride = lp_build_const_vec(bld->gallivm, in lp_build_sample_image_nearest() 859 x_stride = lp_build_const_vec(bld->gallivm, bld->int_coord_bld.type, in lp_build_sample_image_linear() 1006 LLVMValueRef h16vec_scale = lp_build_const_vec(bld->gallivm, in lp_build_sample_mipmap()
|
D | lp_bld_const.c | 325 lp_build_const_vec(struct gallivm_state *gallivm, struct lp_type type, in lp_build_const_vec() function
|
D | lp_bld_tgsi_soa.c | 2368 lod = lp_build_const_vec(gallivm, bld->bld_base.base.type, 0.0F); in emit_sample() 2996 lp_build_const_vec(gallivm, bld_base->base.type, imm->u[i].Float); in lp_emit_immediate_soa() 3004 LLVMValueRef tmp = lp_build_const_vec(gallivm, bld_base->uint_bld.type, imm->u[i].Uint); in lp_emit_immediate_soa() 3011 LLVMValueRef tmp = lp_build_const_vec(gallivm, bld_base->int_bld.type, imm->u[i].Int); in lp_emit_immediate_soa()
|
D | lp_bld_nir.c | 308 … LLVMBuildBitCast(builder, lp_build_const_vec(bld_base->base.gallivm, bld_base->base.type, in emit_b2f()
|
D | lp_bld_format_s3tc.c | 490 ext_one = lp_build_const_vec(gallivm, type_ext, 1); in lp_build_pavgb()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_blend.c | 290 lp_build_const_vec(bld->gallivm, bld->type, -1.0)); in lp_build_blend() 294 lp_build_const_vec(bld->gallivm, bld->type, -1.0)); in lp_build_blend() 331 alpha_ref_value = lp_build_const_vec(gallivm, type, 0.5); in lp_build_alpha_to_coverage()
|
D | lp_bld_interp.c | 294 LLVMValueRef pix_center_offset = lp_build_const_vec(gallivm, coeff_bld->type, 0.5); in attribs_update_simple() 336 a = lp_build_const_vec(gallivm, coeff_bld->type, bld->pos_offset); in attribs_update_simple() 347 a = lp_build_const_vec(gallivm, coeff_bld->type, bld->pos_offset); in attribs_update_simple() 537 LLVMValueRef pix_center_offset = lp_build_const_vec(gallivm, coeff_bld->type, 0.5); in lp_build_interp_soa()
|
D | lp_state_setup.c | 510 pos_half = lp_build_const_vec(gallivm, type, +0.5f); in emit_apply_cyl_wrap() 511 neg_half = lp_build_const_vec(gallivm, type, -0.5f); in emit_apply_cyl_wrap() 514 one = lp_build_const_vec(gallivm, type, 1.0f); in emit_apply_cyl_wrap() 654 pixel_center = lp_build_const_vec(gallivm, typef4, in init_args()
|
D | lp_state_fs.c | 409 LLVMValueRef alpha_ref_value = lp_build_const_vec(gallivm, type, step * s); in lp_build_sample_alpha_to_coverage() 1018 LLVMBuildStore(builder, lp_build_const_vec(gallivm, type, 1.0), outputs[cbuf][3]); in generate_fs_loop()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 1436 LLVMValueRef const1 = lp_build_const_vec(gallivm, f32_type, 1.0); /*1.0 1.0 1.0 1.0*/ in generate_viewport() 1521 zero = lp_build_const_vec(gallivm, f32_type, 0); /* 0.0f 0.0f 0.0f 0.0f */ in generate_clipmask() 1674 LLVMValueRef one = lp_build_const_vec(gallivm, f32_type, 1.0); in generate_clipmask() 2701 LLVMValueRef mask_val = lp_build_const_vec(gallivm, mask_type, 0); in generate_mask_value() 3284 LLVMValueRef mask_val = lp_build_const_vec(gallivm, mask_type, 0); in generate_tcs_mask_value() 3728 LLVMValueRef mask_val = lp_build_const_vec(gallivm, mask_type, 0); in generate_tes_mask_value()
|