aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorOwain Ainsworth <zerooa@googlemail.com>2008-12-06 23:42:20 -0500
committerDave Airlie <airlied@redhat.com>2008-12-09 00:37:17 -0500
commit15c35334c9b7a11f66ddf7fea9367884e1f5414f (patch)
tree0ad186eeadf36d043251c5666825970172711bc2 /drivers/gpu
parentfae7043c65d65f3e5b34bac4431c6ccc49190c41 (diff)
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 <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 3fde82be014f..ad672d854828 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1104,6 +1104,8 @@ i915_gem_evict_everything(struct drm_device *dev)
1104 if (ret != 0) 1104 if (ret != 0)
1105 break; 1105 break;
1106 } 1106 }
1107 if (ret == -ENOMEM)
1108 return 0;
1107 return ret; 1109 return ret;
1108} 1110}
1109 1111