Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217915
b: refs/heads/master
c: 0ddc128
h: refs/heads/master
i:
  217913: cd41d1d
  217911: a5fc4e0
v: v3
  • Loading branch information
Chris Wilson committed Sep 8, 2010
1 parent 8f090cd commit b68f8dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ba3ddd9838f5e4d6ac7c6dce95648d205e11bff
refs/heads/master: 0ddc1289f3ffd779779ddd3922f26ae7d0a21604
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,12 @@ void intel_setup_overlay(struct drm_device *dev)
goto out_free_bo;
}
overlay->flip_addr = overlay->reg_bo->gtt_offset;

ret = i915_gem_object_set_to_gtt_domain(reg_bo, true);
if (ret) {
DRM_ERROR("failed to move overlay register bo into the GTT\n");
goto out_unpin_bo;
}
} else {
ret = i915_gem_attach_phys_object(dev, reg_bo,
I915_GEM_PHYS_OVERLAY_REGS,
Expand Down Expand Up @@ -1418,6 +1424,8 @@ void intel_setup_overlay(struct drm_device *dev)
DRM_INFO("initialized overlay support\n");
return;

out_unpin_bo:
i915_gem_object_unpin(reg_bo);
out_free_bo:
drm_gem_object_unreference(reg_bo);
out_free:
Expand Down

0 comments on commit b68f8dd

Please sign in to comment.