/third_party/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 | 298 res = LLVMBuildFMul(builder, src, lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() 300 res = LLVMBuildFAdd(builder, res, lp_build_const_vec(gallivm, src_type, bias), ""); in lp_build_clamped_float_to_unsigned_norm() 319 lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() 348 lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() 424 lp_build_const_vec(gallivm, dst_type, scale), ""); in lp_build_unsigned_norm_to_float() 448 bias_ = lp_build_const_vec(gallivm, dst_type, bias); in lp_build_unsigned_norm_to_float() 457 res = LLVMBuildFMul(builder, res, lp_build_const_vec(gallivm, dst_type, scale), ""); in lp_build_unsigned_norm_to_float() 632 const_scale = lp_build_const_vec(gallivm, src_type, lp_const_scale(dst_type)); in lp_build_conv() 745 const_scale = lp_build_const_vec(gallivm, src_type, lp_const_scale(dst_type)); in lp_build_conv() 833 thres = lp_build_const_vec(gallivm, src_type, dst_min); in lp_build_conv() [all …]
|
D | lp_bld_arit.c | 1173 shift = lp_build_const_vec(gallivm, type_tmp, bld->type.width); in lp_build_mul_32_lohi() 1256 factor = lp_build_const_vec(bld->gallivm, bld->type, shift); in lp_build_mul_imm() 1261 factor = lp_build_const_vec(bld->gallivm, bld->type, (double)b); in lp_build_mul_imm() 1811 LLVMValueRef minus_one = lp_build_const_vec(bld->gallivm, type, -1.0); in lp_build_sgn() 2059 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_trunc() 2118 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_round() 2169 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_floor() 2244 LLVMValueRef cmpval = lp_build_const_vec(bld->gallivm, type, 1<<24); in lp_build_ceil() 2316 max = lp_build_const_vec(bld->gallivm, bld->type, in clamp_fract() 2385 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() 935 LLVMValueRef scale_val = lp_build_const_vec(gallivm, type, scale); in lp_build_insert_soa_chan()
|
D | lp_bld_sample.c | 704 lp_build_const_vec(bld->gallivm, bld->type, pre_offset)); in lp_build_brilinear_lod() 709 lp_build_const_vec(bld->gallivm, bld->type, factor), in lp_build_brilinear_lod() 710 lp_build_const_vec(bld->gallivm, bld->type, post_offset)); in lp_build_brilinear_lod() 757 lp_build_const_vec(bld->gallivm, bld->type, pre_factor)); in lp_build_brilinear_rho() 766 lp_build_const_vec(bld->gallivm, bld->type, factor), in lp_build_brilinear_rho() 767 lp_build_const_vec(bld->gallivm, bld->type, post_offset)); in lp_build_brilinear_rho() 957 lp_build_const_vec(bld->gallivm, lodf_bld->type, 0.5F)); in lp_build_lod_selector() 1727 LLVMValueRef posHalf = lp_build_const_vec(coord_bld->gallivm, coord_bld->type, 0.5); in lp_build_cube_imapos() 1791 LLVMValueRef posHalf = lp_build_const_vec(gallivm, coord_bld->type, 0.5); in lp_build_cube_lookup() 2122 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 | 241 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_mirror() 286 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_repeat_npot_linear() 334 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_sample_wrap_linear() 1140 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5f); in lp_build_sample_image_linear() 1327 LLVMValueRef half = lp_build_const_vec(bld->gallivm, c_bld->type, 0.5f); in lp_build_sample_image_linear() 1418 one_third = lp_build_const_vec(bld->gallivm, coord_bld->type, in lp_build_sample_image_linear() 2195 F = lp_build_div(coord_bld, F, lp_build_const_vec(gallivm, coord_bld->type, 4.0)); in lp_build_sample_aniso() 2213 …LLVMValueRef box_u = lp_build_div(coord_bld, lp_build_const_vec(gallivm, coord_bld->type, 2.0), d); in lp_build_sample_aniso() 2222 …LLVMValueRef box_v = lp_build_div(coord_bld, lp_build_const_vec(gallivm, coord_bld->type, 2.0), d); in lp_build_sample_aniso() 2228 …LLVMValueRef formScale = lp_build_div(coord_bld, lp_build_const_vec(gallivm, coord_bld->type, WEIG… in lp_build_sample_aniso() [all …]
|
D | lp_bld_sample_aos.c | 503 x_stride = lp_build_const_vec(bld->gallivm, in lp_build_sample_image_nearest() 850 x_stride = lp_build_const_vec(bld->gallivm, bld->int_coord_bld.type, in lp_build_sample_image_linear() 997 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 | 311 … 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()
|
/third_party/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 | 295 LLVMValueRef pix_center_offset = lp_build_const_vec(gallivm, coeff_bld->type, 0.5); in attribs_update_simple() 337 a = lp_build_const_vec(gallivm, coeff_bld->type, bld->pos_offset); in attribs_update_simple() 348 a = lp_build_const_vec(gallivm, coeff_bld->type, bld->pos_offset); in attribs_update_simple() 542 LLVMValueRef pix_center_offset = lp_build_const_vec(gallivm, coeff_bld->type, 0.5); in lp_build_interp_soa()
|
D | lp_state_setup.c | 568 pixel_center = lp_build_const_vec(gallivm, typef4, in init_args()
|
D | lp_state_fs.c | 410 LLVMValueRef alpha_ref_value = lp_build_const_vec(gallivm, type, step * s); in lp_build_sample_alpha_to_coverage() 1036 LLVMBuildStore(builder, lp_build_const_vec(gallivm, type, 1.0), outputs[cbuf][3]); in generate_fs_loop() 1189 lp_build_const_vec(gallivm, type, 0.0), in generate_fs_loop() 1190 lp_build_const_vec(gallivm, type, 1.0)); in generate_fs_loop()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 1459 LLVMValueRef const1 = lp_build_const_vec(gallivm, f32_type, 1.0); /*1.0 1.0 1.0 1.0*/ in generate_viewport() 1544 zero = lp_build_const_vec(gallivm, f32_type, 0); /* 0.0f 0.0f 0.0f 0.0f */ in generate_clipmask() 1697 LLVMValueRef one = lp_build_const_vec(gallivm, f32_type, 1.0); in generate_clipmask() 2739 LLVMValueRef mask_val = lp_build_const_vec(gallivm, mask_type, 0); in generate_mask_value() 3330 LLVMValueRef mask_val = lp_build_const_vec(gallivm, mask_type, 0); in generate_tcs_mask_value() 3782 LLVMValueRef mask_val = lp_build_const_vec(gallivm, mask_type, 0); in generate_tes_mask_value()
|