summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-13 15:46:51 -0800
committerEric Anholt <[email protected]>2018-12-14 17:48:01 -0800
commit485df2574e8412fb2d417d00ab80f7ea12d66d0f (patch)
treea7568862903ddc93e7cdab77eb6f2c753699955f /src
parente731d537161c33aebcfd8a7aca6154919ca4c60f (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/v3d/v3d_blit.c2
1 files changed, 1 insertions, 1 deletions
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: