mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 00:55:18 +00:00
drm/i915/ringbuffer: Be consistent in use of ring->size when initialising
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
045e769ab6
commit
ae69b42a10
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue