summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2009-12-11 15:47:05 +0100
committerFrancisco Jerez <currojerez@riseup.net>2009-12-16 12:48:18 +0100
commit03c7d675f6d12886b6bca8e0375888ecf1b393df (patch)
tree839ae49bd5750c565de45e4649d95c674ec2a0e1
parent963aaeff6b414f371eff3e8ce016f7707c60f7c0 (diff)
dri2: Make the render targets tiled for pre-G80 cards.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r--src/nouveau_dri2.c4
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,