aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-04 11:32:21 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-04 15:19:52 -0400
commite655bc35fdfdaae540136b524b574d2fb3ea9998 (patch)
treed4fa26e28e141b38721cb516a025b7efdab24beb
parent0340d9fd0f74309f435d5324b885c9ca1967262c (diff)
drm/i915: Remove i915_gem_execbuffer_retire_commands()
Move the single line to the callsite as the name is now misleading, and the purpose is solely to add the request to the execution queue. Here, we can see that if we failed to dispatch the batch from the request, we can forgo flushing the GPU when closing the request. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1470324762-2545-5-git-send-email-chris@chris-wilson.co.uk
-rw-r--r--drivers/gpu/drm/i915/i915_gem_execbuffer.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index 0593ea3ba211..63984c4d8e5a 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -1211,13 +1211,6 @@ i915_gem_execbuffer_move_to_active(struct list_head *vmas,
1211 } 1211 }
1212} 1212}
1213 1213
1214static void
1215i915_gem_execbuffer_retire_commands(struct i915_execbuffer_params *params)
1216{
1217 /* Add a breadcrumb for the completion of the batch buffer */
1218 __i915_add_request(params->request, params->batch_obj, true);
1219}
1220
1221static int 1214static int
1222i915_reset_gen7_sol_offsets(struct drm_i915_gem_request *req) 1215i915_reset_gen7_sol_offsets(struct drm_i915_gem_request *req)
1223{ 1216{
@@ -1692,7 +1685,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
1692 1685
1693 ret = execbuf_submit(params, args, &eb->vmas); 1686 ret = execbuf_submit(params, args, &eb->vmas);
1694err_request: 1687err_request:
1695 i915_gem_execbuffer_retire_commands(params); 1688 __i915_add_request(params->request, params->batch_obj, ret == 0);
1696 1689
1697err_batch_unpin: 1690err_batch_unpin:
1698 /* 1691 /*