diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-20 09:12:51 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-20 09:12:51 +0100 |
commit | e174d8df8c801fad95e5f79cff69187c200bee6e (patch) | |
tree | bc8f15c65e5fd4e810297f74c8af9460eed4d8c2 /src | |
parent | 113fb4b61e709a9b54fc2ef73efce06011e771c1 (diff) |
radeon: Minor BlockHandler cleanups.
Don't flush indirect buffer in BlockHandler; it's done in LeaveServer.
Also set the EXA engine mode to unknown only at the end.
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_driver.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 4842542..9ed0d6c 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3404,14 +3404,6 @@ static void RADEONBlockHandler(int i, pointer blockData, ScrnInfoPtr pScrn = xf86Screens[i]; RADEONInfoPtr info = RADEONPTR(pScrn); -#ifdef XF86DRI - if (info->directRenderingInited) { - FLUSH_RING(); - } -#endif -#ifdef USE_EXA - info->engineMode = EXA_ENGINEMODE_UNKNOWN; -#endif pScreen->BlockHandler = info->BlockHandler; (*pScreen->BlockHandler) (i, blockData, pTimeout, pReadmask); pScreen->BlockHandler = RADEONBlockHandler; @@ -3423,6 +3415,10 @@ static void RADEONBlockHandler(int i, pointer blockData, if(info->RenderCallback) (*info->RenderCallback)(pScrn); #endif + +#ifdef USE_EXA + info->engineMode = EXA_ENGINEMODE_UNKNOWN; +#endif } |