mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
3d1cc47037
commit
85cd4612fd
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ static int intelfb_create(struct intel_fbdev *ifbdev,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flush everything out, we'll be doing GTT only from now on */
|
/* 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);
|
info = framebuffer_alloc(0, device);
|
||||||
if (!info) {
|
if (!info) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue