Mesa (master): v3d: Set up the right stride for raster TFU.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Dec 15 03:29:15 UTC 2018


Module: Mesa
Branch: master
Commit: 485df2574e8412fb2d417d00ab80f7ea12d66d0f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=485df2574e8412fb2d417d00ab80f7ea12d66d0f

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Dec 13 15:46:51 2018 -0800

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 25f4c61c62..ae0812da8e 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:




More information about the mesa-commit mailing list