Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7179667 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/ringbuffer: Fix emit batch buffer regression from 8187a2b7



In commit 8187a2b7, the number of dwords used in the ringbuffer for
executing the batch buffer was erroneously changed from 2 to 4.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent b5dc608c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -476,7 +476,7 @@ render_ring_dispatch_gem_execbuffer(struct drm_device *dev,
			intel_ring_emit(dev, ring, exec_start + exec_len - 4);
			intel_ring_emit(dev, ring, exec_start + exec_len - 4);
			intel_ring_emit(dev, ring, 0);
			intel_ring_emit(dev, ring, 0);
		} else {
		} else {
			intel_ring_begin(dev, ring, 4);
			intel_ring_begin(dev, ring, 2);
			if (INTEL_INFO(dev)->gen >= 4) {
			if (INTEL_INFO(dev)->gen >= 4) {
				intel_ring_emit(dev, ring,
				intel_ring_emit(dev, ring,
						MI_BATCH_BUFFER_START | (2 << 6)
						MI_BATCH_BUFFER_START | (2 << 6)