summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-31 10:32:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-31 13:35:37 +0000
commit5cdc2bbc9c66d4c8c6fdb1b552c32177d070bf7b (patch)
treead9ef390dc243844bc776240a420a4adbdacf465 /src/sna/sna_accel.c
parented16e34c00d5eb5ca4ec643f66fedbf1a5112e90 (diff)
sna: Tweak deletion of used buffers
Make sure we never unwind a used buffer. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 7d45065b..93231db9 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4264,6 +4264,7 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region,
DBG(("%s: discarding cached upload proxy\n", __FUNCTION__));
sna_pixmap_free_gpu(sna, priv);
}
+ assert(priv->gpu_bo == NULL || priv->gpu_bo->proxy == NULL);
if (priv->cow || priv->move_to_gpu) {
DBG(("%s: no, has COW or pending move-to-gpu\n", __FUNCTION__));