sna: Clear the execlist if we completely unwind a batch after using 8x8 tiling
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Nov 2013 09:05:05 +0000 (09:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Nov 2013 11:26:01 +0000 (11:26 +0000)
Another location, but the right function this time!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c

index 1ac926f..77a770a 100644 (file)
@@ -11701,6 +11701,8 @@ sna_poly_fill_rect_tiled_8x8_blt(DrawablePtr drawable,
                if (sna->kgem.nbatch == unwind_batch + 8) {
                        sna->kgem.nbatch = unwind_batch;
                        sna->kgem.nreloc = unwind_reloc;
+                       if (sna->kgem.nbatch == 0)
+                               kgem_bo_undo(&sna->kgem, bo);
                }
        }
 done: