]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Embed the ring->private within the struct intel_ring_buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 26 Aug 2013 19:58:11 +0000 (20:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Sep 2013 17:17:55 +0000 (19:17 +0200)
commit57c3fd670264f8a69d400e9dca5479a9cc74a7fb
treea59a57fdbc12d190332fd7cdbc87c93b1b6d076e
parente7fc60fcb97cbb391c7c149e1172a68314e2efff
drm/i915: Embed the ring->private within the struct intel_ring_buffer

We now have more devices using ring->private than not, and they all want
the same structure. Worse, I would like to use a scratch page from
outside of intel_ringbuffer.c and so for convenience would like to reuse
ring->private. Embed the object into the struct intel_ringbuffer so that
we can keep the code clean.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h