提交 85cd4612 编写于 作者: C Chris Wilson 提交者: Eric Anholt

drm/i915: Check error code whilst moving buffer to GTT domain.

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NEric Anholt <eric@anholt.net>
上级 3d1cc470
...@@ -105,7 +105,11 @@ static int intelfb_create(struct intel_fbdev *ifbdev, ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册