drm/i915: Don't return error in evict_everything when we get to the end.

Returning -ENOMEM errored all the way out of execbuf, so the rendering never
occurred.

Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
Owain Ainsworth 2008-12-06 20:42:20 -08:00 • committed by Dave Airlie
commit 15c35334c9

View file

@ -1104,6 +1104,8 @@ i915_gem_evict_everything(struct drm_device *dev)
if (ret != 0)
break;
}
if (ret == -ENOMEM)
return 0;
return ret;
}