Lines Matching refs:dst_res
6815 struct vrend_resource *dst_res, in vrend_resource_buffer_copy() argument
6820 glBindBuffer(GL_COPY_WRITE_BUFFER, dst_res->id); in vrend_resource_buffer_copy()
6828 struct vrend_resource *dst_res, in vrend_resource_copy_fallback() argument
6837 int elsize = util_format_get_blocksize(dst_res->base.format); in vrend_resource_copy_fallback()
6838 int compressed = util_format_is_compressed(dst_res->base.format); in vrend_resource_copy_fallback()
6847 if (src_res->base.format != dst_res->base.format) { in vrend_resource_copy_fallback()
6848 …py fallback failed due to mismatched formats %d %d\n", src_res->base.format, dst_res->base.format); in vrend_resource_copy_fallback()
6854 dst_stride = util_format_get_stride(dst_res->base.format, dst_res->base.width0); in vrend_resource_copy_fallback()
6879 dst_offset = dst_res->mipmap_offsets[src_level]; in vrend_resource_copy_fallback()
6888 write_transfer_data(&dst_res->base, dst_res->iov, dst_res->num_iovs, tptr, in vrend_resource_copy_fallback()
6893 if (dst_res->base.format == (enum pipe_format)VIRGL_FORMAT_Z24X8_UNORM) { in vrend_resource_copy_fallback()
6956 glBindTexture(dst_res->target, dst_res->id); in vrend_resource_copy_fallback()
6961 GLenum ctarget = dst_res->target == GL_TEXTURE_CUBE_MAP ? in vrend_resource_copy_fallback()
6962 (GLenum)(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i) : dst_res->target; in vrend_resource_copy_fallback()
6993 vrend_copy_sub_image(struct vrend_resource* src_res, struct vrend_resource * dst_res, in vrend_copy_sub_image() argument
7000 dst_res->id, in vrend_copy_sub_image()
7001 tgsitargettogltarget(dst_res->base.target, dst_res->base.nr_samples), in vrend_copy_sub_image()
7013 struct vrend_resource *src_res, *dst_res; in vrend_renderer_resource_copy_region() local
7021 dst_res = vrend_renderer_ctx_res_lookup(ctx, dst_handle); in vrend_renderer_resource_copy_region()
7027 if (!dst_res) { in vrend_renderer_resource_copy_region()
7032 if (src_res->base.target == PIPE_BUFFER && dst_res->base.target == PIPE_BUFFER) { in vrend_renderer_resource_copy_region()
7034 vrend_resource_buffer_copy(ctx, src_res, dst_res, dstx, in vrend_renderer_resource_copy_region()
7040 format_is_copy_compatible(src_res->base.format,dst_res->base.format, true) && in vrend_renderer_resource_copy_region()
7041 src_res->base.nr_samples == dst_res->base.nr_samples) { in vrend_renderer_resource_copy_region()
7042 vrend_copy_sub_image(src_res, dst_res, src_level, src_box, in vrend_renderer_resource_copy_region()
7048 !vrend_format_can_render(dst_res->base.format)) { in vrend_renderer_resource_copy_region()
7049 vrend_resource_copy_fallback(src_res, dst_res, dst_level, dstx, in vrend_renderer_resource_copy_region()
7063 vrend_fb_bind_texture(dst_res, 0, dst_level, dstz); in vrend_renderer_resource_copy_region()
7079 if (!dst_res->y_0_top) { in vrend_renderer_resource_copy_region()
7083 dy1 = dst_res->base.height0 - dsty - src_box->height; in vrend_renderer_resource_copy_region()
7084 dy2 = dst_res->base.height0 - dsty; in vrend_renderer_resource_copy_region()
7099 struct vrend_resource *dst_res, in vrend_renderer_blit_int() argument
7117 if (!vrend_format_can_render(dst_res->base.format) && in vrend_renderer_blit_int()
7118 !vrend_format_is_ds(dst_res->base.format)) in vrend_renderer_blit_int()
7122 !util_format_is_srgb(dst_res->base.format)) in vrend_renderer_blit_int()
7127 vrend_format_is_ds(dst_res->base.format)) { in vrend_renderer_blit_int()
7128 if (src_res->base.format != dst_res->base.format) { in vrend_renderer_blit_int()
7130 (dst_res->base.format == PIPE_FORMAT_Z24X8_UNORM))) { in vrend_renderer_blit_int()
7143 src_res->base.nr_samples != dst_res->base.nr_samples && in vrend_renderer_blit_int()
7161 vrend_renderer_blit_gl(ctx, src_res, dst_res, info, in vrend_renderer_blit_int()
7174 if (!dst_res->y_0_top) { in vrend_renderer_blit_int()
7178 dst_y1 = dst_res->base.height0 - info->dst.box.y - info->dst.box.height; in vrend_renderer_blit_int()
7179 dst_y2 = dst_res->base.height0 - info->dst.box.y; in vrend_renderer_blit_int()
7210 (src_res->base.nr_samples != dst_res->base.nr_samples)) && in vrend_renderer_blit_int()
7278 vrend_fb_bind_texture(dst_res, 0, info->dst.level, info->dst.box.z + i); in vrend_renderer_blit_int()
7282 if (util_format_is_srgb(dst_res->base.format)) in vrend_renderer_blit_int()
7311 struct vrend_resource *src_res, *dst_res; in vrend_renderer_blit() local
7313 dst_res = vrend_renderer_ctx_res_lookup(ctx, dst_handle); in vrend_renderer_blit()
7319 if (!dst_res) { in vrend_renderer_blit()
7338 (src_res->base.format != dst_res->base.format) && in vrend_renderer_blit()
7342 (src_res->base.nr_samples == dst_res->base.nr_samples) && in vrend_renderer_blit()
7346 vrend_copy_sub_image(src_res, dst_res, info->src.level, &info->src.box, in vrend_renderer_blit()
7350 vrend_renderer_blit_int(ctx, src_res, dst_res, info); in vrend_renderer_blit()