Home | History | Annotate | Download | only in nv50

Lines Matching full:rect

10    struct nv50_m2mf_rect rect[2];
16 nv50_m2mf_rect_setup(struct nv50_m2mf_rect *rect,
24 rect->bo = mt->base.bo;
25 rect->domain = mt->base.domain;
26 rect->base = mt->level[l].offset;
27 rect->pitch = mt->level[l].pitch;
29 rect->width = w << mt->ms_x;
30 rect->height = h << mt->ms_y;
31 rect->x = x << mt->ms_x;
32 rect->y = y << mt->ms_y;
34 rect->width = util_format_get_nblocksx(res->format, w);
35 rect->height = util_format_get_nblocksy(res->format, h);
36 rect->x = util_format_get_nblocksx(res->format, x);
37 rect->y = util_format_get_nblocksy(res->format, y);
39 rect->tile_mode = mt->level[l].tile_mode;
40 rect->cpp = util_format_get_blocksize(res->format);
43 rect->z = z;
44 rect->depth = u_minify(res->depth0, l);
46 rect->base += z * mt->layer_stride;
47 rect->z = 0;
48 rect->depth = 1;
287 nv50_m2mf_rect_setup(&tx->rect[0], res, level, box->x, box->y, box->z);
292 size * tx->base.box.depth, NULL, &tx->rect[1].bo);
298 tx->rect[1].cpp = tx->rect[0].cpp;
299 tx->rect[1].width = tx->nblocksx;
300 tx->rect[1].height = tx->nblocksy;
301 tx->rect[1].depth = 1;
302 tx->rect[1].pitch = tx->base.stride;
303 tx->rect[1].domain = NOUVEAU_BO_GART;
306 unsigned base = tx->rect[0].base;
307 unsigned z = tx->rect[0].z;
310 nv50_m2mf_transfer_rect(nv50, &tx->rect[1], &tx->rect[0],
313 tx->rect[0].z++;
315 tx->rect[0].base += mt->layer_stride;
316 tx->rect[1].base += size;
318 tx->rect[0].z = z;
319 tx->rect[0].base = base;
320 tx->rect[1].base = 0;
337 nv50_m2mf_transfer_rect(nv50, &tx->rect[0], &tx->rect[1],
340 tx->rect[0].z++;
342 tx->rect[0].base += mt->layer_stride;
343 tx->rect[1].base += tx->nblocksy * tx->base.stride;
347 nouveau_bo_ref(NULL, &tx->rect[1].bo);
362 if (tx->rect[1].bo->map)
363 return tx->rect[1].bo->map;
370 ret = nouveau_bo_map(tx->rect[1].bo, flags, screen->base.client);
373 return tx->rect[1].bo->map;