xf86-video-intel: src/i830_batchbuffer.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri Mar 5 01:25:01 PST 2010
src/i830_batchbuffer.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
New commits:
commit 54ac4e2df987b72529a523ffbde357bec27e3658
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Mar 4 21:34:52 2010 +0000
Rate limit batch buffer error.
Once we hit this error it's unlikely that we're coming back - so don't
flood the logs with redundant information.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c
index bf0b55b..a02e980 100644
--- a/src/i830_batchbuffer.c
+++ b/src/i830_batchbuffer.c
@@ -156,11 +156,17 @@ void intel_batch_submit(ScrnInfoPtr scrn)
ret =
dri_bo_exec(intel->batch_bo, intel->batch_used, NULL, 0,
0xffffffff);
- if (ret != 0)
- xf86DrvMsg(scrn->scrnIndex, X_ERROR,
- "Failed to submit batch buffer, expect rendering corruption "
- "or even a frozen display: %s.\n",
- strerror(-ret));
+ if (ret != 0) {
+ static int once;
+
+ if (!once) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Failed to submit batch buffer, expect rendering corruption "
+ "or even a frozen display: %s.\n",
+ strerror(-ret));
+ once = 1;
+ }
+ }
while (!list_is_empty(&intel->batch_pixmaps)) {
struct intel_pixmap *entry;
More information about the xorg-commit
mailing list