From 2580e4f921036bd63aa74d8343d1e05818ecf6cd Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Tue, 16 Jun 2020 11:38:06 -0700 Subject: [PATCH] freedreno/a6xx: Don't write REG_A6XX_RB_SRGB_CNTL in restore We configure this as part of MRT set up. Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_emit.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c index 70c464b4afe..ed6dcf3239e 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c @@ -1159,9 +1159,6 @@ fd6_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring) WRITE(REG_A6XX_RB_UNKNOWN_8811, 0x00000010); WRITE(REG_A6XX_PC_MODE_CNTL, 0x1f); - OUT_PKT4(ring, REG_A6XX_RB_SRGB_CNTL, 1); - OUT_RING(ring, 0); - WRITE(REG_A6XX_GRAS_UNKNOWN_8101, 0); WRITE(REG_A6XX_GRAS_SAMPLE_CNTL, 0); WRITE(REG_A6XX_GRAS_UNKNOWN_8110, 0x2); -- 2.30.2