Skip to content

Commit

Permalink
drm/i915/ringbuffer: Be consistent in use of ring->size when initiali…
Browse files Browse the repository at this point in the history
…sing

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Nov 7, 2010
1 parent 045e769 commit ae69b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int init_ring_common(struct intel_ring_buffer *ring)
}

I915_WRITE_CTL(ring,
((ring->gem_object->size - PAGE_SIZE) & RING_NR_PAGES)
((ring->size - PAGE_SIZE) & RING_NR_PAGES)
| RING_REPORT_64K | RING_VALID);

/* If the head is still not zero, the ring is dead */
Expand Down

0 comments on commit ae69b42

Please sign in to comment.