summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-02-24 19:13:07 +1000
committerDave Airlie <[email protected]>2010-02-24 19:13:07 +1000
commit3f5bac8960a5c6d1f08f0dc849676139b9d6ce5c (patch)
tree7b2fcec0d6f0eefbdcb4ed3c83af90dfc13a85b3 /src/mesa/drivers/dri/r200
parente16f0c14f353cc04ad6cbcf99e3b95ccb1d2c06b (diff)
radeon/r200: fix the state emission before kernel clear
this moves the emission outside the lock and adds r200 support. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c
index a1b505707ea..b72f69b7f45 100644
--- a/src/mesa/drivers/dri/r200/r200_ioctl.c
+++ b/src/mesa/drivers/dri/r200/r200_ioctl.c
@@ -61,6 +61,8 @@ static void r200KernelClear(GLcontext *ctx, GLuint flags)
GLint cx, cy, cw, ch, ret;
GLuint i;
+ radeonEmitState(&rmesa->radeon);
+
LOCK_HARDWARE( &rmesa->radeon );
/* Throttle the number of clear ioctls we do.