From aeef03520f1b2a4b8638ff1ed4fbf19c9b35e7c8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 6 Sep 2012 11:46:53 +0100 Subject: [PATCH] sna/prime: Correct the pinning flag when importing the prime bo Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 678f687d..6baa37c1 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1046,7 +1046,7 @@ sna_set_shared_pixmap_backing(PixmapPtr pixmap, void *fd_handle) priv->stride = pixmap->devKind; priv->gpu_bo = bo; - priv->pinned |= PIN_DRI; + priv->pinned |= PIN_PRIME; close((intptr_t)fd_handle); return TRUE;