diff options
author | Thomas Hellström <thomas@shipmail.org> | 2006-12-06 10:35:52 +0000 |
---|---|---|
committer | Thomas Hellström <thomas@shipmail.org> | 2006-12-06 10:35:52 +0000 |
commit | cfdd308776e142fda9d9214ed07e6f067bcf43c7 (patch) | |
tree | a2dc9deffc71c231abb5e63125eebd697a27114f /unichrome | |
parent | 6646f2dd702ff942e7b620cfde3898373ca37637 (diff) |
Force 3D context upload after a VT switch.
Diffstat (limited to 'unichrome')
-rw-r--r-- | unichrome/via_driver.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/unichrome/via_driver.c b/unichrome/via_driver.c index 7c441be..3823a50 100644 --- a/unichrome/via_driver.c +++ b/unichrome/via_driver.c @@ -1663,8 +1663,13 @@ static void VIALeaveVT(int scrnIndex, int flags) DEBUG(xf86DrvMsg(scrnIndex, X_INFO, "VIALeaveVT\n")); #ifdef XF86DRI - if (pVia->directRenderingEnabled) + if (pVia->directRenderingEnabled) { + volatile drm_via_sarea_t *saPriv = (drm_via_sarea_t *) + DRIGetSAREAPrivate(pScrn->pScreen); + DRILock(screenInfo.screens[scrnIndex], 0); + saPriv->ctxOwner = ~0; + } #endif viaAccelSync(pScrn); |