Skip to content

Commit

Permalink
drm/i915: Check error code whilst moving buffer to GTT domain.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
Chris Wilson authored and Eric Anholt committed May 28, 2010
1 parent 3d1cc47 commit 85cd461
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/i915/intel_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 85cd461

Please sign in to comment.