Explorar o código

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

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson %!s(int64=14) %!d(string=hai) anos
pai
achega
ae69b42a10
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/gpu/drm/i915/intel_ringbuffer.c

+ 1 - 1
drivers/gpu/drm/i915/intel_ringbuffer.c

@@ -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 */