diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-02 17:41:18 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-14 12:57:35 +0100 |
commit | 3bd8edb95fcbbb49e97a1a2bdd5c8eae4f83d3a8 (patch) | |
tree | c4336c7dbf79be082d846db28826b829ab8a4414 /src/i830_driver.c | |
parent | 1d22bad33b634aaf61976907cb2ceeec8a9ebe4d (diff) |
Revive i830 page flipping support.
Use the damage layer directly instead of via shadowfb.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index cb3dd878..d1f83e5a 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3168,6 +3168,15 @@ I830CloseScreen(int scrnIndex, ScreenPtr pScreen) pI830->closing = TRUE; #ifdef XF86DRI if (pI830->directRenderingOpen) { +#ifdef DAMAGE + if (pI830->pDamage) { + PixmapPtr pPix = pScreen->GetScreenPixmap(pScreen); + + DamageUnregister(&pPix->drawable, pI830->pDamage); + DamageDestroy(pI830->pDamage); + pI830->pDamage = NULL; + } +#endif #ifdef XF86DRI_MM if (pI830->mmModeFlags & I830_KERNEL_MM) { #ifndef XSERVER_LIBDRM_MM |