aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r600/r700_clear.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2009-06-30 18:40:48 -0400
committerAlex Deucher <[email protected]>2009-06-30 18:40:48 -0400
commitd10006e67fb070f846213ef38e07df21699df5a1 (patch)
tree1f4673c8cff4336c28cd5f3f6683ffcec144d428 /src/mesa/drivers/dri/r600/r700_clear.c
parentd1bc9a29b9fe9400681221b38639e12536dd6dbf (diff)
R6xx/r7xx: fix locking for clear
this allows redbook hello to render correctly mostly.
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_clear.c')
-rw-r--r--src/mesa/drivers/dri/r600/r700_clear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_clear.c b/src/mesa/drivers/dri/r600/r700_clear.c
index b04441da281..76967956761 100644
--- a/src/mesa/drivers/dri/r600/r700_clear.c
+++ b/src/mesa/drivers/dri/r600/r700_clear.c
@@ -32,6 +32,7 @@
#include "main/mtypes.h"
#include "main/enums.h"
+#include "radeon_lock.h"
#include "r600_context.h"
#include "r700_shaderinst.h"
@@ -68,14 +69,12 @@ void r700Clear(GLcontext * ctx, GLbitfield mask)
return;
}
-#if 0
if (!context->radeon.radeonScreen->driScreen->dri2.enabled) {
LOCK_HARDWARE(&context->radeon);
UNLOCK_HARDWARE(&context->radeon);
if (dPriv->numClipRects == 0)
return;
}
-#endif
R600_NEWPRIM(context);