intel: Set the lock flag early to avoid deadlock.

Another regression from the intel_context.c merge.
This commit is contained in:
Kristian Høgsberg 2008-02-29 15:04:26 -05:00
parent de1e9880f8
commit 5197a31b8e

View file

@ -836,6 +836,7 @@ intelContendedLock(struct intel_context *intel, GLuint flags)
int me = intel->hHWContext;
drmGetLock(intel->driFd, intel->hHWContext, flags);
intel->locked = 1;
if (INTEL_DEBUG & DEBUG_LOCK)
_mesa_printf("%s - got contended lock\n", __progname);