From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> Also redundant since it is stored in the request. text data bss dec hex filename 1085354 26398 2628 1114380 11010c i915.ko.0 1085338 26398 2628 1114364 1100fc i915.ko.1 Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 119322eb9897..afbb56196162 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -50,7 +50,6 @@ #define BATCH_OFFSET_BIAS (256*1024) struct i915_execbuffer_params { - struct i915_vma *batch; u32 dispatch_flags; u32 batch_start; struct drm_i915_gem_request *request; @@ -1482,10 +1481,10 @@ execbuf_submit(struct i915_execbuffer_params *params, } exec_len = args->batch_len; - exec_start = params->batch->node.start + params->batch_start; + exec_start = req->batch->node.start + params->batch_start; if (exec_len == 0) - exec_len = params->batch->size - params->batch_start; + exec_len = req->batch->size - params->batch_start; ret = engine->emit_bb_start(req, exec_start, exec_len, params->dispatch_flags); @@ -1832,7 +1831,6 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, * scheduler arrives. */ params.dispatch_flags = dispatch_flags; - params.batch = batch; params.batch_start = batch_start_offset; params.request = req; -- 2.7.4 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx