aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-14 04:41:17 -0400
committerKeith Packard <keithp@keithp.com>2011-06-10 00:51:19 -0400
commit2da3b9b940e2a18147422c54ed8b29d01e1ade88 (patch)
treeafffe23550ffcc446e70559c4f75cd1f308cca33 /drivers/gpu/drm/i915/i915_drv.h
parentc411964209508e32cf36f6512ed339996751f55f (diff)
drm/i915: Combine pinning with setting to the display plane
We need to perform a few operations in order to move the object into the display plane (where it can be accessed coherently by the display engine) that are important for future safety to forbid whilst pinned. As a result, we want to need to perform some of the operations before pinning, but some are required once we have been bound into the GTT. So combine the pinning performed by all the callers with set_to_display_plane(), so this complication is contained within the single function. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index e552aa6bc85..8a9fd917786 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1209,7 +1209,8 @@ int __must_check
1209i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, 1209i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj,
1210 bool write); 1210 bool write);
1211int __must_check 1211int __must_check
1212i915_gem_object_set_to_display_plane(struct drm_i915_gem_object *obj, 1212i915_gem_object_pin_to_display_plane(struct drm_i915_gem_object *obj,
1213 u32 alignment,
1213 struct intel_ring_buffer *pipelined); 1214 struct intel_ring_buffer *pipelined);
1214int i915_gem_attach_phys_object(struct drm_device *dev, 1215int i915_gem_attach_phys_object(struct drm_device *dev,
1215 struct drm_i915_gem_object *obj, 1216 struct drm_i915_gem_object *obj,