• Home
  • Raw
  • Download

Lines Matching refs:dst_res

8188    struct vrend_resource *src_res, *dst_res;  in vrend_renderer_copy_transfer3d()  local
8191 dst_res = vrend_renderer_ctx_res_lookup(ctx, dst_handle); in vrend_renderer_copy_transfer3d()
8198 if (!dst_res) { in vrend_renderer_copy_transfer3d()
8208 if (!check_transfer_bounds(dst_res, info)) { in vrend_renderer_copy_transfer3d()
8213 if (!check_iov_bounds(dst_res, info, src_res->iov, src_res->num_iovs)) { in vrend_renderer_copy_transfer3d()
8219 if (dst_res->gbm_bo) { in vrend_renderer_copy_transfer3d()
8231 if (has_bit(dst_res->storage_bits, VREND_STORAGE_GL_IMMUTABLE)) in vrend_renderer_copy_transfer3d()
8238 return virgl_gbm_transfer(dst_res->gbm_bo, in vrend_renderer_copy_transfer3d()
8247 return vrend_renderer_transfer_write_iov(ctx, dst_res, src_res->iov, in vrend_renderer_copy_transfer3d()
8443 struct vrend_resource *dst_res, in vrend_resource_buffer_copy() argument
8448 glBindBuffer(GL_COPY_WRITE_BUFFER, dst_res->id); in vrend_resource_buffer_copy()
8456 struct vrend_resource *dst_res, in vrend_resource_copy_fallback() argument
8465 int elsize = util_format_get_blocksize(dst_res->base.format); in vrend_resource_copy_fallback()
8466 int compressed = util_format_is_compressed(dst_res->base.format); in vrend_resource_copy_fallback()
8475 if (src_res->base.format != dst_res->base.format) { in vrend_resource_copy_fallback()
8476 …py fallback failed due to mismatched formats %d %d\n", src_res->base.format, dst_res->base.format); in vrend_resource_copy_fallback()
8482 dst_stride = util_format_get_stride(dst_res->base.format, dst_res->base.width0); in vrend_resource_copy_fallback()
8507 dst_offset = dst_res->mipmap_offsets[src_level]; in vrend_resource_copy_fallback()
8520 write_transfer_data(&dst_res->base, dst_res->iov, dst_res->num_iovs, tptr, in vrend_resource_copy_fallback()
8525 if (dst_res->base.format == VIRGL_FORMAT_Z24X8_UNORM) { in vrend_resource_copy_fallback()
8588 glBindTexture(dst_res->target, dst_res->id); in vrend_resource_copy_fallback()
8593 GLenum ctarget = dst_res->target == GL_TEXTURE_CUBE_MAP ? in vrend_resource_copy_fallback()
8594 (GLenum)(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i) : dst_res->target; in vrend_resource_copy_fallback()
8636 vrend_copy_sub_image(struct vrend_resource* src_res, struct vrend_resource * dst_res, in vrend_copy_sub_image() argument
8642 GLenum dst_target = tgsitargettogltarget(dst_res->base.target, dst_res->base.nr_samples); in vrend_copy_sub_image()
8651 dst_res->id, dst_target, dst_level, in vrend_copy_sub_image()
8663 struct vrend_resource *src_res, *dst_res; in vrend_renderer_resource_copy_region() local
8671 dst_res = vrend_renderer_ctx_res_lookup(ctx, dst_handle); in vrend_renderer_resource_copy_region()
8677 if (!dst_res) { in vrend_renderer_resource_copy_region()
8688 util_format_name(dst_res->base.format), dst_res->base.nr_samples, in vrend_renderer_resource_copy_region()
8691 if (src_res->base.target == PIPE_BUFFER && dst_res->base.target == PIPE_BUFFER) { in vrend_renderer_resource_copy_region()
8695 vrend_resource_buffer_copy(ctx, src_res, dst_res, dstx, in vrend_renderer_resource_copy_region()
8701 format_is_copy_compatible(src_res->base.format,dst_res->base.format, true) && in vrend_renderer_resource_copy_region()
8702 src_res->base.nr_samples == dst_res->base.nr_samples) { in vrend_renderer_resource_copy_region()
8704 vrend_copy_sub_image(src_res, dst_res, src_level, src_box, in vrend_renderer_resource_copy_region()
8710 !vrend_format_can_render(dst_res->base.format)) { in vrend_renderer_resource_copy_region()
8712 vrend_resource_copy_fallback(src_res, dst_res, dst_level, dstx, in vrend_renderer_resource_copy_region()
8728 vrend_fb_bind_texture(dst_res, 0, dst_level, dstz); in vrend_renderer_resource_copy_region()
8744 if (!dst_res->y_0_top) { in vrend_renderer_resource_copy_region()
8748 dy1 = dst_res->base.height0 - dsty - src_box->height; in vrend_renderer_resource_copy_region()
8749 dy2 = dst_res->base.height0 - dsty; in vrend_renderer_resource_copy_region()
8807 struct vrend_resource *dst_res, in vrend_renderer_blit_int() argument
8820 GLuint blitter_views[2] = {src_res->id, dst_res->id}; in vrend_renderer_blit_int()
8828 if (!vrend_format_can_render(dst_res->base.format) && in vrend_renderer_blit_int()
8829 !vrend_format_is_ds(dst_res->base.format)) in vrend_renderer_blit_int()
8834 vrend_format_is_ds(dst_res->base.format)) { in vrend_renderer_blit_int()
8835 if (src_res->base.format != dst_res->base.format) { in vrend_renderer_blit_int()
8837 (dst_res->base.format == PIPE_FORMAT_Z24X8_UNORM))) { in vrend_renderer_blit_int()
8850 src_res->base.nr_samples != dst_res->base.nr_samples && in vrend_renderer_blit_int()
8859 if (!dst_res->y_0_top) { in vrend_renderer_blit_int()
8863 dst_y1 = dst_res->base.height0 - info->dst.box.y - info->dst.box.height; in vrend_renderer_blit_int()
8864 dst_y2 = dst_res->base.height0 - info->dst.box.y; in vrend_renderer_blit_int()
8880 ((dst_res->base.nr_samples > 0) || in vrend_renderer_blit_int()
8890dst_res->base.nr_samples, src_res->base.nr_samples, info->src.box.x, info->src.box.x + info->src.b… in vrend_renderer_blit_int()
8899 if (vrend_blit_needs_swizzle(vrend_format_replace_emulated(dst_res->base.bind, info->dst.format), in vrend_renderer_blit_int()
8904 (dst_res->base.bind & VIRGL_BIND_PREFER_EMULATED_BGRA) && in vrend_renderer_blit_int()
8913 if ((dst_res->base.format != info->dst.format) && has_feature(feat_texture_view)) in vrend_renderer_blit_int()
8914 blitter_views[1] = vrend_make_view(dst_res, info->dst.format); in vrend_renderer_blit_int()
8919 vrend_renderer_blit_gl(ctx, src_res, dst_res, blitter_views, info, in vrend_renderer_blit_int()
8955 (src_res->base.nr_samples != dst_res->base.nr_samples)) && in vrend_renderer_blit_int()
9025 vrend_fb_bind_texture_id(dst_res, blitter_views[1], 0, info->dst.level, info->dst.box.z + i); in vrend_renderer_blit_int()
9084 if (blitter_views[1] != dst_res->id) in vrend_renderer_blit_int()
9092 struct vrend_resource *src_res, *dst_res; in vrend_renderer_blit() local
9094 dst_res = vrend_renderer_ctx_res_lookup(ctx, dst_handle); in vrend_renderer_blit()
9100 if (!dst_res) { in vrend_renderer_blit()
9132 util_format_name(dst_res->base.format), in vrend_renderer_blit()
9134 dst_res->base.nr_samples, in vrend_renderer_blit()
9151 src_res->base.nr_samples == dst_res->base.nr_samples && in vrend_renderer_blit()
9156 vrend_copy_sub_image(src_res, dst_res, info->src.level, &info->src.box, in vrend_renderer_blit()
9161 vrend_renderer_blit_int(ctx, src_res, dst_res, info); in vrend_renderer_blit()