Mesa (r6xx-rewrite): R6xx/r7xx: re-enable clears
Alex Deucher
agd5f at kemper.freedesktop.org
Thu May 28 21:11:21 UTC 2009
Module: Mesa
Branch: r6xx-rewrite
Commit: 3f1474594697fd77211851d699710299721b4618
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f1474594697fd77211851d699710299721b4618
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Thu May 28 17:09:19 2009 -0400
R6xx/r7xx: re-enable clears
flush cache and wait for idle after drawing. Probably
just need the cache flush. This gets redbook hello working
properly.
---
src/mesa/drivers/dri/r600/r700_clear.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/r600/r700_clear.c b/src/mesa/drivers/dri/r600/r700_clear.c
index c011b86..fa0d81b 100644
--- a/src/mesa/drivers/dri/r600/r700_clear.c
+++ b/src/mesa/drivers/dri/r600/r700_clear.c
@@ -96,6 +96,8 @@ static GLboolean r700ClearWithDraw(context_t *context, GLbitfield mask)
uFs[11] = 0x60201910;
}
+ r700Start3D(context);
+
r700SyncSurf(context);
/* Save current chip object. */
@@ -243,6 +245,8 @@ static GLboolean r700ClearWithDraw(context_t *context, GLbitfield mask)
END_BATCH();
COMMIT_BATCH();
+ r700WaitForIdleClean(context);
+
(context->chipobj.FlushCmdBuffer)(context);
(context->chipobj.FreeDmaRegion)(context, aos_vb.bo);
@@ -262,7 +266,7 @@ void r700Clear(GLcontext * ctx, GLbitfield mask)
return;
}
- //r700ClearWithDraw(context, mask);
+ r700ClearWithDraw(context, mask);
}
More information about the mesa-commit
mailing list