summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-22 13:34:35 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-22 13:37:00 +0000
commit0ee29c4ea3b05e9361635a2ef6e7b92c160d68cf (patch)
treebcd768fd12b348e6c7b70ff9daa1986a7cee83b8 /src/sna/sna_accel.c
parentf0021ab2a66fb7c84758ad482f47f023b862360b (diff)
uxa,sna: Prevent bo exchange when pinned for non-DRI2 clients
With the advent of DRI3 (and previously with Prime and Glamor) we have external clients who rely on the pixmap<->bo mapping being invariant. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 7238cbe6..a68e5fb7 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1040,7 +1040,7 @@ sna_share_pixmap_backing(PixmapPtr pixmap, ScreenPtr slave, void **fd_handle)
pixmap->drawable.width, pixmap->drawable.height,
pixmap->drawable.serialNumber));
- if (priv->pinned & ~(PIN_DRI | PIN_PRIME)) {
+ if (priv->pinned) {
DBG(("%s: can't convert pinned bo\n", __FUNCTION__));
return FALSE;
}