Lines Matching refs:src

107    if (info->dst.box.width != info->src.box.width ||
108 info->dst.box.height != info->src.box.height)
114 if (info->dst.box.height < 0 || info->src.box.height < 0)
117 if (info->dst.box.depth > 1 || info->src.box.depth > 1)
121 util_format_description(info->src.format);
122 int i = util_format_get_first_non_void_channel(info->src.format);
127 if ((util_format_has_alpha1(info->src.format) &&
144 struct crocus_resource *src,
161 DBG("%s src:buf(%p)/%d+%d %d,%d dst:buf(%p)/%d+%d %d,%d sz:%dx%d\n",
163 src, src_pitch, src_offset, src_x, src_y,
166 isl_get_tile_dims(src->surf.tiling, cpp, &src_tile_w, &src_tile_h);
173 assert(src->surf.tiling == ISL_TILING_LINEAR || (src_pitch % src_tile_w) == 0);
207 if (src->surf.tiling != ISL_TILING_LINEAR)
214 xyblt.SourceTilingEnable = src->surf.tiling != ISL_TILING_LINEAR;
215 xyblt.SourceBaseAddress = ro_bo(src->bo, src_offset);
234 struct crocus_resource *src,
242 const struct isl_format_layout *src_fmtl = isl_format_get_layout(src->surf.format);
251 if (src->surf.tiling == ISL_TILING_Y0 || dst->surf.tiling == ISL_TILING_Y0)
254 if (src->surf.format != dst->surf.format)
265 crocus_resource_get_image_offset(src, src_level, src_box->z, &src_image_x,
267 if (util_format_is_compressed(src->base.b.format)) {
268 int bw = util_format_get_blockwidth(src->base.b.format);
269 int bh = util_format_get_blockheight(src->base.b.format);
308 if (crocus_resource_blt_pitch(src) >= 32768 ||
329 isl_tiling_get_intratile_offset_el(src->surf.tiling, src->surf.dim,
330 src->surf.msaa_layout,
331 src_cpp * 8, src->surf.samples,
332 src->surf.row_pitch_B,
333 src->surf.array_pitch_el_rows,
354 if (!emit_copy_blt(batch, src, dst,
355 src_cpp, src->surf.row_pitch_B,
366 if (util_format_has_alpha1(src->base.b.format) &&
379 (struct crocus_resource *)info->src.resource,
385 info->src.level,
386 &info->src.box);
394 struct crocus_resource *src,
398 if (dst->base.b.target == PIPE_BUFFER || src->base.b.target == PIPE_BUFFER)
401 src,