From 50694eeff993043df45b6343eb853d92589946a5 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 21 Dec 2004 13:23:10 +0000 Subject: [PATCH] Note that state is dirty on contended lock. Allows two applications to run together correctly, though scheduling between them still isn't great. --- src/mesa/drivers/dri/unichrome/via_context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index ca106f0ad51..15b57b95b71 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -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); -- 2.30.2