sna/prime: Correct the pinning flag when importing the prime bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-09-06 11:46:53 +01:00
parent 9bdf46d6c1
commit aeef03520f
1 changed files with 1 additions and 1 deletions

View File

@ -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;