From: Chris Wilson Date: Mon, 21 Jun 2010 14:38:06 +0000 (+0100) Subject: intel: Print out debugging message following ENOSPC X-Git-Tag: submit/1.0/20121108.012404~221 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13e8270504cffa96bd067dc5c792a79555e8b2d4;p=profile%2Fivi%2Flibdrm.git intel: Print out debugging message following ENOSPC execbuffer() returns ENOSPC if it cannot fit the batch buffer into the aperture which is the error we want to diagnose here. Signed-off-by: Chris Wilson --- diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index b0d1651..37b7467 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -1608,7 +1608,7 @@ drm_intel_gem_bo_mrb_exec2(drm_intel_bo *bo, int used, if (ret != 0) { ret = -errno; - if (ret == -ENOMEM) { + if (ret == -ENOSPC) { fprintf(stderr, "Execbuffer fails to pin. " "Estimate: %u. Actual: %u. Available: %u\n",