Mesa (master): freedreno/a5xx: fix missing restore state

Rob Clark robclark at kemper.freedesktop.org
Mon Oct 2 17:18:19 UTC 2017


Module: Mesa
Branch: master
Commit: 7f3eab03fe041bc28900a02f7ae503920753ea6b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f3eab03fe041bc28900a02f7ae503920753ea6b

Author: Rob Clark <robdclark at gmail.com>
Date:   Mon Oct  2 12:22:11 2017 -0400

freedreno/a5xx: fix missing restore state

RB_CLEAR_CNTL seems to be in a funny state after boot (at least on
8x96/a530).

Cc: 17.2 <mesa-stable at lists.freedesktop.org>
Signed-off-by: Rob Clark <robdclark at gmail.com>

---

 src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
index eeddef52ae..21931e9dfb 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
@@ -1048,6 +1048,9 @@ t7              opcode: CP_WAIT_FOR_IDLE (26) (1 dwords)
 	OUT_RING(ring, 0x00000000);
 	OUT_RING(ring, 0x00000000);
 	OUT_RING(ring, 0x00000000);
+
+	OUT_PKT4(ring, REG_A5XX_RB_CLEAR_CNTL, 1);
+	OUT_RING(ring, 0x00000000);
 }
 
 static void




More information about the mesa-commit mailing list