aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 26362f8495a8..df8302a11eb5 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -682,9 +682,11 @@ int intel_wrap_ring_buffer(struct drm_device *dev,
682 } 682 }
683 683
684 virt = (unsigned int *)(ring->virtual_start + ring->tail); 684 virt = (unsigned int *)(ring->virtual_start + ring->tail);
685 rem /= 4; 685 rem /= 8;
686 while (rem--) 686 while (rem--) {
687 *virt++ = MI_NOOP; 687 *virt++ = MI_NOOP;
688 *virt++ = MI_NOOP;
689 }
688 690
689 ring->tail = 0; 691 ring->tail = 0;
690 ring->space = ring->head - 8; 692 ring->space = ring->head - 8;