intel: Print out debugging message following ENOSPC
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Jun 2010 14:38:06 +0000 (15:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Jun 2010 21:37:18 +0000 (22:37 +0100)
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 <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c

index b0d1651..37b7467 100644 (file)
@@ -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",