summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorJohn Harrison <John.C.Harrison@Intel.com>2015-05-29 17:44:00 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-06-23 14:02:24 +0200
commitee044a8863de58044cb370c23f97b9b68b33e47b (patch)
tree5aff8c64f460123456aed365432db911cb0025ea /drivers/gpu/drm/i915/i915_gem.c
parent7deb4d3980ea44ebb4097426f85d5f6c89b873a4 (diff)
drm/i915: Update ring->add_request() to take a request structure
Updated the various ring->add_request() implementations to take a request instead of a ring. This removes their reliance on the OLR to obtain the seqno value that the request should be tagged with. For: VIZ-5115 Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Tomas Elf <tomas.elf@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 25fe1ef32eaa..6d511d32f72a 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2524,7 +2524,7 @@ void __i915_add_request(struct drm_i915_gem_request *request,
if (i915.enable_execlists)
ret = ring->emit_request(ringbuf, request);
else {
- ret = ring->add_request(ring);
+ ret = ring->add_request(request);
request->tail = intel_ring_get_tail(ringbuf);
}