Revert the move of lost_context setting to UNLOCK_HARDWARE that was done in the
authorEric Anholt <anholt@FreeBSD.org>
Tue, 17 Aug 2004 20:10:29 +0000 (20:10 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Tue, 17 Aug 2004 20:10:29 +0000 (20:10 +0000)
commit626f825bcc91a3068e2e1c68e7467b42826c51ea
treef9fde8dc1d3f487b1a82749a114e64b1e2f40279
parentffdea1ae80a1405fe805cd197c7650d9c5157e2e
Revert the move of lost_context setting to UNLOCK_HARDWARE that was done in the
last commit.  I've been convinced by keithw that it's sufficient, and put a note
in the code about it.

Close another race for state in the Clear functions.  I made the situation worse
in my last commit, but this should fix things.  Might be a slight performance
hit, which could be regained by splitting the R*_FIREVERTICES calls in r*Clear
up so that the EmitState doesn't happen in a separate new cmdbuf.
src/mesa/drivers/dri/r200/r200_ioctl.c
src/mesa/drivers/dri/r200/r200_lock.h
src/mesa/drivers/dri/radeon/radeon_ioctl.c
src/mesa/drivers/dri/radeon/radeon_lock.h