Lines Matching refs:src

76         struct v3d_resource *src = v3d_resource(info->src.resource);
82 if (!src->tiled &&
83 info->src.resource->target != PIPE_TEXTURE_1D &&
84 info->src.resource->target != PIPE_TEXTURE_1D_ARRAY) {
88 .width = u_minify(info->src.resource->width0,
89 info->src.level),
90 .height = u_minify(info->src.resource->height0,
91 info->src.level),
95 .target = info->src.resource->target,
96 .format = info->src.resource->format,
110 info->src.resource, info->src.level,
112 info->src.level = 0;
113 info->src.resource = tiled;
118 util_format_short_name(info->src.format),
137 struct v3d_resource *src = v3d_resource(info->src.resource);
144 if (src->separate_stencil) {
145 src = src->separate_stencil;
172 .target = src->base.target,
175 .first_level = info->src.level,
176 .last_level = info->src.level,
179 u_minify(src->base.depth0,
180 info->src.level) - 1 :
181 src->base.array_size - 1),
189 ctx->create_sampler_view(ctx, &src->base, &src_tmpl);
193 src_view, &info->src.box,
194 src->base.width0, src->base.height0,
219 struct v3d_resource *src = v3d_resource(psrc);
221 struct v3d_resource_slice *src_base_slice = &src->slices[src_level];
269 src != dst ? src->bo->handle : 0
274 uint32_t src_offset = (src->bo->offset +
302 (2 * v3d_utile_height(src->cpp)));
305 tfu.iis |= src_base_slice->stride / src->cpp;
380 info->src.box.x != 0 ||
381 info->src.box.y != 0 ||
382 info->src.box.width != info->dst.box.width ||
383 info->src.box.height != info->dst.box.height ||
384 info->src.box.depth != 1) {
388 if (info->dst.format != info->src.format)
391 if (v3d_tfu(pctx, info->dst.resource, info->src.resource,
392 info->src.level,
394 info->src.box.z, info->dst.box.z,
445 if (info->src.box.x != info->dst.box.x ||
446 info->src.box.y != info->dst.box.y ||
447 info->src.box.width != info->dst.box.width ||
448 info->src.box.height != info->dst.box.height)
455 if (!v3d_rt_format_supported(&screen->devinfo, info->src.format))
458 if (v3d_get_rt_format(&screen->devinfo, info->src.format) !=
462 bool msaa = (info->src.resource->nr_samples > 1 ||
464 bool is_msaa_resolve = (info->src.resource->nr_samples > 1 &&
468 !v3d_format_supports_tlb_msaa_resolve(&screen->devinfo, info->src.format))
471 v3d_flush_jobs_writing_resource(v3d, info->src.resource, V3D_FLUSH_DEFAULT, false);
476 v3d_get_blit_surface(pctx, info->src.resource, info->src.format, info->src.level, info->src.box.z);
524 * This should be fine because we only get here if the src and dst boxes
753 struct v3d_resource *src = v3d_resource(info->src.resource);
756 if (!src->sand_col128_stride)
758 if (src->tiled)
760 if (src->base.format != PIPE_FORMAT_R8_UNORM &&
761 src->base.format != PIPE_FORMAT_R8G8_UNORM)
766 assert(dst->base.format == src->base.format);
769 assert(info->src.box.x == 0 && info->dst.box.x == 0);
770 assert(info->src.box.y == 0 && info->dst.box.y == 0);
771 assert(info->src.box.width == info->dst.box.width);
772 assert(info->src.box.height == info->dst.box.height);
779 /* Although the src textures are cpp=1 or cpp=2, the dst texture
792 uint32_t sand8_stride = src->sand_col128_stride;
794 /* Adjust the dimensions of dst luma/chroma to match src
799 if (src->cpp == 1)
811 .buffer = info->src.resource,
812 .buffer_offset = src->slices[info->src.level].offset,
813 .buffer_size = (src->bo->size -
814 src->slices[info->src.level].offset),
826 v3d_get_sand8_fs(pctx, src->cpp));