diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-27 13:18:20 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-28 10:49:56 -0700 |
commit | 85cd4612fdab4e837d7eea048a697c75d0477d3b (patch) | |
tree | 1390c8ba64ac933873b470d724d8baf6fb9e1486 | |
parent | 3d1cc47037f36004b10681d3436ef0942ebb279b (diff) |
drm/i915: Check error code whilst moving buffer to GTT domain.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | drivers/gpu/drm/i915/intel_fb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 6f53cf7fbc50..f8c76e64bb77 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c @@ -105,7 +105,11 @@ static int intelfb_create(struct intel_fbdev *ifbdev, } /* Flush everything out, we'll be doing GTT only from now on */ - i915_gem_object_set_to_gtt_domain(fbo, 1); + ret = i915_gem_object_set_to_gtt_domain(fbo, 1); + if (ret) { + DRM_ERROR("failed to bind fb: %d.\n", ret); + goto out_unpin; + } info = framebuffer_alloc(0, device); if (!info) { |