/external/virglrenderer/src/ |
D | vrend_blitter.c | 509 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 …]
|
D | vrend_renderer.c | 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() [all …]
|
D | vrend_renderer.h | 398 struct vrend_resource *src_res,
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_blit.c | 351 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/ |
D | st_cb_copyimage.c | 543 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/ |
D | resource.cpp | 59 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/ |
D | testvirgl_encode.h | 210 struct virgl_resource *src_res, 216 struct virgl_resource *src_res,
|
D | testvirgl_encode.c | 756 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/ |
D | buffer9.c | 311 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()
|
D | device9.c | 1634 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()
|
D | nine_state.h | 539 struct pipe_resource* src_res,
|
D | nine_state.c | 2433 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/ |
D | virgl_encode.h | 233 struct virgl_resource *src_res, 239 struct virgl_resource *src_res,
|
D | virgl_encode.c | 1083 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/ |
D | radv_meta_blit.c | 538 const VkImageSubresourceLayers *src_res = ®ion->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/ |
D | vl_compositor.h | 294 struct pipe_resource *src_res,
|
D | vl_compositor.c | 712 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/ |
D | anv_blorp.c | 763 const VkImageSubresourceLayers *src_res = ®ion->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()
|