/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_clear.c | 70 const struct pipe_box *box, in can_fast_clear_color() argument 84 if (box->x > 0 || box->y > 0 || in can_fast_clear_color() 85 box->width < u_minify(p_res->width0, level) || in can_fast_clear_color() 86 box->height < u_minify(p_res->height0, level)) { in can_fast_clear_color() 167 const struct pipe_box *box, in fast_clear_color() argument 187 layer >= box->z && in fast_clear_color() 188 layer < box->z + box->depth) { in fast_clear_color() 241 iris_resource_get_aux_state(res, level, box->z); in fast_clear_color() 242 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color() 285 level, box->z, box->depth, in fast_clear_color() [all …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_transfer.c | 52 etna_compute_offset(enum pipe_format format, const struct pipe_box *box, in etna_compute_offset() argument 55 return box->z * layer_stride + in etna_compute_offset() 56 box->y / util_format_get_blockheight(format) * stride + in etna_compute_offset() 57 box->x / util_format_get_blockwidth(format) * in etna_compute_offset() 78 ptrans->box.width, ptrans->box.height, in etna_patch_data() 131 etna_copy_resource_box(pctx, ptrans->resource, trans->rsc, ptrans->level, &ptrans->box); in etna_transfer_unmap() 137 for (unsigned z = 0; z < ptrans->box.depth; z++) { in etna_transfer_unmap() 139 trans->mapped + (ptrans->box.z + z) * res_level->layer_stride, in etna_transfer_unmap() 141 ptrans->box.x, ptrans->box.y, in etna_transfer_unmap() 142 res_level->stride, ptrans->box.width, ptrans->box.height, in etna_transfer_unmap() [all …]
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_clear.c | 68 const struct pipe_box *box, in can_fast_clear_color() argument 83 if (box->x > 0 || box->y > 0 || in can_fast_clear_color() 84 box->width < u_minify(p_res->width0, level) || in can_fast_clear_color() 85 box->height < u_minify(p_res->height0, level)) { in can_fast_clear_color() 201 const struct pipe_box *box, in fast_clear_color() argument 225 layer >= box->z && in fast_clear_color() 226 layer < box->z + box->depth) { in fast_clear_color() 271 crocus_resource_get_aux_state(res, level, box->z); in fast_clear_color() 272 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color() 311 level, box->z, box->depth, in fast_clear_color() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_box.h | 9 u_box_1d(unsigned x, unsigned w, struct pipe_box *box) in u_box_1d() argument 11 box->x = x; in u_box_1d() 12 box->y = 0; in u_box_1d() 13 box->z = 0; in u_box_1d() 14 box->width = w; in u_box_1d() 15 box->height = 1; in u_box_1d() 16 box->depth = 1; in u_box_1d() 20 u_box_2d(unsigned x,unsigned y, unsigned w, unsigned h, struct pipe_box *box) in u_box_2d() argument 22 box->x = x; in u_box_2d() 23 box->y = y; in u_box_2d() [all …]
|
D | u_transfer_helper.c | 177 const struct pipe_box *box, in transfer_map_msaa() argument 189 ptrans->box = *box; in transfer_map_msaa() 194 .width0 = box->width, in transfer_map_msaa() 195 .height0 = box->height, in transfer_map_msaa() 212 blit.src.box = *box; in transfer_map_msaa() 216 blit.dst.box.width = box->width; in transfer_map_msaa() 217 blit.dst.box.height = box->height; in transfer_map_msaa() 218 blit.dst.box.depth = 1; in transfer_map_msaa() 226 struct pipe_box map_box = *box; in transfer_map_msaa() 246 const struct pipe_box *box, in u_transfer_helper_transfer_map() argument [all …]
|
D | u_compute.c | 81 if (blit_info->src.box.width == 0 || blit_info->src.box.height == 0 || in util_compute_blit() 82 blit_info->dst.box.width == 0 || blit_info->dst.box.height == 0) in util_compute_blit() 89 unsigned width = blit_info->dst.box.width; in util_compute_blit() 90 unsigned height = blit_info->dst.box.height; in util_compute_blit() 91 float x_scale = blit_info->src.box.width / (float)blit_info->dst.box.width; in util_compute_blit() 92 float y_scale = blit_info->src.box.height / (float)blit_info->dst.box.height; in util_compute_blit() 93 float z_scale = blit_info->src.box.depth / (float)blit_info->dst.box.depth; in util_compute_blit() 96 unsigned data[] = {u_bitcast_f2u((blit_info->src.box.x + offset) / (float)src->width0), in util_compute_blit() 97 u_bitcast_f2u((blit_info->src.box.y + offset) / (float)src->height0), in util_compute_blit() 98 u_bitcast_f2u(blit_info->src.box.z), in util_compute_blit() [all …]
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_transfer_queue.c | 71 box_min_max(const struct pipe_box *box, int dim, int *min, int *max) in box_min_max() argument 75 if (box->width > 0) { in box_min_max() 76 *min = box->x; in box_min_max() 77 *max = box->x + box->width; in box_min_max() 79 *max = box->x; in box_min_max() 80 *min = box->x + box->width; in box_min_max() 84 if (box->height > 0) { in box_min_max() 85 *min = box->y; in box_min_max() 86 *max = box->y + box->height; in box_min_max() 88 *max = box->y; in box_min_max() [all …]
|
D | virgl_texture.c | 46 blit.src.box = *src_box; in virgl_copy_region_with_blit() 50 blit.dst.box.x = dst_box->x; in virgl_copy_region_with_blit() 51 blit.dst.box.y = dst_box->y; in virgl_copy_region_with_blit() 52 blit.dst.box.z = dst_box->z; in virgl_copy_region_with_blit() 53 blit.dst.box.width = dst_box->width; in virgl_copy_region_with_blit() 54 blit.dst.box.height = dst_box->height; in virgl_copy_region_with_blit() 55 blit.dst.box.depth = dst_box->depth; in virgl_copy_region_with_blit() 78 const struct pipe_box *box, in virgl_init_temp_resource_from_box() argument 85 res->width0 = box->width; in virgl_init_temp_resource_from_box() 86 res->height0 = box->height; in virgl_init_temp_resource_from_box() [all …]
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_tiling_lt.c | 132 int cpp, const struct pipe_box *box, bool to_cpu) in vc4_lt_image_aligned() argument 137 uint32_t xstart = box->x; in vc4_lt_image_aligned() 138 uint32_t ystart = box->y; in vc4_lt_image_aligned() 140 for (uint32_t y = 0; y < box->height; y += utile_h) { in vc4_lt_image_aligned() 141 for (uint32_t x = 0; x < box->width; x += utile_w) { in vc4_lt_image_aligned() 172 int cpp, const struct pipe_box *box, bool to_cpu) in vc4_lt_image_unaligned() argument 178 uint32_t offs_x0 = swizzle_lt_x(box->x, cpp); in vc4_lt_image_unaligned() 179 uint32_t offs_y = swizzle_lt_y(box->y, cpp); in vc4_lt_image_unaligned() 187 offs_x0 += incr_y * (box->y / vc4_utile_height(cpp)); in vc4_lt_image_unaligned() 189 for (uint32_t y = 0; y < box->height; y++) { in vc4_lt_image_unaligned() [all …]
|
D | vc4_blit.c | 69 if (info->dst.box.x != info->src.box.x || in vc4_tile_blit() 70 info->dst.box.y != info->src.box.y || in vc4_tile_blit() 71 info->dst.box.width != info->src.box.width || in vc4_tile_blit() 72 info->dst.box.height != info->src.box.height) { in vc4_tile_blit() 80 if (is_tile_unaligned(info->dst.box.x, tile_width) || in vc4_tile_blit() 81 is_tile_unaligned(info->dst.box.y, tile_height) || in vc4_tile_blit() 82 (is_tile_unaligned(info->dst.box.width, tile_width) && in vc4_tile_blit() 83 info->dst.box.x + info->dst.box.width != dst_surface_width) || in vc4_tile_blit() 84 (is_tile_unaligned(info->dst.box.height, tile_height) && in vc4_tile_blit() 85 info->dst.box.y + info->dst.box.height != dst_surface_height)) { in vc4_tile_blit() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | genericFunctionInference1.js | 7 declare function box<V>(x: V): { value: V }; 11 const f01 = pipe(list, box); 12 const f02 = pipe(box, list); 13 const f03 = pipe(x => list(x), box); 14 const f04 = pipe(list, x => box(x)); 15 const f05 = pipe(x => list(x), x => box(x)) 16 const f06 = pipe(list, pipe(box)); 17 const f07 = pipe(x => list(x), pipe(box)); 18 const f08 = pipe(x => list(x), pipe(x => box(x))); 24 const g01: <T>(x: T) => { value: T[] } = pipe(list, box); [all …]
|
D | contextuallyTypedBooleanLiterals.types | 15 declare function box<T>(value: T): Box<T>; 16 >box : <T>(value: T) => Box<T> 19 const bn1 = box(0); // Box<number> 21 >box(0) : Box<number> 22 >box : <T>(value: T) => Box<T> 25 const bn2: Box<number> = box(0); // Ok 27 >box(0) : Box<number> 28 >box : <T>(value: T) => Box<T> 31 const bb1 = box(false); // Box<boolean> 33 >box(false) : Box<boolean> [all …]
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_resource_texture.c | 60 SVGA3dCopyBox box; in svga_transfer_dma_band() local 64 box.x = x; in svga_transfer_dma_band() 65 box.y = y; in svga_transfer_dma_band() 66 box.z = z; in svga_transfer_dma_band() 67 box.w = w; in svga_transfer_dma_band() 68 box.h = h; in svga_transfer_dma_band() 69 box.d = d; in svga_transfer_dma_band() 70 box.srcx = srcx; in svga_transfer_dma_band() 71 box.srcy = srcy; in svga_transfer_dma_band() 72 box.srcz = srcz; in svga_transfer_dma_band() [all …]
|
D | svga_pipe_blit.c | 67 blit->src.box = *src_box; in build_blit_info() 69 src_box->depth, &blit->dst.box); in build_blit_info() 83 SVGA3dCopyBox box; in intra_surface_copy() local 94 box.x = dst_x; in intra_surface_copy() 95 box.y = dst_y; in intra_surface_copy() 96 box.z = dst_z; in intra_surface_copy() 97 box.w = width; in intra_surface_copy() 98 box.h = height; in intra_surface_copy() 99 box.d = depth; in intra_surface_copy() 100 box.srcx = src_x; in intra_surface_copy() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_rast_linear.c | 113 struct u_rect box; in lp_rast_linear_tile() local 114 box.x0 = task->x; in lp_rast_linear_tile() 115 box.x1 = task->x + task->width - 1; in lp_rast_linear_tile() 116 box.y0 = task->y; in lp_rast_linear_tile() 117 box.y1 = task->y + task->height - 1; in lp_rast_linear_tile() 118 lp_rast_linear_rect_fallback(task, inputs, &box); in lp_rast_linear_tile() 137 struct u_rect box; in lp_rast_linear_rect() local 138 box.x0 = task->x; in lp_rast_linear_rect() 139 box.y0 = task->y; in lp_rast_linear_rect() 140 box.x1 = task->x + task->width - 1; in lp_rast_linear_rect() [all …]
|
D | lp_rast_rect.c | 125 struct u_rect *box) in intersect_rect_and_tile() argument 127 box->x0 = task->x; in intersect_rect_and_tile() 128 box->y0 = task->y; in intersect_rect_and_tile() 129 box->x1 = task->x + TILE_SIZE - 1; in intersect_rect_and_tile() 130 box->y1 = task->y + TILE_SIZE - 1; in intersect_rect_and_tile() 132 assert(u_rect_test_intersection(&rect->box, box)); in intersect_rect_and_tile() 134 u_rect_find_intersection(&rect->box, box); in intersect_rect_and_tile() 136 box->x0 -= task->x; in intersect_rect_and_tile() 137 box->x1 -= task->x; in intersect_rect_and_tile() 138 box->y0 -= task->y; in intersect_rect_and_tile() [all …]
|
/third_party/toybox/kconfig/lxdialog/ |
D | textbox.c | 38 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, in refresh_text_box() argument 41 print_page(box, boxh, boxw); in refresh_text_box() 57 WINDOW *dialog, *box; in dialog_textbox() local 97 box = subwin(dialog, boxh, boxw, y + 1, x + 1); in dialog_textbox() 98 wattrset(box, dlg.dialog.atr); in dialog_textbox() 99 wbkgdset(box, dlg.dialog.atr & A_COLOR); in dialog_textbox() 101 keypad(box, TRUE); in dialog_textbox() 122 attr_clear(box, boxh, boxw, dlg.dialog.atr); in dialog_textbox() 123 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x); in dialog_textbox() 132 delwin(box); in dialog_textbox() [all …]
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_blit.c | 21 …zink_fb_clears_apply_or_discard(ctx, info->dst.resource, zink_rect_from_box(&info->dst.box), disca… in apply_dst_clears() 34 if (info->src.box.width < 0 || in blit_resolve() 35 info->dst.box.width < 0 || in blit_resolve() 36 info->src.box.height < 0 || in blit_resolve() 37 info->dst.box.height < 0 || in blit_resolve() 38 info->src.box.depth < 0 || in blit_resolve() 39 info->dst.box.depth < 0) in blit_resolve() 58 zink_fb_clears_apply_region(ctx, info->src.resource, zink_rect_from_box(&info->src.box)); in blit_resolve() 75 region.srcOffset.x = info->src.box.x; in blit_resolve() 76 region.srcOffset.y = info->src.box.y; in blit_resolve() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_transfer.c | 57 src, transfer->level, &transfer->box); in r300_copy_from_tiled_texture() 66 blit.src.box = transfer->box; in r300_copy_from_tiled_texture() 69 blit.dst.box.width = transfer->box.width; in r300_copy_from_tiled_texture() 70 blit.dst.box.height = transfer->box.height; in r300_copy_from_tiled_texture() 71 blit.dst.box.depth = transfer->box.depth; in r300_copy_from_tiled_texture() 88 transfer->box.width, transfer->box.height, transfer->box.depth, in r300_copy_into_tiled_texture() 92 transfer->box.x, transfer->box.y, transfer->box.z, in r300_copy_into_tiled_texture() 104 const struct pipe_box *box, in r300_texture_transfer_map() argument 129 trans->transfer.box = *box; in r300_texture_transfer_map() 147 base.width0 = box->width; in r300_texture_transfer_map() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | vf_palettegen.c | 172 struct range_box *box = &s->boxes[box_id]; in get_next_box_id_to_split() local 176 if (box->variance == -1) { in get_next_box_id_to_split() 179 for (i = 0; i < box->len; i++) { in get_next_box_id_to_split() 180 const struct color_ref *ref = s->refs[box->start + i]; in get_next_box_id_to_split() 182 variance += (int64_t)diff_alpha(ref->color, box->color) * ref->count; in get_next_box_id_to_split() 184 variance += (int64_t)diff(ref->color, box->color) * ref->count; in get_next_box_id_to_split() 186 box->variance = variance; in get_next_box_id_to_split() 188 if (box->variance > max_variance) { in get_next_box_id_to_split() 190 max_variance = box->variance; in get_next_box_id_to_split() 193 box->variance = -1; in get_next_box_id_to_split() [all …]
|
D | vf_bbox.c | 80 FFBoundingBox box; in filter_frame() local 84 ff_calculate_bounding_box(&box, in filter_frame() 87 w = box.x2 - box.x1 + 1; in filter_frame() 88 h = box.y2 - box.y1 + 1; in filter_frame() 97 SET_META("lavfi.bbox.x1", box.x1) in filter_frame() 98 SET_META("lavfi.bbox.x2", box.x2) in filter_frame() 99 SET_META("lavfi.bbox.y1", box.y1) in filter_frame() 100 SET_META("lavfi.bbox.y2", box.y2) in filter_frame() 107 box.x1, box.x2, box.y1, box.y2, w, h, in filter_frame() 108 w, h, box.x1, box.y1, /* crop params */ in filter_frame() [all …]
|
/third_party/mesa3d/src/broadcom/common/ |
D | v3d_tiling.c | 220 const struct pipe_box *box, in v3d_move_pixels_unaligned() argument 226 for (uint32_t y = 0; y < box->height; y++) { in v3d_move_pixels_unaligned() 229 for (int x = 0; x < box->width; x++) { in v3d_move_pixels_unaligned() 231 box->x + x, in v3d_move_pixels_unaligned() 232 box->y + y); in v3d_move_pixels_unaligned() 236 box->x + x, box->y + y, in v3d_move_pixels_unaligned() 260 const struct pipe_box *box, in v3d_move_pixels_general_percpp() argument 269 uint32_t x1 = box->x; in v3d_move_pixels_general_percpp() 270 uint32_t y1 = box->y; in v3d_move_pixels_general_percpp() 271 uint32_t x2 = box->x + box->width; in v3d_move_pixels_general_percpp() [all …]
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | basetexture9.c | 252 struct pipe_box box; in NineBaseTexture9_UploadSelf() local 253 box.z = 0; in NineBaseTexture9_UploadSelf() 254 box.depth = 1; in NineBaseTexture9_UploadSelf() 265 u_box_minify_2d(&box, &tex->dirty_rect, l); in NineBaseTexture9_UploadSelf() 266 NineSurface9_UploadSelf(tex->surfaces[l], &box); in NineBaseTexture9_UploadSelf() 275 struct pipe_box box; in NineBaseTexture9_UploadSelf() local 276 box.z = 0; in NineBaseTexture9_UploadSelf() 277 box.depth = 1; in NineBaseTexture9_UploadSelf() 286 u_box_minify_2d(&box, &tex->dirty_rect[z], l); in NineBaseTexture9_UploadSelf() 287 NineSurface9_UploadSelf(tex->surfaces[l * 6 + z], &box); in NineBaseTexture9_UploadSelf() [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_resource.cpp | 745 ptrans->box.width = width_multiplier * original_box->width; in d3d12_adjust_transfer_dimensions_for_plane() 746 ptrans->box.height = height_multiplier * original_box->height; in d3d12_adjust_transfer_dimensions_for_plane() 747 ptrans->box.x = width_multiplier * original_box->x; in d3d12_adjust_transfer_dimensions_for_plane() 748 ptrans->box.y = height_multiplier * original_box->y; in d3d12_adjust_transfer_dimensions_for_plane() 751 …ptrans->box.width = util_format_get_plane_width(res->overall_format, plane_slice, ptrans->box.widt… in d3d12_adjust_transfer_dimensions_for_plane() 752 …ptrans->box.height = util_format_get_plane_height(res->overall_format, plane_slice, ptrans->box.he… in d3d12_adjust_transfer_dimensions_for_plane() 753 ptrans->box.x = util_format_get_plane_width(res->overall_format, plane_slice, ptrans->box.x); in d3d12_adjust_transfer_dimensions_for_plane() 754 ptrans->box.y = util_format_get_plane_height(res->overall_format, plane_slice, ptrans->box.y); in d3d12_adjust_transfer_dimensions_for_plane() 999 buf_loc.PlacedFootprint.Footprint.Width = ALIGN(trans->base.b.box.width, in fill_buffer_location() 1001 buf_loc.PlacedFootprint.Footprint.Height = ALIGN(trans->base.b.box.height, in fill_buffer_location() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_buffer_common.c | 281 const struct pipe_box *box, in r600_buffer_get_transfer() argument 296 transfer->b.b.box = *box; in r600_buffer_get_transfer() 318 const struct pipe_box *box, in r600_buffer_transfer_map() argument 327 if ((data = r600_compute_global_transfer_map(ctx, resource, level, usage, box, ptransfer))) in r600_buffer_transfer_map() 331 assert(box->x + box->width <= resource->width0); in r600_buffer_transfer_map() 353 !util_ranges_intersect(&rbuffer->valid_buffer_range, box->x, box->x + box->width)) { in r600_buffer_transfer_map() 359 box->x == 0 && box->width == resource->width0) { in r600_buffer_transfer_map() 381 r600_can_dma_copy_buffer(rctx, box->x, 0, box->width)) || in r600_buffer_transfer_map() 395 box->width + (box->x % R600_MAP_BUFFER_ALIGNMENT), in r600_buffer_transfer_map() 401 data += box->x % R600_MAP_BUFFER_ALIGNMENT; in r600_buffer_transfer_map() [all …]
|