summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2014-05-21 15:41:25 -0400
committerRob Clark <robclark@freedesktop.org>2014-05-21 16:11:46 -0400
commitb81de5352dc8f3db01888175561b816c0d92716b (patch)
tree7e692a814dc198c413cf12a98250d8fd0e144387 /src/gallium
parentb11d345ab02ad78b17439179d794c91aa229d83c (diff)
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 <robclark@freedesktop.org>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_gmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
index 7db049ffccd..0c9dd996ab6 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;