aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_overlay.c
diff options
context:
space:
mode:
authorJeremy Erickson <jerickso@cs.unc.edu>2014-04-18 17:06:00 -0400
committerJeremy Erickson <jerickso@cs.unc.edu>2014-04-18 17:06:00 -0400
commita215aa7b9ab3759c047201199fba64d3042d7f13 (patch)
treebca37493d9b2233450e6d3ffced1261d0e4f71fe /drivers/gpu/drm/i915/intel_overlay.c
parentd31199a77ef606f1d06894385f1852181ba6136b (diff)
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'drivers/gpu/drm/i915/intel_overlay.c')
-rw-r--r--drivers/gpu/drm/i915/intel_overlay.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 1d306a458be6..743664187fef 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -1367,6 +1367,12 @@ void intel_setup_overlay(struct drm_device *dev)
1367 goto out_free_bo; 1367 goto out_free_bo;
1368 } 1368 }
1369 overlay->flip_addr = overlay->reg_bo->gtt_offset; 1369 overlay->flip_addr = overlay->reg_bo->gtt_offset;
1370
1371 ret = i915_gem_object_set_to_gtt_domain(reg_bo, true);
1372 if (ret) {
1373 DRM_ERROR("failed to move overlay register bo into the GTT\n");
1374 goto out_unpin_bo;
1375 }
1370 } else { 1376 } else {
1371 ret = i915_gem_attach_phys_object(dev, reg_bo, 1377 ret = i915_gem_attach_phys_object(dev, reg_bo,
1372 I915_GEM_PHYS_OVERLAY_REGS, 1378 I915_GEM_PHYS_OVERLAY_REGS,
@@ -1399,6 +1405,8 @@ void intel_setup_overlay(struct drm_device *dev)
1399 DRM_INFO("initialized overlay support\n"); 1405 DRM_INFO("initialized overlay support\n");
1400 return; 1406 return;
1401 1407
1408out_unpin_bo:
1409 i915_gem_object_unpin(reg_bo);
1402out_free_bo: 1410out_free_bo:
1403 drm_gem_object_unreference(reg_bo); 1411 drm_gem_object_unreference(reg_bo);
1404out_free: 1412out_free: