diff options
Diffstat (limited to 'src/sna/sna_io.c')
-rw-r--r-- | src/sna/sna_io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index f89cd89e..41322ad2 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -1388,6 +1388,8 @@ bool sna_replace(struct sna *sna, pixmap->drawable.bitsPerPixel, bo->tiling, busy)); + assert(!sna_pixmap(pixmap)->pinned); + if (!busy && upload_inplace__tiled(kgem, bo)) { BoxRec box; @@ -1490,6 +1492,8 @@ struct kgem_bo *sna_replace__xor(struct sna *sna, pixmap->drawable.bitsPerPixel, bo->tiling)); + assert(!sna_pixmap(pixmap)->pinned); + if (kgem_bo_is_busy(bo)) { struct kgem_bo *new_bo; |