summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-19 15:45:35 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-19 16:34:13 +0100
commit02963f489b177d0085006753e91e240545933387 (patch)
treef1f5609a6bdf9c361d869324643d1cd55ac05762
parent13d1a105159222518800d3c5ad5660725864ec6b (diff)
sna: Only submit the batch if flushing a DRI client bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 31a9d3db..17237579 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -13362,13 +13362,13 @@ sna_accel_flush_callback(CallbackListPtr *list,
} else {
DBG(("%s: flushing DRI pixmap=%ld\n", __FUNCTION__,
priv->pixmap->drawable.serialNumber));
- ret = sna_pixmap_move_to_gpu(priv->pixmap,
- MOVE_READ | __MOVE_FORCE);
+ if (sna_pixmap_move_to_gpu(priv->pixmap,
+ MOVE_READ | __MOVE_FORCE))
+ kgem_bo_submit(&sna->kgem, priv->gpu_bo);
}
(void)ret;
}
- kgem_submit(&sna->kgem);
sna->kgem.flush = false;
}