diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-27 16:18:20 +0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-28 21:49:56 +0400 |
commit | 85cd4612fdab4e837d7eea048a697c75d0477d3b (patch) | |
tree | 1390c8ba64ac933873b470d724d8baf6fb9e1486 /drivers/gpu/drm/i915 | |
parent | 3d1cc47037f36004b10681d3436ef0942ebb279b (diff) | |
download | linux-85cd4612fdab4e837d7eea048a697c75d0477d3b.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/i915')
-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) { |