diff options
Diffstat (limited to 'src/nouveau_dri2.c')
-rw-r--r-- | 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, |