freedreno/a5xx: mem2gmem is read-only for BO
authorRob Clark <robdclark@gmail.com>
Thu, 5 Oct 2017 21:05:03 +0000 (17:05 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 26 Oct 2017 12:39:32 +0000 (08:39 -0400)
This should be OUT_RELOC() since the operation isn't writing to the
buffer.  Technically it doesn't matter much currently, since we'd
anyways to a gmem2mem later.  But that will change.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_gmem.c

index d8d79217d5b25682e13163db1849e884dde9aed9..16c2f825d54d369f4cd38fecd33a6a9e84f5debb 100644 (file)
@@ -547,7 +547,7 @@ fd5_emit_tile_mem2gmem(struct fd_batch *batch, struct fd_tile *tile)
                                A5XX_RB_MRT_BUF_INFO_COLOR_SWAP(WZYX));
                OUT_RING(ring, A5XX_RB_MRT_PITCH(slice->pitch * rsc->cpp));
                OUT_RING(ring, A5XX_RB_MRT_ARRAY_PITCH(slice->size0));
-               OUT_RELOCW(ring, rsc->bo, 0, 0, 0);  /* BASE_LO/HI */
+               OUT_RELOC(ring, rsc->bo, 0, 0, 0);  /* BASE_LO/HI */
 
                emit_mem2gmem_surf(batch, ctx->gmem.zsbuf_base[0], pfb->zsbuf, BLIT_MRT0);
        }