Lines Matching full:box
70 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 < minify(p_res->width0, level) || in can_fast_clear_color()
85 box->height < minify(p_res->height0, level)) { in can_fast_clear_color()
203 const struct pipe_box *box, in fast_clear_color() argument
241 layer >= box->z && in fast_clear_color()
242 layer < box->z + box->depth) { in fast_clear_color()
287 iris_resource_get_aux_state(res, level, box->z); in fast_clear_color()
288 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color()
322 level, box->z, box->depth, in fast_clear_color()
323 box->x, box->y, box->x + box->width, in fast_clear_color()
324 box->y + box->height); in fast_clear_color()
331 iris_resource_set_aux_state(ice, res, level, box->z, in fast_clear_color()
332 box->depth, ISL_AUX_STATE_CLEAR); in fast_clear_color()
342 const struct pipe_box *box, in clear_color() argument
363 util_range_add(&res->base, &res->valid_buffer_range, box->x, box->x + box->width); in clear_color()
367 bool can_fast_clear = can_fast_clear_color(ice, p_res, level, box, in clear_color()
370 fast_clear_color(ice, res, level, box, format, color, in clear_color()
380 box->z, box->depth, aux_usage); in clear_color()
397 level, box->z, box->depth, box->x, box->y, in clear_color()
398 box->x + box->width, box->y + box->height, in clear_color()
409 box->z, box->depth, aux_usage); in clear_color()
416 const struct pipe_box *box, in can_fast_clear_depth() argument
428 if (box->x > 0 || box->y > 0 || in can_fast_clear_depth()
429 box->width < u_minify(p_res->width0, level) || in can_fast_clear_depth()
430 box->height < u_minify(p_res->height0, level)) { in can_fast_clear_depth()
438 level, box->z, box->x, box->y, in can_fast_clear_depth()
439 box->x + box->width, in can_fast_clear_depth()
440 box->y + box->height); in can_fast_clear_depth()
447 const struct pipe_box *box, in fast_clear_depth() argument
499 layer >= box->z && in fast_clear_depth()
500 layer < box->z + box->depth) { in fast_clear_depth()
531 for (unsigned l = 0; l < box->depth; l++) { in fast_clear_depth()
533 iris_resource_get_aux_state(res, level, box->z + l); in fast_clear_depth()
540 box->z + l, 1, ISL_AUX_OP_FAST_CLEAR, in fast_clear_depth()
545 iris_resource_set_aux_state(ice, res, level, box->z, box->depth, in fast_clear_depth()
555 const struct pipe_box *box, in clear_depth_stencil() argument
584 can_fast_clear_depth(ice, z_res, level, box, depth)) { in clear_depth_stencil()
585 fast_clear_depth(ice, z_res, level, box, depth); in clear_depth_stencil()
600 iris_resource_prepare_depth(ice, batch, z_res, level, box->z, box->depth); in clear_depth_stencil()
609 iris_resource_prepare_access(ice, stencil_res, level, 1, box->z, in clear_depth_stencil()
610 box->depth, stencil_res->aux.usage, false); in clear_depth_stencil()
624 level, box->z, box->depth, in clear_depth_stencil()
625 box->x, box->y, in clear_depth_stencil()
626 box->x + box->width, in clear_depth_stencil()
627 box->y + box->height, in clear_depth_stencil()
639 box->z, box->depth, true); in clear_depth_stencil()
643 iris_resource_finish_write(ice, stencil_res, level, box->z, box->depth, in clear_depth_stencil()
666 struct pipe_box box = { in iris_clear() local
672 box.x = scissor_state->minx; in iris_clear()
673 box.y = scissor_state->miny; in iris_clear()
674 box.width = MIN2(box.width, scissor_state->maxx - scissor_state->minx); in iris_clear()
675 box.height = MIN2(box.height, scissor_state->maxy - scissor_state->miny); in iris_clear()
681 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear()
682 box.z = psurf->u.tex.first_layer, in iris_clear()
683 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in iris_clear()
694 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear()
695 box.z = psurf->u.tex.first_layer, in iris_clear()
697 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear()
714 const struct pipe_box *box, in iris_clear_texture() argument
738 clear_depth_stencil(ice, p_res, level, box, true, true, true, in iris_clear_texture()
768 clear_color(ice, p_res, level, box, true, format, in iris_clear_texture()
788 struct pipe_box box = { in iris_clear_render_target() local
797 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear_render_target()
819 struct pipe_box box = { in iris_clear_depth_stencil() local
830 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear_depth_stencil()