[Intel-gfx] [PATCH] drm/i915: Emit even number of dwords when emitting LRIs
Arun Siluvery
arun.siluvery at linux.intel.com
Wed Oct 22 11:09:49 CEST 2014
The number of DWords should be even when doing ring emits as
command sequences require QWord alignment.
Cc: Mika Kuoppala <mika.kuoppala at intel.com>
Signed-off-by: Arun Siluvery <arun.siluvery at linux.intel.com>
---
drivers/gpu/drm/i915/intel_ringbuffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 12a546f..79211ae 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -680,7 +680,7 @@ static int intel_ring_workarounds_emit(struct intel_engine_cs *ring)
if (ret)
return ret;
- ret = intel_ring_begin(ring, w->count * 3);
+ ret = intel_ring_begin(ring, w->count * 4);
if (ret)
return ret;
@@ -688,6 +688,7 @@ static int intel_ring_workarounds_emit(struct intel_engine_cs *ring)
intel_ring_emit(ring, MI_LOAD_REGISTER_IMM(1));
intel_ring_emit(ring, w->reg[i].addr);
intel_ring_emit(ring, w->reg[i].value);
+ intel_ring_emit(ring, MI_NOOP);
}
intel_ring_advance(ring);
--
2.1.2
More information about the Intel-gfx
mailing list