drm/i915: Fix SRC_COPY width on 830/845g
authorChris Wilson <[email protected]>
Fri, 12 Sep 2014 06:37:42 +0000 (07:37 +0100)
committerJani Nikula <[email protected]>
Mon, 15 Sep 2014 06:55:52 +0000 (09:55 +0300)
One small change I forgot to make in

commit c4d69da167fa967749aeb70bc0e94a457e5d00c1
Author: Chris Wilson <[email protected]>
Date:   Mon Sep 8 14:25:41 2014 +0100

    drm/i915: Evict CS TLBs between batches

was to update the copy width for the compact BLT copy instruction.

Reported-by: Thomas Richter <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Thomas Richter <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: [email protected]
Tested-by: Thomas Richter <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 2d068edd1adc41bc8d71cd919a55361de093b19d..47a126a0493f811cad30474532477cfe5994734e 100644 (file)
@@ -1400,7 +1400,7 @@ i830_dispatch_execbuffer(struct intel_engine_cs *ring,
                 */
                intel_ring_emit(ring, SRC_COPY_BLT_CMD | BLT_WRITE_RGBA);
                intel_ring_emit(ring, BLT_DEPTH_32 | BLT_ROP_SRC_COPY | 4096);
-               intel_ring_emit(ring, DIV_ROUND_UP(len, 4096) << 16 | 1024);
+               intel_ring_emit(ring, DIV_ROUND_UP(len, 4096) << 16 | 4096);
                intel_ring_emit(ring, cs_offset);
                intel_ring_emit(ring, 4096);
                intel_ring_emit(ring, offset);