Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample_soa.c239 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_coord_mirror() local
241 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_mirror()
249 coord = lp_build_mul(coord_bld, coord, half); in lp_build_coord_mirror()
250 fract = lp_build_round(coord_bld, coord); in lp_build_coord_mirror()
251 fract = lp_build_sub(coord_bld, coord, fract); in lp_build_coord_mirror()
252 coord = lp_build_add(coord_bld, fract, fract); in lp_build_coord_mirror()
261 coord = lp_build_abs(coord_bld, coord); in lp_build_coord_mirror()
264 coord = lp_build_max_ext(coord_bld, coord, coord_bld->zero, in lp_build_coord_mirror()
284 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_coord_repeat_npot_linear() local
286 LLVMValueRef half = lp_build_const_vec(bld->gallivm, coord_bld->type, 0.5); in lp_build_coord_repeat_npot_linear()
[all …]
Dlp_bld_sample.c248 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_pmin() local
255 LLVMValueRef ddx_ddy = lp_build_packed_ddx_ddy_twocoord(coord_bld, s, t); in lp_build_pmin()
258 unsigned length = coord_bld->type.length; in lp_build_pmin()
268 max_aniso = lp_build_broadcast_scalar(coord_bld, max_aniso); in lp_build_pmin()
269 max_aniso = lp_build_mul(coord_bld, max_aniso, max_aniso); in lp_build_pmin()
287 ddx_ddy = lp_build_mul(coord_bld, ddx_ddy, floatdim); in lp_build_pmin()
289 ddx_ddy = lp_build_mul(coord_bld, ddx_ddy, ddx_ddy); in lp_build_pmin()
291 ddx_ddys = lp_build_swizzle_aos(coord_bld, ddx_ddy, swizzle01); in lp_build_pmin()
292 ddx_ddyt = lp_build_swizzle_aos(coord_bld, ddx_ddy, swizzle23); in lp_build_pmin()
294 LLVMValueRef px2_py2 = lp_build_add(coord_bld, ddx_ddys, ddx_ddyt); in lp_build_pmin()
[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()
146 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_coord_repeat_npot_linear_int() local
155 coord_f = lp_build_fract(coord_bld, coord_f); in lp_build_coord_repeat_npot_linear_int()
[all …]
Dlp_bld_sample.h396 struct lp_build_context coord_bld; member