v3d: Set up the right stride for raster TFU.
authorEric Anholt <eric@anholt.net>
Thu, 13 Dec 2018 23:46:51 +0000 (15:46 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 15 Dec 2018 01:48:01 +0000 (17:48 -0800)
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

index 25f4c61c62d108300e578825c44487bfac126468..ae0812da8e722f127f8596132c4fa9c1410e9005 100644 (file)
@@ -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: