diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2010-09-15 22:43:12 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-21 06:19:56 -0400 |
commit | d46eefa29724b1be0e8e90a3a51a190b912ebfab (patch) | |
tree | 9a26e7b09969f0b992596e3af486d4a02ee70999 /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | 5c1143bbecf50184ff7cad6287b4e0993bacbd9f (diff) |
drm/i915: add set_tail hook in struct intel_ring_buffer
This is prepared for video codec ring buffer on Sandybridge. It is
needed to read/write more than one register to move the tail pointer of
the video codec ring on Sandybridge.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 5603d6e945e9..7bd571c796ae 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -48,6 +48,8 @@ struct intel_ring_buffer { | |||
48 | struct intel_ring_buffer *ring); | 48 | struct intel_ring_buffer *ring); |
49 | unsigned int (*get_tail)(struct drm_device *dev, | 49 | unsigned int (*get_tail)(struct drm_device *dev, |
50 | struct intel_ring_buffer *ring); | 50 | struct intel_ring_buffer *ring); |
51 | void (*set_tail)(struct drm_device *dev, | ||
52 | u32 value); | ||
51 | unsigned int (*get_active_head)(struct drm_device *dev, | 53 | unsigned int (*get_active_head)(struct drm_device *dev, |
52 | struct intel_ring_buffer *ring); | 54 | struct intel_ring_buffer *ring); |
53 | void (*advance_ring)(struct drm_device *dev, | 55 | void (*advance_ring)(struct drm_device *dev, |