From: Kristian H. Kristensen Date: Fri, 11 Oct 2019 19:17:54 +0000 (-0700) Subject: freedreno/a6xx: Trim a few regs from fd6_emit_restore() X-Git-Tag: upstream/19.3.0~907 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f335a6663d0dd93f5240cefd3783af50c4dcbb47;p=platform%2Fupstream%2Fmesa.git freedreno/a6xx: Trim a few regs from fd6_emit_restore() 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 --- diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c index eb4bb31..b732372 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c @@ -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);