Module: Mesa
Branch: 10.2
Commit: f96e3e535140c8c3f5b88aec37152b6f3fb40386
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f96e3e535140c8c3f5b88aec37152b6f3fb40386

Author: Rob Clark <robcl...@freedesktop.org>
Date:   Wed May 21 15:41:25 2014 -0400

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 <robcl...@freedesktop.org>
(cherry picked from commit b81de5352dc8f3db01888175561b816c0d92716b)

---

 src/gallium/drivers/freedreno/a3xx/fd3_gmem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to