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 09:05:05 +0000 (09:05 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c

index 3176a77..1ac926f 100644 (file)
@@ -15151,6 +15151,8 @@ skip:
        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);
        }
 
        assert_pixmap_damage(pixmap);