summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-06-29 21:58:54 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2015-06-29 23:03:27 -0400
commit089e7c378838e7972d2c0588bb84a316fb929a59 (patch)
tree27f837174c4845ddc56519d9554469b1aad7ee8d /src/gallium/drivers/nouveau/nv30/nv30_miptree.c
parentdacf9efd6326bed1166750680bfaa4e173315eba (diff)
downloadexternal_mesa3d-089e7c378838e7972d2c0588bb84a316fb929a59.zip
external_mesa3d-089e7c378838e7972d2c0588bb84a316fb929a59.tar.gz
external_mesa3d-089e7c378838e7972d2c0588bb84a316fb929a59.tar.bz2
nv30: align transfer stride to 64, required by blit, sifm transfer impls
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30/nv30_miptree.c')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_miptree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
index 1a4b892..846dceb 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
+++ b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
@@ -242,8 +242,8 @@ nv30_miptree_transfer_map(struct pipe_context *pipe, struct pipe_resource *pt,
tx->base.level = level;
tx->base.usage = usage;
tx->base.box = *box;
- tx->base.stride = util_format_get_nblocksx(pt->format, box->width) *
- util_format_get_blocksize(pt->format);
+ tx->base.stride = align(util_format_get_nblocksx(pt->format, box->width) *
+ util_format_get_blocksize(pt->format), 64);
tx->base.layer_stride = util_format_get_nblocksy(pt->format, box->height) *
tx->base.stride;