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>
This commit is contained in:
Chris Wilson 2010-03-04 21:34:52 +00:00
parent 066d9b64ee
commit 54ac4e2df9
1 changed files with 11 additions and 5 deletions

View File

@ -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;