Lines Matching defs:box
932 zink_bo_commit(struct zink_screen *screen, struct zink_resource *res, unsigned level, struct pipe_box *box, bool commit, VkSemaphore *sem)
944 ok = buffer_bo_commit(screen, res, box->x, box->width, commit, sem);
956 unsigned nwidth = DIV_ROUND_UP(box->width, gwidth);
957 unsigned nheight = DIV_ROUND_UP(box->height, gheight);
958 unsigned ndepth = DIV_ROUND_UP(box->depth, gdepth);
960 (box->width % gwidth) ? box->width % gwidth : gwidth,
961 (box->height % gheight) ? box->height % gheight : gheight,
962 (box->depth % gdepth) ? box->depth % gdepth : gdepth
996 (d + (box->z / gdepth)) * ((MAX2(res->base.b.width0 >> level, 1) / gwidth) * (MAX2(res->base.b.height0 >> level, 1) / gheight)) +
997 (h + (box->y / gheight)) * (MAX2(res->base.b.width0 >> level, 1) / gwidth) +
998 (w + (box->x / gwidth));