diff options
| author | Xiang, Haihao <haihao.xiang@intel.com> | 2010-09-16 10:43:12 +0800 | 
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-21 11:19:56 +0100 | 
| 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 {  			struct intel_ring_buffer *ring);  	unsigned int	(*get_tail)(struct drm_device *dev,  			struct intel_ring_buffer *ring); +	void		(*set_tail)(struct drm_device *dev, +			u32 value);  	unsigned int	(*get_active_head)(struct drm_device *dev,  			struct intel_ring_buffer *ring);  	void		(*advance_ring)(struct drm_device *dev, | 
