提交 ae69b42a 编写于 作者: C Chris Wilson

drm/i915/ringbuffer: Be consistent in use of ring->size when initialising

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 045e769a
...@@ -173,7 +173,7 @@ static int init_ring_common(struct intel_ring_buffer *ring) ...@@ -173,7 +173,7 @@ static int init_ring_common(struct intel_ring_buffer *ring)
} }
I915_WRITE_CTL(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); | RING_REPORT_64K | RING_VALID);
/* If the head is still not zero, the ring is dead */ /* If the head is still not zero, the ring is dead */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册