summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-10-14 22:17:58 +0200
committerFrancisco Jerez <currojerez@riseup.net>2010-10-22 15:33:06 +0200
commit4642d71bdffc04ce0dd458225541940c65f5443d (patch)
tree67cc23c9f2e3633a88c947994be0b92a8e20d8b4
parent75daada678d03d2e162f8003a6f2edcbe0525f92 (diff)
downloadxorg-driver-xf86-video-nouveau-4642d71bdffc04ce0dd458225541940c65f5443d.tar.gz
dri2: Give out buffers ready for scanout.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r--src/nouveau_dri2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index edb950f..66fe16c 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -49,6 +49,8 @@ nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment,
if (attachment == DRI2BufferDepth ||
attachment == DRI2BufferDepthStencil)
usage_hint |= NOUVEAU_CREATE_PIXMAP_ZETA;
+ else
+ usage_hint |= NOUVEAU_CREATE_PIXMAP_SCANOUT;
ppix = pScreen->CreatePixmap(pScreen, pDraw->width,
pDraw->height, pDraw->depth,