mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 07:08:26 +02:00
nvc0: init miptree transfer layer stride
This commit is contained in:
parent
780fbecc20
commit
abd08f4c01
1 changed files with 2 additions and 1 deletions
|
|
@ -269,6 +269,7 @@ nvc0_miptree_transfer_new(struct pipe_context *pctx,
|
|||
tx->nblocksy = util_format_get_nblocksy(res->format, box->height);
|
||||
|
||||
tx->base.stride = tx->nblocksx * util_format_get_blocksize(res->format);
|
||||
tx->base.layer_stride = tx->nblocksy * tx->base.stride;
|
||||
|
||||
w = u_minify(res->width0, level);
|
||||
h = u_minify(res->height0, level);
|
||||
|
|
@ -287,7 +288,7 @@ nvc0_miptree_transfer_new(struct pipe_context *pctx,
|
|||
tx->rect[0].pitch = lvl->pitch;
|
||||
tx->rect[0].domain = NOUVEAU_BO_VRAM;
|
||||
|
||||
size = tx->nblocksy * tx->base.stride;
|
||||
size = tx->base.layer_stride;
|
||||
|
||||
ret = nouveau_bo_new(dev, NOUVEAU_BO_GART | NOUVEAU_BO_MAP, 0,
|
||||
size * tx->base.box.depth, &tx->rect[1].bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue