From: Eric Anholt Date: Thu, 13 Dec 2018 23:46:51 +0000 (-0800) Subject: v3d: Set up the right stride for raster TFU. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=485df2574e8412fb2d417d00ab80f7ea12d66d0f;p=mesa.git v3d: Set up the right stride for raster TFU. I didn't have any raster images in the generatemipmap path, so the pixels-vs-bytes mixup didn't matter here. --- diff --git a/src/gallium/drivers/v3d/v3d_blit.c b/src/gallium/drivers/v3d/v3d_blit.c index 25f4c61c62d..ae0812da8e7 100644 --- a/src/gallium/drivers/v3d/v3d_blit.c +++ b/src/gallium/drivers/v3d/v3d_blit.c @@ -404,7 +404,7 @@ v3d_generate_mipmap(struct pipe_context *pctx, (2 * v3d_utile_height(rsc->cpp))); break; case VC5_TILING_RASTER: - tfu.iis |= base_slice->stride; + tfu.iis |= base_slice->stride / rsc->cpp; break; case VC5_TILING_LINEARTILE: case VC5_TILING_UBLINEAR_1_COLUMN: