/external/virglrenderer/src/ |
D | vrend_blitter.c | 424 struct vrend_resource *src_res, in get_texcoords() argument 429 bool normalized = (src_res->base.target != PIPE_TEXTURE_RECT || blit_ctx->use_gles) && in get_texcoords() 430 src_res->base.nr_samples < 1; in get_texcoords() 433 out[0] = x1 / (float)u_minify(src_res->base.width0, src_level); in get_texcoords() 434 out[1] = y1 / (float)u_minify(src_res->base.height0, src_level); in get_texcoords() 435 out[2] = x2 / (float)u_minify(src_res->base.width0, src_level); in get_texcoords() 436 out[3] = y2 / (float)u_minify(src_res->base.height0, src_level); in get_texcoords() 462 struct vrend_resource *src_res, in blitter_set_texcoords() argument 470 get_texcoords(blit_ctx, src_res, level, x1, y1, x2, y2, coord); in blitter_set_texcoords() 472 if (src_res->base.target == PIPE_TEXTURE_CUBE || in blitter_set_texcoords() [all …]
|
D | vrend_renderer.c | 8188 struct vrend_resource *src_res, *dst_res; in vrend_renderer_copy_transfer3d() local 8190 src_res = vrend_renderer_ctx_res_lookup(ctx, src_handle); in vrend_renderer_copy_transfer3d() 8193 if (!src_res) { in vrend_renderer_copy_transfer3d() 8203 if (!src_res->iov) { 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() 8240 src_res->iov, in vrend_renderer_copy_transfer3d() 8241 src_res->num_iovs, in vrend_renderer_copy_transfer3d() 8247 return vrend_renderer_transfer_write_iov(ctx, dst_res, src_res->iov, in vrend_renderer_copy_transfer3d() 8248 src_res->num_iovs, info); in vrend_renderer_copy_transfer3d() 8442 struct vrend_resource *src_res, in vrend_resource_buffer_copy() argument [all …]
|
D | vrend_renderer.h | 472 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/virglrenderer/tests/ |
D | test_virgl_transfer.c | 793 struct virgl_resource src_res = {0}; in START_TEST() local 801 ret = testvirgl_create_unbacked_simple_buffer(&src_res, 1, bufsize, VIRGL_BIND_STAGING); in START_TEST() 803 virgl_renderer_ctx_attach_resource(ctx.ctx_id, src_res.handle); in START_TEST() 810 virgl_encoder_copy_transfer(&ctx, &dst_res, 0, 0, &box, &src_res, 0, synchronized); in START_TEST() 815 virgl_renderer_ctx_detach_resource(ctx.ctx_id, src_res.handle); in START_TEST() 817 virgl_renderer_resource_unref(src_res.handle); in START_TEST() 828 struct virgl_resource src_res = {0}; in START_TEST() local 836 ret = testvirgl_create_backed_simple_buffer(&src_res, 1, bufsize, VIRGL_BIND_STAGING); in START_TEST() 838 virgl_renderer_ctx_attach_resource(ctx.ctx_id, src_res.handle); in START_TEST() 845 virgl_encoder_copy_transfer(&ctx, &dst_res, 0, 0, &box, &src_res, 0, synchronized); in START_TEST() [all …]
|
D | testvirgl_encode.h | 163 struct virgl_resource *src_res, 232 struct virgl_resource *src_res, 238 struct virgl_resource *src_res,
|
D | testvirgl_encode.c | 596 struct virgl_resource *src_res, in virgl_encoder_copy_transfer() argument 604 virgl_encoder_write_res(ctx, src_res); in virgl_encoder_copy_transfer() 800 struct virgl_resource *src_res, in virgl_encode_resource_copy_region() argument 810 virgl_encoder_write_res(ctx, src_res); in virgl_encode_resource_copy_region() 823 struct virgl_resource *src_res, in virgl_encode_blit() argument 845 virgl_encoder_write_res(ctx, src_res); in virgl_encode_blit()
|
/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/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()
|