Displaying 2 results from an estimated 2 matches for "nouveau_create_pixmap_scanout".
2011 Dec 07
0
[PATCH] dri2: fix allocation of Z16 depth attachments
...{
+		/* 'format' is just depth */
+		unsigned int depth = NOUVEAU_ALIGN(format, 2);
 		unsigned int usage_hint = NOUVEAU_CREATE_PIXMAP_TILED;
 
 		if (attachment == DRI2BufferDepth ||
@@ -55,7 +57,7 @@ nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment,
 			usage_hint |= NOUVEAU_CREATE_PIXMAP_SCANOUT;
 
 		ppix = pScreen->CreatePixmap(pScreen, pDraw->width,
-					     pDraw->height, pDraw->depth,
+					     pDraw->height, depth,
 					     usage_hint);
 	}
 
diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c
index 3219dbe..51cc66a 100644
--- a/src/nv_accel_common.c
+++ b/...
2014 Sep 09
1
[PATCH 1/2] accel_common: do not initialise the flags twice
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/nv_accel_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c
index 4484c1c..eebb0ab 100644
--- a/src/nv_accel_common.c
+++ b/src/nv_accel_common.c
@@ -37,7 +37,7 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp,
 	Bool tiled =