diff options
author | Christoph Bumiller <[email protected]> | 2010-12-23 21:52:48 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-12-27 13:29:10 +0100 |
commit | abd08f4c014f24231505de2d3cb466a0901107e2 (patch) | |
tree | 10c8682ecebd8c3c6de2f91e60b457317074832a /src/gallium/drivers | |
parent | 780fbecc20ee100c2765b24cb6dc9e28ab96a2e0 (diff) |
nvc0: init miptree transfer layer stride
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_transfer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_transfer.c b/src/gallium/drivers/nvc0/nvc0_transfer.c index 138d157652b..82755113008 100644 --- a/src/gallium/drivers/nvc0/nvc0_transfer.c +++ b/src/gallium/drivers/nvc0/nvc0_transfer.c @@ -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); |