summaryrefslogtreecommitdiff
path: root/src/sna/sna_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-09-06 11:38:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-09-06 11:43:48 +0100
commit9bdf46d6c1a29b7b9e3d35e39a2e789334c0e1be (patch)
tree9acecde0baef2d52b5639604194fde0e1b6e041b /src/sna/sna_display.c
parent39c4be2b0be66ed83bf059d3007f4143325e340d (diff)
sna/prime: Distinguish forms of pinned pixmap
So that we can allow prime to replace the backing bo of currently exported pixmaps through DRI2. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r--src/sna/sna_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 59e128bc..5d906539 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -967,7 +967,7 @@ static struct kgem_bo *sna_crtc_attach(xf86CrtcPtr crtc)
if (!sna_crtc_enable_shadow(sna, sna_crtc))
return NULL;
- bo = sna_pixmap_pin(sna_crtc->scanout_pixmap);
+ bo = sna_pixmap_pin(sna_crtc->scanout_pixmap, PIN_SCANOUT);
if (bo == NULL)
return NULL;
@@ -1009,7 +1009,7 @@ static struct kgem_bo *sna_crtc_attach(xf86CrtcPtr crtc)
} else {
DBG(("%s: attaching to framebuffer\n", __FUNCTION__));
sna_crtc_disable_shadow(sna, sna_crtc);
- bo = sna_pixmap_pin(sna->front);
+ bo = sna_pixmap_pin(sna->front, PIN_SCANOUT);
if (bo == NULL)
return NULL;