From: Rob Clark Date: Mon, 2 Oct 2017 16:22:11 +0000 (-0400) Subject: freedreno/a5xx: fix missing restore state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f3eab03fe041bc28900a02f7ae503920753ea6b;p=mesa.git 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 Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c index eeddef52ae3..21931e9dfbe 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