summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/unichrome/via_context.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c
index 562538abbf..62f4a5fc3a 100644
--- a/src/mesa/drivers/dri/unichrome/via_context.c
+++ b/src/mesa/drivers/dri/unichrome/via_context.c
@@ -986,15 +986,7 @@ void viaGetLock(viaContextPtr vmesa, GLuint flags)
#endif
drmGetLock(vmesa->driFd, vmesa->hHWContext, flags);
- do {
- DRM_UNLOCK(psp->fd, &psp->pSAREA->lock,
- pdp->driContextPriv->hHWContext);
- DRM_SPINLOCK(&psp->pSAREA->drawable_lock, psp->drawLockID);
- __driUtilUpdateDrawableInfo(dPriv);
- DRM_SPINUNLOCK(&psp->pSAREA->drawable_lock, psp->drawLockID);
- DRM_LIGHT_LOCK(psp->fd, &psp->pSAREA->lock,
- pdp->driContextPriv->hHWContext);
- } while (0);
+ DRI_VALIDATE_DRAWABLE_INFO( sPriv, dPriv );
if (sarea->ctxOwner != me) {
vmesa->uploadCliprects = GL_TRUE;