diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-11-07 06:45:52 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-11-07 06:45:52 -0500 |
commit | ae69b42a10dafe61adb016e0e52ec1e8d1ba11b4 (patch) | |
tree | b43bc5338d77cc378d5477937bc5c862b60bf498 /drivers | |
parent | 045e769ab69ce94dedbcdcfd46c2578b385c2986 (diff) |
drm/i915/ringbuffer: Be consistent in use of ring->size when initialising
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 78a5061a58f6..9033697783b9 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -173,7 +173,7 @@ static int init_ring_common(struct intel_ring_buffer *ring) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | I915_WRITE_CTL(ring, | 175 | I915_WRITE_CTL(ring, |
176 | ((ring->gem_object->size - PAGE_SIZE) & RING_NR_PAGES) | 176 | ((ring->size - PAGE_SIZE) & RING_NR_PAGES) |
177 | | RING_REPORT_64K | RING_VALID); | 177 | | RING_REPORT_64K | RING_VALID); |
178 | 178 | ||
179 | /* If the head is still not zero, the ring is dead */ | 179 | /* If the head is still not zero, the ring is dead */ |