Home
last modified time | relevance | path

Searched refs:src_box (Results 1 - 25 of 68) sorted by relevance

123

/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_copyimage.c272 const struct pipe_box *src_box) in blit()
282 blit.src.box = *src_box; in blit()
283 u_box_3d(dstx, dsty, dstz, src_box->width, src_box->height, in blit()
284 src_box->depth, &blit.dst.box); in blit()
298 const struct pipe_box *src_box) in swizzled_copy()
346 src, blit_src_format, src_level, src_box); in swizzled_copy()
417 const struct pipe_box *src_box, in handle_complex_copy()
444 noncanon_format, src_level, src_box); in handle_complex_copy()
451 noncanon_format, src_level, src_box); in handle_complex_copy()
264 blit(struct pipe_context *pipe, struct pipe_resource *dst, enum pipe_format dst_format, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, enum pipe_format src_format, unsigned src_level, const struct pipe_box *src_box) blit() argument
292 swizzled_copy(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) swizzled_copy() argument
411 handle_complex_copy(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box, enum pipe_format noncanon_format, enum pipe_format canon_format) handle_complex_copy() argument
501 copy_image(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) copy_image() argument
[all...]
H A Dst_texture.c361 struct pipe_box src_box; in st_texture_image_copy() local
374 src_box.x = 0; in st_texture_image_copy()
375 src_box.y = 0; in st_texture_image_copy()
376 src_box.width = width; in st_texture_image_copy()
377 src_box.height = height; in st_texture_image_copy()
378 src_box.depth = 1; in st_texture_image_copy()
391 src_box.z = i; in st_texture_image_copy()
403 &src_box); in st_texture_image_copy()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_blit.cpp345 D3D12_BOX src_box; in copy_subregion_no_barriers() local
346 src_box.left = psrc_box->x; in copy_subregion_no_barriers()
347 src_box.right = MIN2(psrc_box->x + psrc_box->width, (int)u_minify(src->base.b.width0, src_level)); in copy_subregion_no_barriers()
348 src_box.top = psrc_box->y; in copy_subregion_no_barriers()
349 src_box.bottom = MIN2(psrc_box->y + psrc_box->height, (int)u_minify(src->base.b.height0, src_level)); in copy_subregion_no_barriers()
350 src_box.front = src_z; in copy_subregion_no_barriers()
351 src_box.back = src_z + psrc_box->depth; in copy_subregion_no_barriers()
360 &src_loc, &src_box); in copy_subregion_no_barriers()
385 struct pipe_box src_box = *psrc_box; in copy_resource_y_flipped_no_barriers() local
388 src_box in copy_resource_y_flipped_no_barriers()
464 create_staging_resource(struct d3d12_context *ctx, struct d3d12_resource *src, unsigned src_level, const struct pipe_box *src_box, struct pipe_box *dst_box, unsigned mask) create_staging_resource() argument
835 D3D12_BOX src_box; blit_resolve_stencil() local
980 const struct pipe_box *src_box = psrc_box; d3d12_resource_copy_region() local
[all...]
/third_party/mesa3d/src/gallium/drivers/i915/
H A Di915_surface.c78 unsigned src_level, const struct pipe_box *src_box) in i915_surface_copy_render()
116 u_box_3d(dstx, dsty, dstz, abs(src_box->width), abs(src_box->height), in i915_surface_copy_render()
117 abs(src_box->depth), &dstbox); in i915_surface_copy_render()
120 src_box, src_width0, src_height0, PIPE_MASK_RGBAZS, in i915_surface_copy_render()
126 src_level, src_box); in i915_surface_copy_render()
199 unsigned src_level, const struct pipe_box *src_box) in i915_surface_copy_blitter()
204 src_level, src_box); in i915_surface_copy_blitter()
215 assert(src_box->depth == 1); in i915_surface_copy_blitter()
221 assert(src_box in i915_surface_copy_blitter()
75 i915_surface_copy_render(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) i915_surface_copy_render() argument
196 i915_surface_copy_blitter(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) i915_surface_copy_blitter() argument
[all...]
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dvolume9.c429 struct pipe_box src_box; in NineVolume9_CopyMemToDefault() local
443 src_box = *pSrcBox; in NineVolume9_CopyMemToDefault()
445 src_box.x = 0; in NineVolume9_CopyMemToDefault()
446 src_box.y = 0; in NineVolume9_CopyMemToDefault()
447 src_box.z = 0; in NineVolume9_CopyMemToDefault()
448 src_box.width = From->desc.Width; in NineVolume9_CopyMemToDefault()
449 src_box.height = From->desc.Height; in NineVolume9_CopyMemToDefault()
450 src_box.depth = From->desc.Depth; in NineVolume9_CopyMemToDefault()
453 dst_box.width = src_box.width; in NineVolume9_CopyMemToDefault()
454 dst_box.height = src_box in NineVolume9_CopyMemToDefault()
[all...]
H A Dsurface9.c558 struct pipe_box dst_box, src_box; in NineSurface9_UnlockRect() local
588 This->desc.Width, This->desc.Height, &src_box); in NineSurface9_UnlockRect()
600 &src_box); in NineSurface9_UnlockRect()
653 struct pipe_box dst_box, src_box; in NineSurface9_CopyMemToDefault() local
682 copy_width, copy_height, &src_box); in NineSurface9_CopyMemToDefault()
708 &src_box); in NineSurface9_CopyMemToDefault()
735 struct pipe_box src_box; in NineSurface9_CopyDefaultToMem() local
745 u_box_origin_2d(This->desc.Width, This->desc.Height, &src_box); in NineSurface9_CopyDefaultToMem()
746 src_box.z = From->layer; in NineSurface9_CopyDefaultToMem()
754 &src_box, in NineSurface9_CopyDefaultToMem()
[all...]
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
H A DDxgiFns.cpp315 struct pipe_box src_box; in _RotateResourceIdentities() local
316 src_box.x = 0; in _RotateResourceIdentities()
317 src_box.y = 0; in _RotateResourceIdentities()
318 src_box.z = 0; in _RotateResourceIdentities()
319 src_box.width = resource0->width0; in _RotateResourceIdentities()
320 src_box.height = resource0->height0; in _RotateResourceIdentities()
321 src_box.depth = resource0->depth0; in _RotateResourceIdentities()
348 &src_box); in _RotateResourceIdentities()
H A DResource.cpp749 struct pipe_box src_box; in ResourceCopyRegion() local
751 src_box.x = pSrcBox->left; in ResourceCopyRegion()
752 src_box.y = pSrcBox->top; in ResourceCopyRegion()
753 src_box.z = pSrcBox->front + src_layer; in ResourceCopyRegion()
754 src_box.width = pSrcBox->right - pSrcBox->left; in ResourceCopyRegion()
755 src_box.height = pSrcBox->bottom - pSrcBox->top; in ResourceCopyRegion()
756 src_box.depth = pSrcBox->back - pSrcBox->front; in ResourceCopyRegion()
758 src_box.x = 0; in ResourceCopyRegion()
759 src_box.y = 0; in ResourceCopyRegion()
760 src_box in ResourceCopyRegion()
[all...]
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_blit.c656 const struct pipe_box *src_box) in iris_copy_region()
679 util_range_add(&dst_res->base.b, &dst_res->valid_buffer_range, dstx, dstx + src_box->width); in iris_copy_region()
687 .buffer = src_res->bo, .offset = src_res->offset + src_box->x, in iris_copy_region()
707 blorp_buffer_copy(&blorp_batch, src_addr, dst_addr, src_box->width); in iris_copy_region()
719 src_box->z, src_box->depth, in iris_copy_region()
722 dstz, src_box->depth, in iris_copy_region()
729 for (int slice = 0; slice < src_box->depth; slice++) { in iris_copy_region()
733 blorp_copy(&blorp_batch, &src_surf, src_level, src_box->z + slice, in iris_copy_region()
735 src_box in iris_copy_region()
649 iris_copy_region(struct blorp_context *blorp, struct iris_batch *batch, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) iris_copy_region() argument
756 iris_resource_copy_region(struct pipe_context *ctx, struct pipe_resource *p_dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *p_src, unsigned src_level, const struct pipe_box *src_box) iris_resource_copy_region() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_surface.c215 struct pipe_box src_box, dst_box; in util_resource_copy_region() local
229 src_box = *src_box_in; in util_resource_copy_region()
235 dst_box.width = src_box.width; in util_resource_copy_region()
236 dst_box.height = src_box.height; in util_resource_copy_region()
237 dst_box.depth = src_box.depth; in util_resource_copy_region()
276 assert(src_box.x % src_bw == 0); in util_resource_copy_region()
277 assert(src_box.y % src_bh == 0); in util_resource_copy_region()
282 assert(src_box.x + src_box.width <= (int)u_minify(src->width0, src_level)); in util_resource_copy_region()
283 assert(src_box in util_resource_copy_region()
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_blit.c574 struct pipe_resource *src, const struct pipe_box *src_box) in r600_copy_buffer()
579 r600_cp_dma_copy_buffer(rctx, dst, dstx, src, src_box->x, src_box->width); in r600_copy_buffer()
581 util_resource_copy_region(ctx, dst, 0, dstx, 0, 0, src, 0, src_box); in r600_copy_buffer()
593 const struct pipe_box *src_box) in r600_copy_global_buffer()
597 struct pipe_box new_src_box = *src_box; in r600_copy_global_buffer()
671 const struct pipe_box *src_box) in r600_resource_copy_region()
684 r600_copy_global_buffer(ctx, dst, dstx, src, src_box); in r600_resource_copy_region()
686 r600_copy_buffer(ctx, dst, dstx, src, src_box); in r600_resource_copy_region()
696 src_box in r600_resource_copy_region()
573 r600_copy_buffer(struct pipe_context *ctx, struct pipe_resource *dst, unsigned dstx, struct pipe_resource *src, const struct pipe_box *src_box) r600_copy_buffer() argument
590 r600_copy_global_buffer(struct pipe_context *ctx, struct pipe_resource *dst, unsigned dstx, struct pipe_resource *src, const struct pipe_box *src_box) r600_copy_global_buffer() argument
665 r600_resource_copy_region(struct pipe_context *ctx, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) r600_resource_copy_region() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_blit.c682 const struct pipe_box *src_box) in crocus_copy_region()
694 src_res, src_level, src_box)) in crocus_copy_region()
707 util_range_add(&dst_res->base.b, &dst_res->valid_buffer_range, dstx, dstx + src_box->width); in crocus_copy_region()
711 .buffer = crocus_resource_bo(src), .offset = src_box->x, in crocus_copy_region()
723 blorp_buffer_copy(&blorp_batch, src_addr, dst_addr, src_box->width); in crocus_copy_region()
735 src_box->z, src_box->depth, in crocus_copy_region()
738 dstz, src_box->depth, in crocus_copy_region()
743 for (int slice = 0; slice < src_box->depth; slice++) { in crocus_copy_region()
746 blorp_copy(&blorp_batch, &src_surf, src_level, src_box in crocus_copy_region()
675 crocus_copy_region(struct blorp_context *blorp, struct crocus_batch *batch, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) crocus_copy_region() argument
767 crocus_resource_copy_region(struct pipe_context *ctx, struct pipe_resource *p_dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *p_src, unsigned src_level, const struct pipe_box *src_box) crocus_resource_copy_region() argument
[all...]
H A Dcrocus_blt.c240 const struct pipe_box *src_box) in crocus_emit_blt()
248 uint32_t src_width = src_box->width, src_height = src_box->height; in crocus_emit_blt()
260 src_x = src_box->x; in crocus_emit_blt()
261 src_y = src_box->y; in crocus_emit_blt()
265 crocus_resource_get_image_offset(src, src_level, src_box->z, &src_image_x, in crocus_emit_blt()
396 const struct pipe_box *src_box) in crocus_copy_region_blt()
406 src_box); in crocus_copy_region_blt()
233 crocus_emit_blt(struct crocus_batch *batch, struct crocus_resource *src, struct crocus_resource *dst, unsigned dst_level, unsigned dst_x, unsigned dst_y, unsigned dst_z, unsigned src_level, const struct pipe_box *src_box) crocus_emit_blt() argument
390 crocus_copy_region_blt(struct crocus_batch *batch, struct crocus_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct crocus_resource *src, unsigned src_level, const struct pipe_box *src_box) crocus_copy_region_blt() argument
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_compute_blit.c609 unsigned dsty, unsigned dstz, const struct pipe_box *src_box, in si_compute_copy_image()
676 new_box.x = util_format_get_nblocksx(src_format, src_box->x); in si_compute_copy_image()
677 new_box.y = util_format_get_nblocksy(src_format, src_box->y); in si_compute_copy_image()
678 new_box.z = src_box->z; in si_compute_copy_image()
679 new_box.width = util_format_get_nblocksx(src_format, src_box->width); in si_compute_copy_image()
680 new_box.height = util_format_get_nblocksy(src_format, src_box->height); in si_compute_copy_image()
681 new_box.depth = src_box->depth; in si_compute_copy_image()
682 src_box = &new_box; in si_compute_copy_image()
698 new_box = *src_box; in si_compute_copy_image()
699 new_box.x = util_format_get_nblocksx(src_format, src_box in si_compute_copy_image()
607 si_compute_copy_image(struct si_context *sctx, struct pipe_resource *dst, unsigned dst_level, struct pipe_resource *src, unsigned src_level, unsigned dstx, unsigned dsty, unsigned dstz, const struct pipe_box *src_box, unsigned flags) si_compute_copy_image() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_blit.c53 const struct pipe_box *src_box, in build_blit_info()
67 blit->src.box = *src_box; in build_blit_info()
68 u_box_3d(dst_x, dst_y, dst_z, src_box->width, src_box->height, in build_blit_info()
69 src_box->depth, &blit->dst.box); in build_blit_info()
155 const struct pipe_box *src_box) in copy_region_fallback()
161 dsty, dstz, src_tex, src_level, src_box); in copy_region_fallback()
897 const struct pipe_box *src_box) in svga_resource_copy_region()
922 dst_surf, src_box->x, dstx, in svga_resource_copy_region()
923 src_box in svga_resource_copy_region()
46 build_blit_info(struct pipe_resource *dst_tex, unsigned dst_level, unsigned dst_x, unsigned dst_y, unsigned dst_z, struct pipe_resource *src_tex, unsigned src_level, const struct pipe_box *src_box, struct pipe_blit_info *blit) build_blit_info() argument
151 copy_region_fallback(struct svga_context *svga, struct pipe_resource *dst_tex, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src_tex, unsigned src_level, const struct pipe_box *src_box) copy_region_fallback() argument
891 svga_resource_copy_region(struct pipe_context *pipe, struct pipe_resource *dst_tex, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src_tex, unsigned src_level, const struct pipe_box *src_box) svga_resource_copy_region() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_blitter.c321 const struct pipe_box *src_box) assert_dt
338 src, src_level, src_box);
352 unsigned src_level, const struct pipe_box *src_box) in fd_resource_copy_region()
376 info.dst.box.width = src_box->width; in fd_resource_copy_region()
377 info.dst.box.height = src_box->height; in fd_resource_copy_region()
384 info.src.box = *src_box; in fd_resource_copy_region()
396 src_level, src_box)) in fd_resource_copy_region()
402 src_level, src_box); in fd_resource_copy_region()
349 fd_resource_copy_region(struct pipe_context *pctx, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) fd_resource_copy_region() argument
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_surface.c44 const struct pipe_box *src_box) in lp_resource_copy_ms()
46 struct pipe_box dst_box = *src_box; in lp_resource_copy_ms()
58 src_box, in lp_resource_copy_ms()
76 src_box->width, src_box->height, src_box->depth, in lp_resource_copy_ms()
89 const struct pipe_box *src_box) in lp_resource_copy()
109 src, src_level, src_box); in lp_resource_copy()
113 src, src_level, src_box); in lp_resource_copy()
40 lp_resource_copy_ms(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) lp_resource_copy_ms() argument
85 lp_resource_copy(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) lp_resource_copy() argument
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_miptree.c147 const struct pipe_box *src_box) in nv30_resource_copy_region()
155 nv04_resource(srcres), src_box->x, src_box->width); in nv30_resource_copy_region()
159 define_rect(srcres, src_level, src_box->z, src_box->x, src_box->y, in nv30_resource_copy_region()
160 src_box->width, src_box->height, &src); in nv30_resource_copy_region()
162 src_box->width, src_box in nv30_resource_copy_region()
143 nv30_resource_copy_region(struct pipe_context *pipe, struct pipe_resource *dstres, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *srcres, unsigned src_level, const struct pipe_box *src_box) nv30_resource_copy_region() argument
[all...]
/third_party/mesa3d/src/gallium/tools/trace/
H A Ddump_state.py664 def resource_copy_region(self, dst, dst_level, dstx, dsty, dstz, src, src_level, src_box):
671 assert src_box.y == 0
672 assert src_box.z == 0
673 assert src_box.height == 1
674 assert src_box.depth == 1
675 dst.data[dstx : dstx + src_box.width] = src.data[src_box.x : src_box.x + src_box.width]
/third_party/mesa3d/src/gallium/drivers/r300/
H A Dr300_blit.c548 const struct pipe_box *src_box) in r300_resource_copy_region()
567 src, src_level, src_box); in r300_resource_copy_region()
619 box = *src_box; in r300_resource_copy_region()
620 src_box = &box; in r300_resource_copy_region()
666 src, src_level, src_box); in r300_resource_copy_region()
681 u_box_3d(dstx, dsty, dstz, abs(src_box->width), abs(src_box->height), in r300_resource_copy_region()
682 abs(src_box->depth), &dstbox); in r300_resource_copy_region()
686 src_view, src_box, src_width0, src_height0, in r300_resource_copy_region()
542 r300_resource_copy_region(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) r300_resource_copy_region() argument
H A Dr300_transfer.c85 struct pipe_box src_box; in r300_copy_into_tiled_texture() local
89 &src_box); in r300_copy_into_tiled_texture()
93 &r300transfer->linear_texture->b, 0, &src_box); in r300_copy_into_tiled_texture()
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
H A Dxm_st.c99 struct pipe_box src_box; in xmesa_st_framebuffer_copy_textures() local
107 u_box_2d(x, y, width, height, &src_box); in xmesa_st_framebuffer_copy_textures()
111 src_ptex, 0, &src_box); in xmesa_st_framebuffer_copy_textures()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_clear_blit.c155 unsigned src_level, const struct pipe_box *src_box) in etna_resource_copy_region()
163 src, src_level, src_box); in etna_resource_copy_region()
166 src_level, src_box); in etna_resource_copy_region()
152 etna_resource_copy_region(struct pipe_context *pctx, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) etna_resource_copy_region() argument
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_surface.c209 const struct pipe_box *src_box) in nvc0_resource_copy_region()
214 unsigned dst_layer = dstz, src_layer = src_box->z; in nvc0_resource_copy_region()
219 nv04_resource(src), src_box->x, src_box->width); in nvc0_resource_copy_region()
220 NOUVEAU_DRV_STAT(&nvc0->screen->base, buf_copy_bytes, src_box->width); in nvc0_resource_copy_region()
239 unsigned nx = util_format_get_nblocksx(src->format, src_box->width) in nvc0_resource_copy_region()
241 unsigned ny = util_format_get_nblocksy(src->format, src_box->height) in nvc0_resource_copy_region()
246 src_box->x, src_box->y, src_box in nvc0_resource_copy_region()
205 nvc0_resource_copy_region(struct pipe_context *pipe, struct pipe_resource *dst, unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) nvc0_resource_copy_region() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/
H A Dnouveau_buffer.c610 struct pipe_box src_box; in nouveau_copy_buffer() local
611 src_box.x = srcx; in nouveau_copy_buffer()
612 src_box.y = 0; in nouveau_copy_buffer()
613 src_box.z = 0; in nouveau_copy_buffer()
614 src_box.width = size; in nouveau_copy_buffer()
615 src_box.height = 1; in nouveau_copy_buffer()
616 src_box.depth = 1; in nouveau_copy_buffer()
619 &src->base, 0, &src_box); in nouveau_copy_buffer()

Completed in 24 milliseconds

123