summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2004-11-12 18:29:51 +0000
committerRoland Scheidegger <[email protected]>2004-11-12 18:29:51 +0000
commitce055c26f08556a46ee8b4b88e5fd15eb4d2acd1 (patch)
treea0cbbc6d993047c2aa581899b26ab43b5eb3ca67 /src
parent8e3926575264d31b3caacb9cbb606f8f2914f57d (diff)
add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefully fixes lockups (?) (from r200 driver)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_ioctl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
index 772118cfc07..aa982cfef96 100644
--- a/src/mesa/drivers/dri/radeon/radeon_ioctl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
@@ -1021,6 +1021,13 @@ static void radeonClear( GLcontext *ctx, GLbitfield mask, GLboolean all,
__FUNCTION__, all, cx, cy, cw, ch );
}
+ {
+ LOCK_HARDWARE( rmesa );
+ UNLOCK_HARDWARE( rmesa );
+ if ( dPriv->numClipRects == 0 )
+ return;
+ }
+
radeonFlush( ctx );
if ( mask & DD_FRONT_LEFT_BIT ) {