[Nouveau] [PATCH 2/2] dri2: Make the render targets tiled for pre-G80 cards.

Francisco Jerez currojerez at riseup.net
Fri Dec 11 10:35:42 PST 2009


Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
 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



More information about the Nouveau mailing list