From 485df2574e8412fb2d417d00ab80f7ea12d66d0f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 13 Dec 2018 15:46:51 -0800 Subject: [PATCH] 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. --- src/gallium/drivers/v3d/v3d_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2