From ce055c26f08556a46ee8b4b88e5fd15eb4d2acd1 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Fri, 12 Nov 2004 18:29:51 +0000 Subject: [PATCH] add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefully fixes lockups (?) (from r200 driver) --- src/mesa/drivers/dri/radeon/radeon_ioctl.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 ) { -- 2.30.2