freedreno/a6xx: Don't write REG_A6XX_RB_SRGB_CNTL in restore
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 16 Jun 2020 18:38:06 +0000 (11:38 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 19:25:34 +0000 (19:25 +0000)
We configure this as part of MRT set up.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5552>

src/gallium/drivers/freedreno/a6xx/fd6_emit.c

index 70c464b4afe17076239c1cc25996bf15ce3f3ba5..ed6dcf3239e3350f18bcb3d54ae59b78f7fe2394 100644 (file)
@@ -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);