Signed-off-by: Francisco Jerez <[email protected]>
---
 src/nouveau_dri2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index a480a29..4bc019b 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -44,11 +44,11 @@ nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int 
attachment,
 
                ppix->refcnt++;
        } else {
-               unsigned int usage_hint = 0;
+               unsigned int usage_hint = NOUVEAU_CREATE_PIXMAP_TILED;
 
                if (attachment == DRI2BufferDepth ||
                    attachment == DRI2BufferDepthStencil)
-                       usage_hint = NOUVEAU_CREATE_PIXMAP_ZETA;
+                       usage_hint |= NOUVEAU_CREATE_PIXMAP_ZETA;
 
                ppix = pScreen->CreatePixmap(pScreen, pDraw->width,
                                             pDraw->height, pDraw->depth,
-- 
1.6.4.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to