From: Roland Scheidegger Date: Fri, 12 Nov 2004 18:29:51 +0000 (+0000) Subject: add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefull... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce055c26f08556a46ee8b4b88e5fd15eb4d2acd1;p=mesa.git add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefully fixes lockups (?) (from r200 driver) --- 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 ) {