diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-26 20:58:11 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-03 19:17:55 +0200 |
commit | 0d1aacac36530fce058d7a0db3da7befd5765417 (patch) | |
tree | a59a57fdbc12d190332fd7cdbc87c93b1b6d076e /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | a52690e445637dda7f71878965d64d9b6a15a2b7 (diff) | |
download | op-kernel-dev-0d1aacac36530fce058d7a0db3da7befd5765417.zip op-kernel-dev-0d1aacac36530fce058d7a0db3da7befd5765417.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 432ad53..68b1ca974 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -155,7 +155,11 @@ struct intel_ring_buffer { struct intel_ring_hangcheck hangcheck; - void *private; + struct { + struct drm_i915_gem_object *obj; + u32 gtt_offset; + volatile u32 *cpu_page; + } scratch; }; static inline bool |