freedreno/a3xx: fix depth/stencil gmem restore
authorRob Clark <robclark@freedesktop.org>
Wed, 21 May 2014 19:41:25 +0000 (15:41 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 21 May 2014 20:11:46 +0000 (16:11 -0400)
We already multiply by bytes per pixel for this, so f3ba7611 broke
mem2gmem for depth/stencil.  Drop the now-redundant mutiply by cpp.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c

index 7db049ffccd1ed077316416001e82b06f65b170f..0c9dd996ab60e8b34b65fb262942a9ac63ac2725 100644 (file)
@@ -82,7 +82,7 @@ emit_mrt(struct fd_ringbuffer *ring, unsigned nr_bufs,
                                stride = bin_w * rsc->cpp;
 
                                if (bases) {
-                                       base = bases[i] * rsc->cpp;
+                                       base = bases[i];
                                }
                        } else {
                                stride = slice->pitch * rsc->cpp;