Home
last modified time | relevance | path

Searched refs:src_res (Results 1 – 18 of 18) sorted by relevance

/external/virglrenderer/src/
Dvrend_blitter.c509 static void get_texcoords(struct vrend_resource *src_res, in get_texcoords() argument
514 bool normalized = src_res->base.target != PIPE_TEXTURE_RECT && in get_texcoords()
515 src_res->base.nr_samples <= 1; in get_texcoords()
518 out[0] = x1 / (float)u_minify(src_res->base.width0, src_level); in get_texcoords()
519 out[1] = y1 / (float)u_minify(src_res->base.height0, src_level); in get_texcoords()
520 out[2] = x2 / (float)u_minify(src_res->base.width0, src_level); in get_texcoords()
521 out[3] = y2 / (float)u_minify(src_res->base.height0, src_level); in get_texcoords()
546 struct vrend_resource *src_res, in blitter_set_texcoords() argument
554 get_texcoords(src_res, level, x1, y1, x2, y2, coord); in blitter_set_texcoords()
556 if (src_res->base.target == PIPE_TEXTURE_CUBE || in blitter_set_texcoords()
[all …]
Dvrend_renderer.c6814 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()
[all …]
Dvrend_renderer.h398 struct vrend_resource *src_res,
/external/mesa3d/src/gallium/drivers/iris/
Diris_blit.c351 struct iris_resource *src_res = (void *) info->src.resource; in iris_blit() local
387 if (iris_resource_unfinished_aux_import(src_res)) in iris_blit()
388 iris_resource_finish_aux_import(ctx->screen, src_res); in iris_blit()
396 iris_resource_texture_aux_usage(ice, src_res, src_fmt.fmt); in iris_blit()
398 if (iris_resource_level_has_hiz(src_res, info->src.level)) in iris_blit()
399 assert(src_res->surf.format == src_fmt.fmt); in iris_blit()
402 src_res->surf.format == src_fmt.fmt; in iris_blit()
404 iris_resource_prepare_access(ice, src_res, info->src.level, 1, in iris_blit()
407 iris_emit_buffer_barrier_for(batch, src_res->bo, IRIS_DOMAIN_OTHER_READ); in iris_blit()
475 if (iris_batch_references(batch, src_res->bo)) in iris_blit()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_copyimage.c543 struct pipe_resource *src_res, in fallback_copy_image() argument
600 src = pipe_transfer_map(st->pipe, src_res, 0, src_z, in fallback_copy_image()
638 struct pipe_resource *src_res, *dst_res; in st_CopyImageSubData() local
649 src_res = src->pt; in st_CopyImageSubData()
650 src_level = stObj->pt != src_res ? 0 : src_image->Level; in st_CopyImageSubData()
658 src_res = src->texture; in st_CopyImageSubData()
683 src_image, src_res, src_x, src_y, orig_src_z, in st_CopyImageSubData()
687 src_res, src_level, &box); in st_CopyImageSubData()
/external/mesa3d/src/gallium/frontends/clover/core/
Dresource.cpp59 resource &src_res, const vector &src_origin) { in copy() argument
63 src_res.pipe, 0, in copy()
64 box(src_res.offset + src_origin, region)); in copy()
/external/virglrenderer/tests/
Dtestvirgl_encode.h210 struct virgl_resource *src_res,
216 struct virgl_resource *src_res,
Dtestvirgl_encode.c756 struct virgl_resource *src_res, in virgl_encode_resource_copy_region() argument
766 virgl_encoder_write_res(ctx, src_res); in virgl_encode_resource_copy_region()
779 struct virgl_resource *src_res, in virgl_encode_blit() argument
801 virgl_encoder_write_res(ctx, src_res); in virgl_encode_blit()
/external/mesa3d/src/gallium/frontends/nine/
Dbuffer9.c311 struct pipe_resource *src_res; in NineBuffer9_Lock() local
319 src_res = nine_upload_buffer_resource_and_offset(This->buf, &offset); in NineBuffer9_Lock()
324 src_res, 0, &src_box); in NineBuffer9_Lock()
Ddevice9.c1634 struct pipe_resource *dst_res, *src_res; in NineDevice9_StretchRect() local
1655 src_res = NineSurface9_GetResource(src); in NineDevice9_StretchRect()
1671 user_assert(zs || !util_format_is_depth_or_stencil(src_res->format), in NineDevice9_StretchRect()
1675 user_assert(screen->is_format_supported(screen, src_res->format, in NineDevice9_StretchRect()
1676 src_res->target, in NineDevice9_StretchRect()
1677 src_res->nr_samples, in NineDevice9_StretchRect()
1678 src_res->nr_storage_samples, in NineDevice9_StretchRect()
1719 blit.src.resource = src_res; in NineDevice9_StretchRect()
1723 blit.src.format = src_res->format; in NineDevice9_StretchRect()
Dnine_state.h539 struct pipe_resource* src_res,
Dnine_state.c2433 ARG_BIND_RES(struct pipe_resource, src_res), in CSMT_ITEM_NO_WAIT() argument
2445 src_res, src_level, in CSMT_ITEM_NO_WAIT()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.h233 struct virgl_resource *src_res,
239 struct virgl_resource *src_res,
Dvirgl_encode.c1083 struct virgl_resource *src_res, in virgl_encode_resource_copy_region() argument
1093 virgl_encoder_write_res(ctx, src_res); in virgl_encode_resource_copy_region()
1106 struct virgl_resource *src_res, in virgl_encode_blit() argument
1130 virgl_encoder_write_res(ctx, src_res); in virgl_encode_blit()
/external/mesa3d/src/amd/vulkan/
Dradv_meta_blit.c538 const VkImageSubresourceLayers *src_res = &region->srcSubresource; in blit_image() local
586 assert(src_res->baseArrayLayer == 0); in blit_image()
590 src_start = src_res->baseArrayLayer; in blit_image()
591 src_end = src_start + src_res->layerCount; in blit_image()
675 .aspectMask = src_res->aspectMask, in blit_image()
676 .baseMipLevel = src_res->mipLevel, in blit_image()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_compositor.h294 struct pipe_resource *src_res,
Dvl_compositor.c712 struct pipe_resource *src_res, in vl_compositor_convert_rgb_to_yuv() argument
723 u_sampler_view_default_template(&sv_templ, src_res, src_res->format); in vl_compositor_convert_rgb_to_yuv()
724 sv = s->pipe->create_sampler_view(s->pipe, src_res, &sv_templ); in vl_compositor_convert_rgb_to_yuv()
/external/mesa3d/src/intel/vulkan/
Danv_blorp.c763 const VkImageSubresourceLayers *src_res = &region->srcSubresource; in blit_image() local
780 assert(anv_image_aspects_compatible(src_res->aspectMask, in blit_image()
784 anv_foreach_image_aspect_bit(aspect_bit, src_image, src_res->aspectMask) { in blit_image()
813 assert(src_res->baseArrayLayer == 0); in blit_image()
817 src_start = src_res->baseArrayLayer; in blit_image()
818 src_end = src_start + anv_get_layerCount(src_image, src_res); in blit_image()
859 blorp_blit(batch, &src, src_res->mipLevel, src_z, in blit_image()