• Home
  • Raw
  • Download

Lines Matching refs:src_res

6814                                        struct vrend_resource *src_res,  in vrend_resource_buffer_copy()  argument
6819 glBindBuffer(GL_COPY_READ_BUFFER, src_res->id); in vrend_resource_buffer_copy()
6827 static void vrend_resource_copy_fallback(struct vrend_resource *src_res, in vrend_resource_copy_fallback() argument
6844 if (src_res->target == GL_TEXTURE_CUBE_MAP) in vrend_resource_copy_fallback()
6847 if (src_res->base.format != dst_res->base.format) { in vrend_resource_copy_fallback()
6848 …fprintf(stderr, "copy fallback failed due to mismatched formats %d %d\n", src_res->base.format, ds… in vrend_resource_copy_fallback()
6853 box.depth = vrend_get_texture_depth(src_res, src_level); in vrend_resource_copy_fallback()
6857 …lice_size = util_format_get_nblocks(src_res->base.format, u_minify(src_res->base.width0, src_level… in vrend_resource_copy_fallback()
6858 util_format_get_blocksize(src_res->base.format); in vrend_resource_copy_fallback()
6859 total_size = slice_size * vrend_get_texture_depth(src_res, src_level); in vrend_resource_copy_fallback()
6865 glformat = tex_conv_table[src_res->base.format].glformat; in vrend_resource_copy_fallback()
6866 gltype = tex_conv_table[src_res->base.format].gltype; in vrend_resource_copy_fallback()
6869 glformat = tex_conv_table[src_res->base.format].internalformat; in vrend_resource_copy_fallback()
6878 src_offset = src_res->mipmap_offsets[src_level]; in vrend_resource_copy_fallback()
6882 src_stride = util_format_get_nblocksx(src_res->base.format, in vrend_resource_copy_fallback()
6883 u_minify(src_res->base.width0, src_level)) * elsize; in vrend_resource_copy_fallback()
6884 read_transfer_data(&src_res->base, src_res->iov, src_res->num_iovs, tptr, in vrend_resource_copy_fallback()
6916 glBindTexture(src_res->target, src_res->id); in vrend_resource_copy_fallback()
6918 read_chunk_size = (src_res->target == GL_TEXTURE_CUBE_MAP) ? slice_size : total_size; in vrend_resource_copy_fallback()
6920 GLenum ctarget = src_res->target == GL_TEXTURE_CUBE_MAP ? in vrend_resource_copy_fallback()
6921 (GLenum)(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i) : src_res->target; in vrend_resource_copy_fallback()
6958 cube_slice = (src_res->target == GL_TEXTURE_CUBE_MAP) ? src_box->z + src_box->depth : cube_slice; in vrend_resource_copy_fallback()
6959 i = (src_res->target == GL_TEXTURE_CUBE_MAP) ? src_box->z : 0; 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
6997 glCopyImageSubData(src_res->id, in vrend_copy_sub_image()
6998 tgsitargettogltarget(src_res->base.target, src_res->base.nr_samples), in vrend_copy_sub_image()
7013 struct vrend_resource *src_res, *dst_res; in vrend_renderer_resource_copy_region() local
7020 src_res = vrend_renderer_ctx_res_lookup(ctx, src_handle); in vrend_renderer_resource_copy_region()
7023 if (!src_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()
7047 if (!vrend_format_can_render(src_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()
7058 vrend_fb_bind_texture(src_res, 0, src_level, src_box->z); in vrend_renderer_resource_copy_region()
7071 if (!src_res->y_0_top) { in vrend_renderer_resource_copy_region()
7075 sy1 = src_res->base.height0 - src_box->y - src_box->height; in vrend_renderer_resource_copy_region()
7076 sy2 = src_res->base.height0 - src_box->y; in vrend_renderer_resource_copy_region()
7098 struct vrend_resource *src_res, in vrend_renderer_blit_int() argument
7114 if (!vrend_format_can_render(src_res->base.format) && in vrend_renderer_blit_int()
7115 !vrend_format_is_ds(src_res->base.format)) in vrend_renderer_blit_int()
7121 if (util_format_is_srgb(src_res->base.format) && in vrend_renderer_blit_int()
7126 if (vrend_format_is_ds(src_res->base.format) && in vrend_renderer_blit_int()
7128 if (src_res->base.format != dst_res->base.format) { in vrend_renderer_blit_int()
7129 if (!(src_res->base.format == PIPE_FORMAT_S8_UINT_Z24_UNORM && in vrend_renderer_blit_int()
7142 src_res->base.nr_samples > 1 && 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()
7182 if (!src_res->y_0_top) { in vrend_renderer_blit_int()
7186 src_y1 = src_res->base.height0 - info->src.box.y - info->src.box.height; in vrend_renderer_blit_int()
7187 src_y2 = src_res->base.height0 - info->src.box.y; in vrend_renderer_blit_int()
7209 ((src_res->base.nr_samples > 1) && in vrend_renderer_blit_int()
7210 (src_res->base.nr_samples != dst_res->base.nr_samples)) && in vrend_renderer_blit_int()
7222 args.width = src_res->base.width0; in vrend_renderer_blit_int()
7223 args.height = src_res->base.height0; in vrend_renderer_blit_int()
7224 args.depth = src_res->base.depth0; in vrend_renderer_blit_int()
7225 args.format = src_res->base.format; in vrend_renderer_blit_int()
7226 args.target = src_res->base.target; in vrend_renderer_blit_int()
7227 args.last_level = src_res->base.last_level; in vrend_renderer_blit_int()
7228 args.array_size = src_res->base.array_size; in vrend_renderer_blit_int()
7239 intermediate_copy = src_res; in vrend_renderer_blit_int()
7260 vrend_fb_bind_texture(src_res, 0, info->src.level, info->src.box.z + i); in vrend_renderer_blit_int()
7263 int level_width = u_minify(src_res->base.width0, info->src.level); in vrend_renderer_blit_int()
7264 int level_height = u_minify(src_res->base.width0, info->src.level); in vrend_renderer_blit_int()
7311 struct vrend_resource *src_res, *dst_res; in vrend_renderer_blit() local
7312 src_res = vrend_renderer_ctx_res_lookup(ctx, src_handle); in vrend_renderer_blit()
7315 if (!src_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()