aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-04-26 19:02:58 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-03 05:18:20 -0400
commitb2da9fe5d5994a104bbae154590070d698279919 (patch)
tree06ebd3a0f0c0be5ba35265922ca4b67b7488dbf0 /drivers/gpu/drm/i915/i915_drv.h
parent507432986c15f18c5102b18027e4716fc9e9009e (diff)
drm/i915: remove do_retire from i915_wait_request
This originates from a hack by me to quickly fix a bug in an earlier patch where we needed control over whether or not waiting on a seqno actually did any retire list processing. Since the two operations aren't clearly related, we should pull the parameter out of the wait function, and make the caller responsible for retiring if the action is desired. The only function call site which did not get an explicit retire_request call (on purpose) is i915_gem_inactive_shrink(). That code was already calling retire_request a second time. v2: don't modify any behavior excepit i915_gem_inactive_shrink(Daniel) Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 0095c8d12569..2113a1ab9625 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1297,14 +1297,13 @@ int __must_check i915_gem_init_hw(struct drm_device *dev);
1297void i915_gem_init_swizzling(struct drm_device *dev); 1297void i915_gem_init_swizzling(struct drm_device *dev);
1298void i915_gem_init_ppgtt(struct drm_device *dev); 1298void i915_gem_init_ppgtt(struct drm_device *dev);
1299void i915_gem_cleanup_ringbuffer(struct drm_device *dev); 1299void i915_gem_cleanup_ringbuffer(struct drm_device *dev);
1300int __must_check i915_gpu_idle(struct drm_device *dev, bool do_retire); 1300int __must_check i915_gpu_idle(struct drm_device *dev);
1301int __must_check i915_gem_idle(struct drm_device *dev); 1301int __must_check i915_gem_idle(struct drm_device *dev);
1302int __must_check i915_add_request(struct intel_ring_buffer *ring, 1302int __must_check i915_add_request(struct intel_ring_buffer *ring,
1303 struct drm_file *file, 1303 struct drm_file *file,
1304 struct drm_i915_gem_request *request); 1304 struct drm_i915_gem_request *request);
1305int __must_check i915_wait_request(struct intel_ring_buffer *ring, 1305int __must_check i915_wait_request(struct intel_ring_buffer *ring,
1306 uint32_t seqno, 1306 uint32_t seqno);
1307 bool do_retire);
1308int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf); 1307int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
1309int __must_check 1308int __must_check
1310i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, 1309i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj,