diff options
-rw-r--r-- | src/r6xx_accel.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/r6xx_accel.c b/src/r6xx_accel.c index c0e3a2bb..bebab883 100644 --- a/src/r6xx_accel.c +++ b/src/r6xx_accel.c @@ -365,16 +365,11 @@ cp_set_surface_sync(ScrnInfoPtr pScrn, drmBufPtr ib, uint32_t sync_type, uint32_ else cp_coher_size = ((size + 255) >> 8); - ereg (ib, CP_COHER_CNTL, sync_type); - ereg (ib, CP_COHER_SIZE, cp_coher_size); - ereg (ib, CP_COHER_BASE, (mc_addr >> 8)); - pack3 (ib, IT_WAIT_REG_MEM, 6); - e32 (ib, IT_WAIT_REG | IT_WAIT_EQ); - e32 (ib, IT_WAIT_ADDR(CP_COHER_STATUS)); - e32 (ib, 0); - e32 (ib, 0); // Ref value - e32 (ib, STATUS_bit); // Ref mask - e32 (ib, 10); // Wait interval + pack3 (ib, IT_SURFACE_SYNC, 4); + e32 (ib, sync_type); + e32 (ib, cp_coher_size); + e32 (ib, (mc_addr >> 8)); + e32 (ib, 10); /* poll interval */ } /* inserts a wait for vline in the command stream */ |