From 03c7d675f6d12886b6bca8e0375888ecf1b393df Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Fri, 11 Dec 2009 15:47:05 +0100 Subject: dri2: Make the render targets tiled for pre-G80 cards. Signed-off-by: Francisco Jerez --- src/nouveau_dri2.c | 4 ++-- 1 file 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, -- cgit v1.2.3