diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-04 21:34:52 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-05 09:24:33 +0000 |
commit | 54ac4e2df987b72529a523ffbde357bec27e3658 (patch) | |
tree | c30b52f1c94c70e9926c3d6848ced58d5a35becd | |
parent | 066d9b64ee243e0d255d7e12c2134951eef4ade7 (diff) |
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@chris-wilson.co.uk>
-rw-r--r-- | src/i830_batchbuffer.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c index bf0b55b9..a02e9808 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; |