From: Ilia Mirkin Date: Tue, 30 Jun 2015 01:58:54 +0000 (-0400) Subject: nv30: align transfer stride to 64, required by blit, sifm transfer impls X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=089e7c378838e7972d2c0588bb84a316fb929a59;p=mesa.git nv30: align transfer stride to 64, required by blit, sifm transfer impls Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c index 1a4b8929c0f..846dcebc3a5 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;