summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
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.h
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.h')
-rw-r--r--src/sna/sna.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 6474d11c..b3e38a3c 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -142,10 +142,11 @@ struct sna_pixmap {
#define SOURCE_BIAS 4
uint16_t source_count;
- uint8_t pinned :3;
+ uint8_t pinned :4;
#define PIN_SCANOUT 0x1
-#define PIN_DRI 0x2
-#define PIN_PRIME 0x4
+#define PIN_DRI2 0x2
+#define PIN_DRI3 0x4
+#define PIN_PRIME 0x8
uint8_t create :4;
uint8_t mapped :2;
#define MAPPED_NONE 0