aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_overlay.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-09-16 11:54:23 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-27 18:31:05 -0400
commit920afa77ced7124c8bb7d0c4839885618a3b4a54 (patch)
tree849a91385768a4050df8d605c52a81ea2c255cda /drivers/gpu/drm/i915/intel_overlay.c
parenta6e0aa421406dc4cfd736c6d07d26ed39ab4f7bc (diff)
drm/i915: range-restricted bind_to_gtt
Like before add a parameter mappable (also to gem_object_pin) and set it depending upon the context. Only bos that are brought into the gtt due to an execbuffer call can be put into the unmappable part of the gtt, everything else (especially pinned objects) need to be put into the mappable part of the gtt. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_overlay.c')
-rw-r--r--drivers/gpu/drm/i915/intel_overlay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 2d4a6968cd76..beda2016eb16 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -781,7 +781,7 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay,
781 if (ret != 0) 781 if (ret != 0)
782 return ret; 782 return ret;
783 783
784 ret = i915_gem_object_pin(new_bo, PAGE_SIZE); 784 ret = i915_gem_object_pin(new_bo, PAGE_SIZE, true);
785 if (ret != 0) 785 if (ret != 0)
786 return ret; 786 return ret;
787 787
@@ -1423,7 +1423,7 @@ void intel_setup_overlay(struct drm_device *dev)
1423 } 1423 }
1424 overlay->flip_addr = overlay->reg_bo->phys_obj->handle->busaddr; 1424 overlay->flip_addr = overlay->reg_bo->phys_obj->handle->busaddr;
1425 } else { 1425 } else {
1426 ret = i915_gem_object_pin(reg_bo, PAGE_SIZE); 1426 ret = i915_gem_object_pin(reg_bo, PAGE_SIZE, true);
1427 if (ret) { 1427 if (ret) {
1428 DRM_ERROR("failed to pin overlay register bo\n"); 1428 DRM_ERROR("failed to pin overlay register bo\n");
1429 goto out_free_bo; 1429 goto out_free_bo;