summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-02 21:45:00 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-02 21:45:00 +0000
commit4a7217b05c232484a80abc7bd67494996dd32057 (patch)
tree0bf5a8b33dc21da2e3ad5f80ed05949816eee91c /src/sna/sna_accel.c
parentadd663919eb6aca1f5bbb39549d56f481ea0f273 (diff)
sna: Discard bo->exec when unwinding a glyph no-op
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index fdf51ea5..1328c288 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -14385,6 +14385,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);