Home
last modified time | relevance | path

Searched refs:coord_bld (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample.c221 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_rho() local
234 unsigned length = coord_bld->type.length; in lp_build_rho()
264 rho = lp_build_pack_aos_scalars(bld->gallivm, coord_bld->type, in lp_build_rho()
268 rho = lp_build_swizzle_scalar_aos(coord_bld, cube_rho, 0, 4); in lp_build_rho()
284 coord_bld->type, float_size, indexi); in lp_build_rho()
291 ddx[i] = lp_build_mul(coord_bld, floatdim, derivs->ddx[i]); in lp_build_rho()
292 ddy[i] = lp_build_mul(coord_bld, floatdim, derivs->ddy[i]); in lp_build_rho()
293 ddx[i] = lp_build_mul(coord_bld, ddx[i], ddx[i]); in lp_build_rho()
294 ddy[i] = lp_build_mul(coord_bld, ddy[i], ddy[i]); in lp_build_rho()
298 tmpx = lp_build_abs(coord_bld, derivs->ddx[i]); in lp_build_rho()
[all …]
Dlp_bld_sample_aos.c101 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_sample_wrap_nearest_int() local
102 LLVMValueRef length_f = lp_build_int_to_float(coord_bld, length); in lp_build_sample_wrap_nearest_int()
104 offset = lp_build_int_to_float(coord_bld, offset); in lp_build_sample_wrap_nearest_int()
105 offset = lp_build_div(coord_bld, offset, length_f); in lp_build_sample_wrap_nearest_int()
106 coord_f = lp_build_add(coord_bld, coord_f, offset); in lp_build_sample_wrap_nearest_int()
108 coord = lp_build_fract_safe(coord_bld, coord_f); in lp_build_sample_wrap_nearest_int()
109 coord = lp_build_mul(coord_bld, coord, length_f); in lp_build_sample_wrap_nearest_int()
110 coord = lp_build_itrunc(coord_bld, coord); in lp_build_sample_wrap_nearest_int()
153 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_sample_wrap_nearest_float() local
160 offset = lp_build_int_to_float(coord_bld, offset); in lp_build_sample_wrap_nearest_float()
[all …]
Dlp_bld_sample_soa.c229 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_coord_mirror() local
231 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_mirror()
239 coord = lp_build_mul(coord_bld, coord, half); in lp_build_coord_mirror()
240 fract = lp_build_round(coord_bld, coord); in lp_build_coord_mirror()
241 fract = lp_build_sub(coord_bld, coord, fract); in lp_build_coord_mirror()
242 coord = lp_build_add(coord_bld, fract, fract); in lp_build_coord_mirror()
251 coord = lp_build_abs(coord_bld, coord); in lp_build_coord_mirror()
254 coord = lp_build_max_ext(coord_bld, coord, coord_bld->zero, in lp_build_coord_mirror()
274 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_coord_repeat_npot_linear() local
276 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_repeat_npot_linear()
[all …]
Dlp_bld_sample.h343 struct lp_build_context coord_bld; member