freedreno/a6xx: Trim a few regs from fd6_emit_restore()
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 11 Oct 2019 19:17:54 +0000 (12:17 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Thu, 17 Oct 2019 20:43:53 +0000 (13:43 -0700)
We know what these do an either write them in the program stateobj or
don't need to write them.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c

index eb4bb3160af7c5197e1a5be0663678abd19dd92c..b732372f055afa5d954ae62cd1a4b8a4a11ff478 100644 (file)
@@ -1191,16 +1191,6 @@ fd6_emit_restore(struct fd_batch *batch, struct fd_ringbuffer *ring)
        OUT_PKT4(ring, REG_A6XX_HLSQ_UPDATE_CNTL, 1);
        OUT_RING(ring, 0xfffff);
 
-/*
-t7              opcode: CP_PERFCOUNTER_ACTION (50) (4 dwords)
-0000000500024048:               70d08003 00000000 001c5000 00000005
-t7              opcode: CP_PERFCOUNTER_ACTION (50) (4 dwords)
-0000000500024058:               70d08003 00000010 001c7000 00000005
-
-t7              opcode: CP_WAIT_FOR_IDLE (26) (1 dwords)
-0000000500024068:               70268000
-*/
-
        OUT_WFI5(ring);
 
        WRITE(REG_A6XX_RB_CCU_CNTL, 0x7c400004);
@@ -1235,10 +1225,6 @@ t7              opcode: CP_WAIT_FOR_IDLE (26) (1 dwords)
        WRITE(REG_A6XX_GRAS_SAMPLE_CNTL, 0);
        WRITE(REG_A6XX_GRAS_UNKNOWN_8110, 0x2);
 
-       WRITE(REG_A6XX_RB_RENDER_CONTROL0, 0x401);
-       WRITE(REG_A6XX_RB_RENDER_CONTROL1, 0);
-       WRITE(REG_A6XX_RB_FS_OUTPUT_CNTL0, 0);
-       WRITE(REG_A6XX_RB_SAMPLE_CNTL, 0);
        WRITE(REG_A6XX_RB_UNKNOWN_8818, 0);
        WRITE(REG_A6XX_RB_UNKNOWN_8819, 0);
        WRITE(REG_A6XX_RB_UNKNOWN_881A, 0);
@@ -1314,12 +1300,6 @@ t7              opcode: CP_WAIT_FOR_IDLE (26) (1 dwords)
        OUT_PKT4(ring, REG_A6XX_VPC_SO_BUF_CNTL, 1);
        OUT_RING(ring, 0x00000000);   /* VPC_SO_BUF_CNTL */
 
-       OUT_PKT4(ring, REG_A6XX_SP_HS_CTRL_REG0, 1);
-       OUT_RING(ring, 0x00000000);
-
-       OUT_PKT4(ring, REG_A6XX_SP_GS_CTRL_REG0, 1);
-       OUT_RING(ring, 0x00000000);
-
        OUT_PKT4(ring, REG_A6XX_GRAS_LRZ_CNTL, 1);
        OUT_RING(ring, 0x00000000);