Mesa (master): nv30: align transfer stride to 64, required by blit, sifm transfer impls
Ilia Mirkin
imirkin at kemper.freedesktop.org
Tue Jun 30 03:19:36 UTC 2015
Module: Mesa
Branch: master
Commit: 089e7c378838e7972d2c0588bb84a316fb929a59
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=089e7c378838e7972d2c0588bb84a316fb929a59
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Mon Jun 29 21:58:54 2015 -0400
nv30: align transfer stride to 64, required by blit, sifm transfer impls
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nv30/nv30_miptree.c | 4 ++--
1 file 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;
More information about the mesa-commit
mailing list