Lines Matching refs:int_coord_bld
90 struct lp_build_context *int_coord_bld = &bld->int_coord_bld;
94 length_minus_one = lp_build_sub(int_coord_bld, length, int_coord_bld->one);
115 coord = lp_build_max(int_coord_bld, coord, int_coord_bld->zero);
116 coord = lp_build_min(int_coord_bld, coord, length_minus_one);
129 lp_build_sample_partial_offset(int_coord_bld, block_length, coord, stride,
209 struct lp_build_context *int_coord_bld = &bld->int_coord_bld;
212 LLVMValueRef length_minus_one = lp_build_sub(int_coord_bld, length_i,
213 int_coord_bld->one);
246 mask = lp_build_compare(int_coord_bld->gallivm, int_coord_bld->type,
247 PIPE_FUNC_LESS, *coord0_i, int_coord_bld->zero);
248 *coord0_i = lp_build_select(int_coord_bld, mask, length_minus_one, *coord0_i);
254 *coord0_i = lp_build_min(int_coord_bld, *coord0_i, length_minus_one);
291 struct lp_build_context *int_coord_bld = &bld->int_coord_bld;
303 length_minus_one = lp_build_sub(int_coord_bld, length, int_coord_bld->one);
310 coord1 = lp_build_add(int_coord_bld, coord0, int_coord_bld->one);
325 mask = lp_build_compare(bld->gallivm, int_coord_bld->type,
328 lp_build_add(int_coord_bld, coord0,
329 int_coord_bld->one),
335 coord1 = lp_build_add(int_coord_bld, coord0, int_coord_bld->one);
336 coord0 = lp_build_clamp(int_coord_bld, coord0, int_coord_bld->zero,
338 coord1 = lp_build_clamp(int_coord_bld, coord1, int_coord_bld->zero,
350 coord0 = int_coord_bld->zero;
351 coord1 = int_coord_bld->zero;
354 lp_build_sample_partial_offset(int_coord_bld, block_length, coord0, stride,
356 lp_build_sample_partial_offset(int_coord_bld, block_length, coord1, stride,
361 *i0 = int_coord_bld->zero;
362 *i1 = int_coord_bld->zero;
381 mask = lp_build_compare(bld->gallivm, int_coord_bld->type,
384 *offset0 = lp_build_mul(int_coord_bld, coord0, stride);
386 lp_build_add(int_coord_bld, *offset0, stride),
396 lmask = lp_build_compare(int_coord_bld->gallivm, int_coord_bld->type,
397 PIPE_FUNC_GEQUAL, coord0, int_coord_bld->zero);
398 umask = lp_build_compare(int_coord_bld->gallivm, int_coord_bld->type,
401 int_coord_bld, lmask, coord0, int_coord_bld->zero);
402 coord0 = lp_build_select(int_coord_bld, umask, coord0, length_minus_one);
406 *offset0 = lp_build_mul(int_coord_bld, coord0, stride);
407 *offset1 = lp_build_add(int_coord_bld,
420 *offset0 = int_coord_bld->zero;
421 *offset1 = int_coord_bld->zero;
455 struct lp_build_context *int_coord_bld = &bld->int_coord_bld;
539 *coord0 = int_coord_bld->zero;
540 *coord1 = int_coord_bld->zero;
689 bld->int_coord_bld.type,
710 offset = lp_build_add(&bld->int_coord_bld, offset, y_offset);
720 offset = lp_build_add(&bld->int_coord_bld, offset, z_offset);
726 z_offset = lp_build_mul(&bld->int_coord_bld, r, img_stride_vec);
727 offset = lp_build_add(&bld->int_coord_bld, offset, z_offset);
730 offset = lp_build_add(&bld->int_coord_bld, offset, mipoffsets);
812 lp_build_sample_offset(&bld->int_coord_bld,
820 offset = lp_build_add(&bld->int_coord_bld, offset, mipoffsets);
1134 x_stride = lp_build_const_vec(bld->gallivm, bld->int_coord_bld.type,
1152 z_offset = lp_build_mul(&bld->int_coord_bld, r, img_stride_vec);
1154 x_offset0 = lp_build_add(&bld->int_coord_bld, x_offset0, z_offset);
1155 x_offset1 = lp_build_add(&bld->int_coord_bld, x_offset1, z_offset);
1158 x_offset0 = lp_build_add(&bld->int_coord_bld, x_offset0, mipoffsets);
1159 x_offset1 = lp_build_add(&bld->int_coord_bld, x_offset1, mipoffsets);
1181 offset[z][0][x] = lp_build_add(&bld->int_coord_bld,
1183 offset[z][1][x] = lp_build_add(&bld->int_coord_bld,
1200 offset[0][y][x] = lp_build_add(&bld->int_coord_bld,
1202 offset[1][y][x] = lp_build_add(&bld->int_coord_bld,
1299 bld->int_coord_bld.type,
1309 lp_build_sample_partial_offset(&bld->int_coord_bld,
1313 lp_build_sample_partial_offset(&bld->int_coord_bld,
1321 z_offset = lp_build_mul(&bld->int_coord_bld, r, img_stride_vec);
1323 x_offset0 = lp_build_add(&bld->int_coord_bld, x_offset0, z_offset);
1324 x_offset1 = lp_build_add(&bld->int_coord_bld, x_offset1, z_offset);
1327 x_offset0 = lp_build_add(&bld->int_coord_bld, x_offset0, mipoffsets);
1328 x_offset1 = lp_build_add(&bld->int_coord_bld, x_offset1, mipoffsets);
1339 lp_build_sample_partial_offset(&bld->int_coord_bld,
1343 lp_build_sample_partial_offset(&bld->int_coord_bld,
1349 offset[z][0][x] = lp_build_add(&bld->int_coord_bld,
1351 offset[z][1][x] = lp_build_add(&bld->int_coord_bld,
1359 lp_build_sample_partial_offset(&bld->int_coord_bld,
1363 lp_build_sample_partial_offset(&bld->int_coord_bld,
1369 offset[0][y][x] = lp_build_add(&bld->int_coord_bld,
1371 offset[1][y][x] = lp_build_add(&bld->int_coord_bld,