From 43daaec63929c1f0e54a5125375d8147629da4b9 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 17 Aug 2006 15:57:31 -0700 Subject: [PATCH] Bug #7905: Mark DRI state as dirty in 965 textured video, fixing hangs with 3d. --- src/i830_video.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/i830_video.c b/src/i830_video.c index 693c703f..7f6eb80d 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -2288,6 +2288,15 @@ BroadwaterDisplayVideoTextured(ScrnInfoPtr pScrn, I830PortPrivPtr pPriv, int id, */ *pI830->used3D |= 1 << 30; +#ifdef XF86DRI + /* Tell the DRI that we're smashing its state. */ + if (pI830->directRenderingEnabled) { + drmI830Sarea *pSAREAPriv = DRIGetSAREAPrivate(pScrn->pScreen); + + pSAREAPriv->ctxOwner = DRIGetContext(pScrn->pScreen); + } +#endif /* XF86DRI */ + next_offset = 0; /* Set up our layout of state in framebuffer. First the general state: */