• Home
  • Raw
  • Download

Lines Matching refs:box

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 < minify(p_res->width0, level) || in can_fast_clear_color()
86 box->height < minify(p_res->height0, level)) { in can_fast_clear_color()
214 const struct pipe_box *box, in fast_clear_color() argument
234 layer >= box->z && in fast_clear_color()
235 layer < box->z + box->depth) { in fast_clear_color()
288 iris_resource_get_aux_state(res, level, box->z); in fast_clear_color()
289 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color()
325 level, box->z, box->depth, in fast_clear_color()
326 box->x, box->y, box->x + box->width, in fast_clear_color()
327 box->y + box->height); in fast_clear_color()
334 iris_resource_set_aux_state(ice, res, level, box->z, in fast_clear_color()
335 box->depth, ISL_AUX_STATE_CLEAR); in fast_clear_color()
345 const struct pipe_box *box, in clear_color() argument
366 util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + box->width); in clear_color()
370 bool can_fast_clear = can_fast_clear_color(ice, p_res, level, box, in clear_color()
374 fast_clear_color(ice, res, level, box, format, color); in clear_color()
381 iris_resource_prepare_render(ice, res, level, box->z, box->depth, in clear_color()
399 level, box->z, box->depth, box->x, box->y, in clear_color()
400 box->x + box->width, box->y + box->height, in clear_color()
411 box->z, box->depth, aux_usage); in clear_color()
418 const struct pipe_box *box, in can_fast_clear_depth() argument
431 if (box->x > 0 || box->y > 0 || in can_fast_clear_depth()
432 box->width < u_minify(p_res->width0, level) || in can_fast_clear_depth()
433 box->height < u_minify(p_res->height0, level)) { in can_fast_clear_depth()
450 level, box->z, box->x, box->y, in can_fast_clear_depth()
451 box->x + box->width, in can_fast_clear_depth()
452 box->y + box->height)) { in can_fast_clear_depth()
463 const struct pipe_box *box, in fast_clear_depth() argument
479 layer >= box->z && in fast_clear_depth()
480 layer < box->z + box->depth) { in fast_clear_depth()
528 for (unsigned l = 0; l < box->depth; l++) { in fast_clear_depth()
530 iris_resource_get_aux_state(res, level, box->z + l); in fast_clear_depth()
537 box->z + l, 1, ISL_AUX_OP_FAST_CLEAR, in fast_clear_depth()
542 iris_resource_set_aux_state(ice, res, level, box->z, box->depth, in fast_clear_depth()
552 const struct pipe_box *box, in clear_depth_stencil() argument
581 can_fast_clear_depth(ice, z_res, level, box, render_condition_enabled, in clear_depth_stencil()
583 fast_clear_depth(ice, z_res, level, box, depth); in clear_depth_stencil()
601 iris_resource_prepare_render(ice, z_res, level, box->z, box->depth, in clear_depth_stencil()
610 iris_resource_prepare_access(ice, stencil_res, level, 1, box->z, in clear_depth_stencil()
611 box->depth, stencil_res->aux.usage, false); in clear_depth_stencil()
625 level, box->z, box->depth, in clear_depth_stencil()
626 box->x, box->y, in clear_depth_stencil()
627 box->x + box->width, in clear_depth_stencil()
628 box->y + box->height, in clear_depth_stencil()
639 iris_resource_finish_render(ice, z_res, level, box->z, box->depth, in clear_depth_stencil()
644 iris_resource_finish_write(ice, stencil_res, level, box->z, box->depth, in clear_depth_stencil()
667 struct pipe_box box = { in iris_clear() local
673 box.x = scissor_state->minx; in iris_clear()
674 box.y = scissor_state->miny; in iris_clear()
675 box.width = MIN2(box.width, scissor_state->maxx - scissor_state->minx); in iris_clear()
676 box.height = MIN2(box.height, scissor_state->maxy - scissor_state->miny); in iris_clear()
682 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear()
683 box.z = psurf->u.tex.first_layer, in iris_clear()
684 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in iris_clear()
695 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear()
696 box.z = psurf->u.tex.first_layer, in iris_clear()
698 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear()
715 const struct pipe_box *box, in iris_clear_texture() argument
735 clear_depth_stencil(ice, p_res, level, box, true, true, true, in iris_clear_texture()
765 clear_color(ice, p_res, level, box, true, format, in iris_clear_texture()
785 struct pipe_box box = { in iris_clear_render_target() local
794 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear_render_target()
816 struct pipe_box box = { in iris_clear_depth_stencil() local
827 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear_depth_stencil()