Lines Matching full:box
69 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()
176 const struct pipe_box *box, in fast_clear_color() argument
196 layer >= box->z && in fast_clear_color()
197 layer < box->z + box->depth) { in fast_clear_color()
250 iris_resource_get_aux_state(res, level, box->z); in fast_clear_color()
251 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color()
349 level, box->z, box->depth, in fast_clear_color()
350 box->x, box->y, box->x + box->width, in fast_clear_color()
351 box->y + box->height); in fast_clear_color()
362 iris_resource_set_aux_state(ice, res, level, box->z, in fast_clear_color()
363 box->depth, ISL_AUX_STATE_CLEAR); in fast_clear_color()
373 const struct pipe_box *box, in clear_color() argument
394 util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + box->width); in clear_color()
398 bool can_fast_clear = can_fast_clear_color(ice, p_res, level, box, in clear_color()
402 fast_clear_color(ice, res, level, box, color); in clear_color()
409 iris_resource_prepare_render(ice, res, format, level, box->z, box->depth, in clear_color()
427 level, box->z, box->depth, box->x, box->y, in clear_color()
428 box->x + box->width, box->y + box->height, in clear_color()
437 box->z, box->depth, aux_usage); in clear_color()
444 const struct pipe_box *box, in can_fast_clear_depth() argument
457 if (box->x > 0 || box->y > 0 || in can_fast_clear_depth()
458 box->width < u_minify(p_res->width0, level) || in can_fast_clear_depth()
459 box->height < u_minify(p_res->height0, level)) { in can_fast_clear_depth()
476 level, box->z, box->x, box->y, in can_fast_clear_depth()
477 box->x + box->width, in can_fast_clear_depth()
478 box->y + box->height)) { in can_fast_clear_depth()
489 const struct pipe_box *box, in fast_clear_depth() argument
505 layer >= box->z && in fast_clear_depth()
506 layer < box->z + box->depth) { in fast_clear_depth()
558 for (unsigned l = 0; l < box->depth; l++) { in fast_clear_depth()
560 iris_resource_get_aux_state(res, level, box->z + l); in fast_clear_depth()
567 box->z + l, 1, ISL_AUX_OP_FAST_CLEAR, in fast_clear_depth()
572 iris_resource_set_aux_state(ice, res, level, box->z, box->depth, in fast_clear_depth()
582 const struct pipe_box *box, in clear_depth_stencil() argument
611 can_fast_clear_depth(ice, z_res, level, box, render_condition_enabled, in clear_depth_stencil()
613 fast_clear_depth(ice, z_res, level, box, depth); in clear_depth_stencil()
631 box->z, box->depth, aux_usage); in clear_depth_stencil()
639 iris_resource_prepare_access(ice, stencil_res, level, 1, box->z, in clear_depth_stencil()
640 box->depth, stencil_res->aux.usage, false); in clear_depth_stencil()
654 level, box->z, box->depth, in clear_depth_stencil()
655 box->x, box->y, in clear_depth_stencil()
656 box->x + box->width, in clear_depth_stencil()
657 box->y + box->height, in clear_depth_stencil()
667 iris_resource_finish_render(ice, z_res, level, box->z, box->depth, in clear_depth_stencil()
672 iris_resource_finish_write(ice, stencil_res, level, box->z, box->depth, in clear_depth_stencil()
695 struct pipe_box box = { in iris_clear() local
701 box.x = scissor_state->minx; in iris_clear()
702 box.y = scissor_state->miny; in iris_clear()
703 box.width = MIN2(box.width, scissor_state->maxx - scissor_state->minx); in iris_clear()
704 box.height = MIN2(box.height, scissor_state->maxy - scissor_state->miny); in iris_clear()
710 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear()
711 box.z = psurf->u.tex.first_layer, in iris_clear()
712 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in iris_clear()
723 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear()
724 box.z = psurf->u.tex.first_layer, in iris_clear()
726 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear()
743 const struct pipe_box *box, in iris_clear_texture() argument
763 clear_depth_stencil(ice, p_res, level, box, true, true, true, in iris_clear_texture()
793 clear_color(ice, p_res, level, box, true, format, in iris_clear_texture()
813 struct pipe_box box = { in iris_clear_render_target() local
822 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear_render_target()
844 struct pipe_box box = { in iris_clear_depth_stencil() local
855 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear_depth_stencil()