summaryrefslogtreecommitdiff
path: root/src/sna/sna_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r--src/sna/sna_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index e54c9862..27684245 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3282,6 +3282,8 @@ static void set_bo(PixmapPtr pixmap, struct kgem_bo *bo)
{
struct sna_pixmap *priv = sna_pixmap(pixmap);
+ assert((priv->pinned & PIN_PRIME) == 0);
+
if (priv->mapped) {
assert(!priv->shm && priv->stride);
pixmap->devPrivate.ptr = PTR(priv->ptr);