drm/i915: Update ring->add_request() to take a request structure
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:44:00 +0000 (17:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:24 +0000 (14:02 +0200)
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>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h

index 25fe1ef..6d511d3 100644 (file)
@@ -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);
        }