Home
last modified time | relevance | path

Searched refs:src_box (Results 1 – 25 of 65) sorted by relevance

123

/external/mesa3d/src/mesa/state_tracker/
Dst_cb_copyimage.c261 const struct pipe_box *src_box) in blit() argument
271 blit.src.box = *src_box; in blit()
272 u_box_3d(dstx, dsty, dstz, src_box->width, src_box->height, in blit()
273 src_box->depth, &blit.dst.box); in blit()
287 const struct pipe_box *src_box) in swizzled_copy() argument
335 src, blit_src_format, src_level, src_box); in swizzled_copy()
406 const struct pipe_box *src_box, in handle_complex_copy() argument
433 noncanon_format, src_level, src_box); in handle_complex_copy()
440 noncanon_format, src_level, src_box); in handle_complex_copy()
448 src->nr_storage_samples, src_box->width, in handle_complex_copy()
[all …]
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()
/external/mesa3d/src/gallium/drivers/i915/
Di915_surface.c82 const struct pipe_box *src_box) in i915_surface_copy_render() argument
118 u_box_3d(dstx, dsty, dstz, abs(src_box->width), abs(src_box->height), in i915_surface_copy_render()
119 abs(src_box->depth), &dstbox); in i915_surface_copy_render()
122 src_view, src_box, src_width0, src_height0, in i915_surface_copy_render()
129 src, src_level, src_box); in i915_surface_copy_render()
208 const struct pipe_box *src_box) in i915_surface_copy_blitter() argument
219 src, src_level, src_box); in i915_surface_copy_blitter()
224 assert(src_box->depth == 1); in i915_surface_copy_blitter()
232 assert(src_box->z == 0); in i915_surface_copy_blitter()
233 src_offset = i915_texture_offset(src_tex, src_level, src_box->z); in i915_surface_copy_blitter()
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dvolume9.c430 struct pipe_box src_box; in NineVolume9_CopyMemToDefault() local
444 src_box = *pSrcBox; in NineVolume9_CopyMemToDefault()
446 src_box.x = 0; in NineVolume9_CopyMemToDefault()
447 src_box.y = 0; in NineVolume9_CopyMemToDefault()
448 src_box.z = 0; in NineVolume9_CopyMemToDefault()
449 src_box.width = From->desc.Width; in NineVolume9_CopyMemToDefault()
450 src_box.height = From->desc.Height; in NineVolume9_CopyMemToDefault()
451 src_box.depth = From->desc.Depth; in NineVolume9_CopyMemToDefault()
454 dst_box.width = src_box.width; in NineVolume9_CopyMemToDefault()
455 dst_box.height = src_box.height; in NineVolume9_CopyMemToDefault()
[all …]
Dsurface9.c551 struct pipe_box dst_box, src_box; in NineSurface9_UnlockRect() local
577 This->desc.Width, This->desc.Height, &src_box); in NineSurface9_UnlockRect()
589 &src_box); in NineSurface9_UnlockRect()
638 struct pipe_box dst_box, src_box; in NineSurface9_CopyMemToDefault() local
667 copy_width, copy_height, &src_box); in NineSurface9_CopyMemToDefault()
678 &src_box); in NineSurface9_CopyMemToDefault()
713 struct pipe_box src_box; in NineSurface9_CopyDefaultToMem() local
723 u_box_origin_2d(This->desc.Width, This->desc.Height, &src_box); in NineSurface9_CopyDefaultToMem()
724 src_box.z = From->layer; in NineSurface9_CopyDefaultToMem()
732 &src_box, &transfer); in NineSurface9_CopyDefaultToMem()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c572 struct pipe_resource *src, const struct pipe_box *src_box) in r600_copy_buffer() argument
577 r600_cp_dma_copy_buffer(rctx, dst, dstx, src, src_box->x, src_box->width); in r600_copy_buffer()
581 dstx % 4 == 0 && src_box->x % 4 == 0 && src_box->width % 4 == 0) { in r600_copy_buffer()
584 util_blitter_copy_buffer(rctx->blitter, dst, dstx, src, src_box->x, src_box->width); in r600_copy_buffer()
587 util_resource_copy_region(ctx, dst, 0, dstx, 0, 0, src, 0, src_box); in r600_copy_buffer()
600 const struct pipe_box *src_box) in r600_copy_global_buffer() argument
604 struct pipe_box new_src_box = *src_box; in r600_copy_global_buffer()
678 const struct pipe_box *src_box) in r600_resource_copy_region() argument
691 r600_copy_global_buffer(ctx, dst, dstx, src, src_box); in r600_resource_copy_region()
693 r600_copy_buffer(ctx, dst, dstx, src, src_box); in r600_resource_copy_region()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dcik_sdma.c58 const struct pipe_box *src_box) in si_sdma_v4_copy_texture() argument
70 unsigned srcx = src_box->x / ssrc->surface.blk_w; in si_sdma_v4_copy_texture()
71 unsigned srcy = src_box->y / ssrc->surface.blk_h; in si_sdma_v4_copy_texture()
72 unsigned srcz = src_box->z; in si_sdma_v4_copy_texture()
73 unsigned copy_width = DIV_ROUND_UP(src_box->width, ssrc->surface.blk_w); in si_sdma_v4_copy_texture()
74 unsigned copy_height = DIV_ROUND_UP(src_box->height, ssrc->surface.blk_h); in si_sdma_v4_copy_texture()
75 unsigned copy_depth = src_box->depth; in si_sdma_v4_copy_texture()
80 assert(sdst->surface.u.gfx9.surf_offset + dst_slice_pitch * bpp * (dstz + src_box->depth) <= in si_sdma_v4_copy_texture()
82 assert(ssrc->surface.u.gfx9.surf_offset + src_slice_pitch * bpp * (srcz + src_box->depth) <= in si_sdma_v4_copy_texture()
85 if (!si_prepare_for_dma_blit(sctx, sdst, dst_level, dstx, dsty, dstz, ssrc, src_level, src_box)) in si_sdma_v4_copy_texture()
[all …]
Dsi_blit.c852 const struct pipe_box *src_box) in si_resource_copy_region() argument
865 si_copy_buffer(sctx, dst, src, dstx, src_box->x, src_box->width); in si_resource_copy_region()
877 src_box, false); in si_resource_copy_region()
885 si_decompress_subresource(ctx, src, PIPE_MASK_RGBAZS, src_level, src_box->z, in si_resource_copy_region()
886 src_box->z + src_box->depth - 1); in si_resource_copy_region()
917 sbox.x = util_format_get_nblocksx(src->format, src_box->x); in si_resource_copy_region()
918 sbox.y = util_format_get_nblocksy(src->format, src_box->y); in si_resource_copy_region()
919 sbox.z = src_box->z; in si_resource_copy_region()
920 sbox.width = util_format_get_nblocksx(src->format, src_box->width); in si_resource_copy_region()
921 sbox.height = util_format_get_nblocksy(src->format, src_box->height); in si_resource_copy_region()
[all …]
Dsi_compute_blit.c424 unsigned dsty, unsigned dstz, const struct pipe_box *src_box, in si_compute_copy_image() argument
428 unsigned width = src_box->width; in si_compute_copy_image()
429 unsigned height = src_box->height; in si_compute_copy_image()
430 unsigned depth = src_box->depth; in si_compute_copy_image()
476 dstz + src_box->depth - 1); in si_compute_copy_image()
477 si_decompress_subresource(ctx, src, PIPE_MASK_RGBAZS, src_level, src_box->z, in si_compute_copy_image()
478 src_box->z + src_box->depth - 1); in si_compute_copy_image()
495 unsigned data[] = {src_box->x, src_box->y, src_box->z, 0, dstx, dsty, dstz, 0}; in si_compute_copy_image()
543 unsigned dim[3] = {src_box->width, src_box->height, src_box->depth}; in si_compute_copy_image()
/external/mesa3d/src/gallium/drivers/iris/
Diris_blit.c656 const struct pipe_box *src_box) in iris_copy_region() argument
675 util_range_add(&dst_res->base, &dst_res->valid_buffer_range, dstx, dstx + src_box->width); in iris_copy_region()
679 .buffer = iris_resource_bo(src), .offset = src_box->x, in iris_copy_region()
695 blorp_buffer_copy(&blorp_batch, src_addr, dst_addr, src_box->width); in iris_copy_region()
708 src_box->z, src_box->depth, in iris_copy_region()
711 dstz, src_box->depth, in iris_copy_region()
721 for (int slice = 0; slice < src_box->depth; slice++) { in iris_copy_region()
725 blorp_copy(&blorp_batch, &src_surf, src_level, src_box->z + slice, in iris_copy_region()
727 src_box->x, src_box->y, dstx, dsty, in iris_copy_region()
728 src_box->width, src_box->height); in iris_copy_region()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_surface.c209 struct pipe_box src_box, dst_box; in util_resource_copy_region() local
223 src_box = *src_box_in; in util_resource_copy_region()
229 dst_box.width = src_box.width; in util_resource_copy_region()
230 dst_box.height = src_box.height; in util_resource_copy_region()
231 dst_box.depth = src_box.depth; in util_resource_copy_region()
270 assert(src_box.x % src_bw == 0); in util_resource_copy_region()
271 assert(src_box.y % src_bh == 0); in util_resource_copy_region()
276 assert(src_box.x + src_box.width <= (int)u_minify(src->width0, src_level)); in util_resource_copy_region()
277 assert(src_box.y + src_box.height <= (int)u_minify(src->height0, src_level)); in util_resource_copy_region()
282 assert((src_box.width / src_bw) * (src_box.height / src_bh) * src_bs == in util_resource_copy_region()
[all …]
/external/virglrenderer/src/gallium/auxiliary/util/
Du_surface.c252 const struct pipe_box *src_box) in util_resource_copy_region() argument
279 src_box, &src_trans); in util_resource_copy_region()
288 dst_box.width = src_box->width; in util_resource_copy_region()
289 dst_box.height = src_box->height; in util_resource_copy_region()
290 dst_box.depth = src_box->depth; in util_resource_copy_region()
303 assert(src_box->height == 1); in util_resource_copy_region()
304 assert(src_box->depth == 1); in util_resource_copy_region()
305 memcpy(dst_map, src_map, src_box->width); in util_resource_copy_region()
311 src_box->width, src_box->height, src_box->depth, in util_resource_copy_region()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_blitter.c298 const struct pipe_box *src_box) in fd_blitter_pipe_copy_region() argument
311 src, src_level, src_box); in fd_blitter_pipe_copy_region()
328 const struct pipe_box *src_box) in fd_resource_copy_region() argument
341 info.dst.box.width = src_box->width; in fd_resource_copy_region()
342 info.dst.box.height = src_box->height; in fd_resource_copy_region()
349 info.src.box = *src_box; in fd_resource_copy_region()
367 src, src_level, src_box)) in fd_resource_copy_region()
373 src, src_level, src_box); in fd_resource_copy_region()
Dfreedreno_blitter.h46 const struct pipe_box *src_box);
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_surface.c44 const struct pipe_box *src_box) in lp_resource_copy_ms() argument
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() argument
108 src, src_level, src_box); in lp_resource_copy()
112 src, src_level, src_box); in lp_resource_copy()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_blit.c53 const struct pipe_box *src_box, in build_blit_info() argument
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() argument
161 dsty, dstz, src_tex, src_level, src_box); in copy_region_fallback()
822 const struct pipe_box *src_box) in svga_resource_copy_region() argument
841 dst_surf, src_box->x, dstx, in svga_resource_copy_region()
842 src_box->width)); in svga_resource_copy_region()
848 dsty, dstz, src_tex, src_level, src_box); in svga_resource_copy_region()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_miptree.c142 const struct pipe_box *src_box) in nv30_resource_copy_region() argument
150 nv04_resource(srcres), src_box->x, src_box->width); in nv30_resource_copy_region()
154 define_rect(srcres, src_level, src_box->z, src_box->x, src_box->y, in nv30_resource_copy_region()
155 src_box->width, src_box->height, &src); in nv30_resource_copy_region()
157 src_box->width, src_box->height, &dst); in nv30_resource_copy_region()
/external/mesa3d/src/gallium/tools/trace/
Ddump_state.py616 def resource_copy_region(self, dst, dst_level, dstx, dsty, dstz, src, src_level, src_box): argument
623 assert src_box.y == 0
624 assert src_box.z == 0
625 assert src_box.height == 1
626 assert src_box.depth == 1
627 dst.data[dstx : dstx + src_box.width] = src.data[src_box.x : src_box.x + src_box.width]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c539 const struct pipe_box *src_box) in r300_resource_copy_region() argument
558 src, src_level, src_box); in r300_resource_copy_region()
610 box = *src_box; in r300_resource_copy_region()
611 src_box = &box; in r300_resource_copy_region()
657 src, src_level, src_box); in r300_resource_copy_region()
672 u_box_3d(dstx, dsty, dstz, abs(src_box->width), abs(src_box->height), in r300_resource_copy_region()
673 abs(src_box->depth), &dstbox); in r300_resource_copy_region()
677 src_view, src_box, src_width0, src_height0, in r300_resource_copy_region()
Dr300_transfer.c88 struct pipe_box src_box; in r300_copy_into_tiled_texture() local
92 &src_box); in r300_copy_into_tiled_texture()
96 &r300transfer->linear_texture->b.b, 0, &src_box); in r300_copy_into_tiled_texture()
/external/mesa3d/src/amd/vulkan/
Dradv_meta_blit.c63 …nir_intrinsic_instr *src_box = nir_intrinsic_instr_create(b.shader, nir_intrinsic_load_push_consta… in build_nir_vertex_shader() local
64 src_box->src[0] = nir_src_for_ssa(nir_imm_int(&b, 0)); in build_nir_vertex_shader()
65 nir_intrinsic_set_base(src_box, 0); in build_nir_vertex_shader()
66 nir_intrinsic_set_range(src_box, 16); in build_nir_vertex_shader()
67 src_box->num_components = 4; in build_nir_vertex_shader()
68 nir_ssa_dest_init(&src_box->instr, &src_box->dest, 4, 32, "src_box"); in build_nir_vertex_shader()
69 nir_builder_instr_insert(&b, &src_box->instr); in build_nir_vertex_shader()
96 nir_channel(&b, &src_box->dest.ssa, 0), in build_nir_vertex_shader()
97 nir_channel(&b, &src_box->dest.ssa, 2)); in build_nir_vertex_shader()
100 nir_channel(&b, &src_box->dest.ssa, 1), in build_nir_vertex_shader()
[all …]
Dradv_meta_blit2d.c448 …nir_intrinsic_instr *src_box = nir_intrinsic_instr_create(b.shader, nir_intrinsic_load_push_consta… in build_nir_vertex_shader() local
449 src_box->src[0] = nir_src_for_ssa(nir_imm_int(&b, 0)); in build_nir_vertex_shader()
450 nir_intrinsic_set_base(src_box, 0); in build_nir_vertex_shader()
451 nir_intrinsic_set_range(src_box, 16); in build_nir_vertex_shader()
452 src_box->num_components = 4; in build_nir_vertex_shader()
453 nir_ssa_dest_init(&src_box->instr, &src_box->dest, 4, 32, "src_box"); in build_nir_vertex_shader()
454 nir_builder_instr_insert(&b, &src_box->instr); in build_nir_vertex_shader()
473 nir_channel(&b, &src_box->dest.ssa, 0), in build_nir_vertex_shader()
474 nir_channel(&b, &src_box->dest.ssa, 2)); in build_nir_vertex_shader()
477 nir_channel(&b, &src_box->dest.ssa, 1), in build_nir_vertex_shader()
[all …]
/external/mesa3d/src/gallium/drivers/zink/
Dzink_context.c1048 unsigned src_level, const struct pipe_box *src_box) in zink_resource_copy_region() argument
1071 region.srcSubresource.baseArrayLayer = src_box->z; in zink_resource_copy_region()
1072 region.srcSubresource.layerCount = src_box->depth; in zink_resource_copy_region()
1075 region.srcOffset.z = src_box->z; in zink_resource_copy_region()
1077 region.extent.depth = src_box->depth; in zink_resource_copy_region()
1080 region.srcOffset.x = src_box->x; in zink_resource_copy_region()
1081 region.srcOffset.y = src_box->y; in zink_resource_copy_region()
1087 region.dstSubresource.layerCount = src_box->depth; in zink_resource_copy_region()
1095 region.extent.width = src_box->width; in zink_resource_copy_region()
1096 region.extent.height = src_box->height; in zink_resource_copy_region()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_clear_blit.c154 unsigned src_level, const struct pipe_box *src_box) in etna_resource_copy_region() argument
170 src, src_level, src_box); in etna_resource_copy_region()
173 src_level, src_box); in etna_resource_copy_region()
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_st.c96 struct pipe_box src_box; in xmesa_st_framebuffer_copy_textures() local
104 u_box_2d(x, y, width, height, &src_box); in xmesa_st_framebuffer_copy_textures()
108 src_ptex, 0, &src_box); in xmesa_st_framebuffer_copy_textures()

123