diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-20 09:13:24 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-20 09:13:24 +0100 |
commit | 3cfa3a5c8daf03aaad6fc30d275709f6eb717d29 (patch) | |
tree | 54100f109258942afaad81d1e4cfcf7642a80202 /src/radeon_dri.c | |
parent | e174d8df8c801fad95e5f79cff69187c200bee6e (diff) |
radeon: Unify code to release the CP.
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r-- | src/radeon_dri.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c index ee6192e9..7ebf958d 100644 --- a/src/radeon_dri.c +++ b/src/radeon_dri.c @@ -409,13 +409,7 @@ static void RADEONLeaveServer(ScreenPtr pScreen) /* The CP is always running, but if we've generated any CP commands * we must flush them to the kernel module now. */ - if (info->CPInUse) { - RADEON_FLUSH_CACHE(); - RADEON_WAIT_UNTIL_IDLE(); - RADEONCPReleaseIndirect(pScrn); - - info->CPInUse = FALSE; - } + RADEONCP_RELEASE(pScrn, info); #ifdef USE_EXA info->engineMode = EXA_ENGINEMODE_UNKNOWN; @@ -1703,13 +1697,7 @@ void RADEONDRIStop(ScreenPtr pScreen) /* If we've generated any CP commands, we must flush them to the * kernel module now. */ - if (info->CPInUse) { - RADEON_FLUSH_CACHE(); - RADEON_WAIT_UNTIL_IDLE(); - RADEONCPReleaseIndirect(pScrn); - - info->CPInUse = FALSE; - } + RADEONCP_RELEASE(pScrn, info); RADEONCP_STOP(pScrn, info); } info->directRenderingInited = FALSE; |