From: Keith Whitwell Date: Tue, 21 Dec 2004 13:23:10 +0000 (+0000) Subject: Note that state is dirty on contended lock. Allows two applications X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50694eeff993043df45b6343eb853d92589946a5;p=mesa.git Note that state is dirty on contended lock. Allows two applications to run together correctly, though scheduling between them still isn't great. --- 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);