aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-09-24 15:20:10 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-25 07:23:15 -0400
commit79f321b7e676bd54f563c5ce513588aa90b2cc21 (patch)
tree9ef460994bb367ee35a58ae566926a33ddd5265f /drivers/gpu/drm/i915/intel_ringbuffer.h
parent3d281d8cca1acb2483444e0d1519c8ab6dda3a47 (diff)
drm/i915: kill ring->get_active_head
All functions are extremely similar, so fold them into one generic implementation. This function isn't used anyway, because there's not yet a bsd ring error state dumper. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index d506da1605b4..43c5f7a476fa 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -50,8 +50,6 @@ struct intel_ring_buffer {
50 void (*set_tail)(struct drm_device *dev, 50 void (*set_tail)(struct drm_device *dev,
51 struct intel_ring_buffer *ring, 51 struct intel_ring_buffer *ring,
52 u32 value); 52 u32 value);
53 unsigned int (*get_active_head)(struct drm_device *dev,
54 struct intel_ring_buffer *ring);
55 void (*flush)(struct drm_device *dev, 53 void (*flush)(struct drm_device *dev,
56 struct intel_ring_buffer *ring, 54 struct intel_ring_buffer *ring,
57 u32 invalidate_domains, 55 u32 invalidate_domains,
@@ -128,4 +126,7 @@ u32 intel_ring_get_seqno(struct drm_device *dev,
128int intel_init_render_ring_buffer(struct drm_device *dev); 126int intel_init_render_ring_buffer(struct drm_device *dev);
129int intel_init_bsd_ring_buffer(struct drm_device *dev); 127int intel_init_bsd_ring_buffer(struct drm_device *dev);
130 128
129u32 intel_ring_get_active_head(struct drm_device *dev,
130 struct intel_ring_buffer *ring);
131
131#endif /* _INTEL_RINGBUFFER_H_ */ 132#endif /* _INTEL_RINGBUFFER_H_ */