summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2004-08-12 05:00:22 +0000
committerKevin E Martin <kem@kem.org>2004-08-12 05:00:22 +0000
commit955f2b89f94aaa20b5eafd045b01e3eeef3d29ad (patch)
tree6a921cc5fc31e85500dd00d03852a3af6c0f3706 /src/radeon_dri.c
parent8f3ea53f26493a5f02410297a587d1d95c067094 (diff)
Fix context switching on Radeons and build problem when XF86DRI is notXORG-6_7_99_2
defined (Bug #922, Eric Anholt).
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index f585ca2..c32ab18 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -343,9 +343,17 @@ static void RADEONEnterServer(ScreenPtr pScreen)
{
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
RADEONInfoPtr info = RADEONPTR(pScrn);
+#ifdef RENDER
+ RADEONSAREAPrivPtr pSAREAPriv;
+#endif
if (info->accel) info->accel->NeedToSync = TRUE;
+#ifdef RENDER
+ pSAREAPriv = DRIGetSAREAPrivate(pScrn->pScreen);
+ if (pSAREAPriv->ctxOwner != DRIGetContext(pScrn->pScreen))
+ info->RenderInited3D = FALSE;
+#endif
}
/* Called when the X server goes to sleep to allow the X server's