From: Rob Clark Date: Wed, 21 May 2014 19:41:25 +0000 (-0400) Subject: freedreno/a3xx: fix depth/stencil gmem restore X-Git-Tag: upstream/10.3~1932 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b81de5352dc8f3db01888175561b816c0d92716b;p=platform%2Fupstream%2Fmesa.git freedreno/a3xx: fix depth/stencil gmem restore 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 --- diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c index 7db049f..0c9dd99 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c @@ -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;