drm/i915/ringbuffer: Remove broken intel_fill_struct()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Oct 2010 18:00:02 +0000 (19:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Oct 2010 18:00:02 +0000 (19:00 +0100)
... before someone tries to use it. The code both calls
intel_ring_begin/advance() and open-codes the bookkeeping performed by
those two functions.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h

index f1e0538b21f51c30ab467150775f7bedf8dead39..8da5ff790da3584d67b2fd273f7be948a370db40 100644 (file)
@@ -733,21 +733,6 @@ void intel_ring_advance(struct drm_device *dev,
        ring->set_tail(dev, ring, ring->tail);
 }
 
-void intel_fill_struct(struct drm_device *dev,
-                      struct intel_ring_buffer *ring,
-                      void *data,
-                      unsigned int len)
-{
-       unsigned int *virt = ring->virtual_start + ring->tail;
-       BUG_ON((len&~(4-1)) != 0);
-       intel_ring_begin(dev, ring, len/4);
-       memcpy(virt, data, len);
-       ring->tail += len;
-       ring->tail &= ring->size - 1;
-       ring->space -= len;
-       intel_ring_advance(dev, ring);
-}
-
 static const struct intel_ring_buffer render_ring = {
        .name                   = "render ring",
        .id                     = RING_RENDER,
index 9725f783db202f3a80d12a2b92c6bf5a279004bb..5b37ff3a69491836b3e028d1689ec9bb98e98516 100644 (file)
@@ -116,10 +116,6 @@ static inline void intel_ring_emit(struct drm_device *dev,
        ring->tail += 4;
 }
 
-void intel_fill_struct(struct drm_device *dev,
-               struct intel_ring_buffer *ring,
-               void *data,
-               unsigned int len);
 void intel_ring_advance(struct drm_device *dev,
                struct intel_ring_buffer *ring);