Note that state is dirty on contended lock. Allows two applications
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 21 Dec 2004 13:23:10 +0000 (13:23 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 21 Dec 2004 13:23:10 +0000 (13:23 +0000)
to run together correctly, though scheduling between them still isn't
great.

src/mesa/drivers/dri/unichrome/via_context.c

index ca106f0..15b57b9 100644 (file)
@@ -972,6 +972,11 @@ void viaGetLock(viaContextPtr vmesa, GLuint flags)
     if (sarea->ctxOwner != me) {
         vmesa->uploadCliprects = GL_TRUE;
         sarea->ctxOwner = me;
+        vmesa->dirty |= (VIA_UPLOAD_CTX |
+                        VIA_UPLOAD_BUFFERS |
+                        VIA_UPLOAD_TEX0 |
+                        VIA_UPLOAD_TEX1 |
+                        VIA_UPLOAD_CLIPRECTS);
     }
 
     viaXMesaWindowMoved(vmesa);