summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_driver.c7
-rw-r--r--src/radeon_reg.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 32cb307e..74245777 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -635,10 +635,13 @@ void RADEONOUTMC(ScrnInfoPtr pScrn, int addr, uint32_t data)
static Bool avivo_get_mc_idle(ScrnInfoPtr pScrn)
{
RADEONInfoPtr info = RADEONPTR(pScrn);
+ unsigned char *RADEONMMIO = info->MMIO;
if (info->ChipFamily >= CHIP_FAMILY_R600) {
- /* no idea where this is on r600 yet */
- return TRUE;
+ if (INREG(R600_SRBM_STATUS) & 0x3f00)
+ return FALSE;
+ else
+ return TRUE;
} else if (info->ChipFamily == CHIP_FAMILY_RV515) {
if (INMC(pScrn, RV515_MC_STATUS) & RV515_MC_STATUS_IDLE)
return TRUE;
diff --git a/src/radeon_reg.h b/src/radeon_reg.h
index 7b8840bf..c4177cca 100644
--- a/src/radeon_reg.h
+++ b/src/radeon_reg.h
@@ -3482,6 +3482,8 @@
# define R600_CHANSIZE (1 << 7)
# define R600_CHANSIZE_OVERRIDE (1 << 10)
+#define R600_SRBM_STATUS 0x0e50
+
#define AVIVO_HDP_FB_LOCATION 0x134
#define AVIVO_VGA_RENDER_CONTROL 0x0300