summaryrefslogtreecommitdiff
path: root/src/sna/sna_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-31 10:24:58 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-31 15:36:18 +0000
commitfb15cf2294da20bfc375ae62443b822770850316 (patch)
tree4087921c12f5894331477e55bbdd102a0a0f2779 /src/sna/sna_display.c
parent281425551bdab7eb38ae167a3205b14ae3599c49 (diff)
sna: Make sure the shadow pixmap is suitable for scanout
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, 3 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index a751354b..8e141c61 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -749,7 +749,9 @@ sna_crtc_shadow_allocate(xf86CrtcPtr crtc, int width, int height)
DBG(("%s(%d, %d)\n", __FUNCTION__, width, height));
- shadow = scrn->pScreen->CreatePixmap(scrn->pScreen, width, height, scrn->depth, 0);
+ shadow = scrn->pScreen->CreatePixmap(scrn->pScreen,
+ width, height, scrn->depth,
+ SNA_CREATE_FB);
if (!shadow)
return NULL;