Lines Matching refs:coord
171 * texel = sample_texture(coord);
201 LLVMValueRef coord)
207 lp_build_ifloor_fract(coord_bld, coord, &flr, &fract);
212 /* make coord positive or negative depending on isOdd */
213 coord = lp_build_set_sign(coord_bld, fract, isOdd);
218 /* add isOdd to coord */
219 coord = lp_build_add(coord_bld, coord, isOdd);
221 return coord;
226 * Helper to compute the first coord and the weight for
268 LLVMValueRef coord,
288 coord = lp_build_mul(coord_bld, coord, length_f);
289 coord = lp_build_sub(coord_bld, coord, half);
291 lp_build_ifloor_fract(coord_bld, coord, &coord0, &weight);
299 lp_build_coord_repeat_npot_linear(bld, coord,
312 /* scale coord to length */
313 coord = lp_build_mul(coord_bld, coord, length_f);
317 coord = lp_build_clamp(coord_bld, coord, coord_bld->zero, length_f);
319 coord = lp_build_sub(coord_bld, coord, half);
322 lp_build_ifloor_fract(coord_bld, coord, &coord0, &weight);
333 coord = lp_build_mul(coord_bld, coord, length_f);
336 coord = lp_build_min(coord_bld, coord, length_f);
338 coord = lp_build_sub(coord_bld, coord, half);
340 coord = lp_build_max(coord_bld, coord, coord_bld->zero);
342 lp_build_ifloor_fract(&abs_coord_bld, coord, &coord0, &weight);
353 /* scale coord to length */
354 coord = lp_build_mul(coord_bld, coord, length_f);
357 coord = lp_build_sub(coord_bld, coord, half);
359 coord = lp_build_clamp(coord_bld, coord, min, length_f);
361 lp_build_ifloor_fract(coord_bld, coord, &coord0, &weight);
368 coord = lp_build_coord_mirror(bld, coord);
370 /* scale coord to length */
371 coord = lp_build_mul(coord_bld, coord, length_f);
372 coord = lp_build_sub(coord_bld, coord, half);
375 lp_build_ifloor_fract(coord_bld, coord, &coord0, &weight);
385 coord = lp_build_abs(coord_bld, coord);
388 /* scale coord to length */
389 coord = lp_build_mul(coord_bld, coord, length_f);
393 coord = lp_build_min(coord_bld, coord, length_f);
395 coord = lp_build_sub(coord_bld, coord, half);
398 lp_build_ifloor_fract(coord_bld, coord, &coord0, &weight);
407 coord = lp_build_abs(coord_bld, coord);
410 /* scale coord to length */
411 coord = lp_build_mul(coord_bld, coord, length_f);
417 coord = lp_build_clamp(coord_bld, coord, min, max);
419 coord = lp_build_sub(coord_bld, coord, half);
422 coord, &coord0, &weight);
429 coord = lp_build_abs(coord_bld, coord);
432 /* scale coord to length */
433 coord = lp_build_mul(coord_bld, coord, length_f);
438 coord = lp_build_sub(coord_bld, coord, half);
439 coord = lp_build_min(coord_bld, coord, length_f);
442 lp_build_ifloor_fract(coord_bld, coord, &coord0, &weight);
462 * \param coord the incoming texcoord (nominally in [0,1])
469 LLVMValueRef coord,
484 coord = lp_build_mul(coord_bld, coord, length_f);
485 icoord = lp_build_ifloor(coord_bld, coord);
490 coord = lp_build_fract_safe(coord_bld, coord);
491 coord = lp_build_mul(coord_bld, coord, length_f);
492 icoord = lp_build_itrunc(coord_bld, coord);
499 /* scale coord to length */
500 coord = lp_build_mul(coord_bld, coord, length_f);
505 icoord = lp_build_itrunc(coord_bld, coord);
518 /* scale coord to length */
519 coord = lp_build_mul(coord_bld, coord, length_f);
522 icoord = lp_build_ifloor(coord_bld, coord);
533 coord = lp_build_coord_mirror(bld, coord);
535 /* scale coord to length */
537 coord = lp_build_mul(coord_bld, coord, length_f);
540 icoord = lp_build_itrunc(coord_bld, coord);
548 coord = lp_build_abs(coord_bld, coord);
551 /* scale coord to length */
552 coord = lp_build_mul(coord_bld, coord, length_f);
556 icoord = lp_build_itrunc(coord_bld, coord);
563 coord = lp_build_abs(coord_bld, coord);
566 /* scale coord to length */
567 coord = lp_build_mul(coord_bld, coord, length_f);
571 icoord = lp_build_itrunc(coord_bld, coord);
1181 LLVMValueRef coord = LLVMBuildExtractElement(builder, p, indx, "");
1183 lp_build_printf(bld->gallivm, "shadow compare coord %f to texture %f\n",
1184 coord, tex);