mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 08:30:34 +01:00
freedreno/a6xx: WFI before RB_CCU_CNTL writes
This seems to be in a block of non buffered/context regs. Blob always WFIs before write, so probably a good idea. Annoyingly, compared to ealier gens, it is a bit harder to tell from the register offset whether it is a buffered reg, it isn't as simple as everything below 0x2000, it seems. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
parent
8a02ca807d
commit
1d002cfade
2 changed files with 4 additions and 0 deletions
|
|
@ -266,6 +266,8 @@ fd6_clear_lrz(struct fd_batch *batch, struct fd_resource *zsbuf, double depth)
|
|||
OUT_RING(ring, A2XX_CP_SET_MARKER_0_MODE(RM6_BYPASS));
|
||||
emit_marker6(ring, 7);
|
||||
|
||||
OUT_WFI5(ring);
|
||||
|
||||
OUT_PKT4(ring, REG_A6XX_RB_CCU_CNTL, 1);
|
||||
OUT_RING(ring, 0x10000000);
|
||||
|
||||
|
|
|
|||
|
|
@ -1143,6 +1143,8 @@ t7 opcode: CP_WAIT_FOR_IDLE (26) (1 dwords)
|
|||
0000000500024068: 70268000
|
||||
*/
|
||||
|
||||
OUT_WFI5(ring);
|
||||
|
||||
WRITE(REG_A6XX_RB_CCU_CNTL, 0x7c400004);
|
||||
WRITE(REG_A6XX_RB_UNKNOWN_8E04, 0x00100000);
|
||||
WRITE(REG_A6XX_SP_UNKNOWN_AE04, 0x8);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue