[PATCH] xv: support AI44/IA44

Marcin Slusarz marcin.slusarz at gmail.com
Sat Sep 10 14:14:53 PDT 2011


---
 src/nouveau_xv.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c
index 30753fa..5a5337c 100644
--- a/src/nouveau_xv.c
+++ b/src/nouveau_xv.c
@@ -1426,7 +1426,15 @@ NVQueryImageAttributes(ScrnInfoPtr pScrn, int id,
 			pitches[0] = size; // 4*width
 		size *= *h; // 4*width*height
 		break;
+	case FOURCC_AI44:
+	case FOURCC_IA44:
+		size = *w; // width
+		if (pitches)
+			pitches[0] = size; // width
+		size *= *h; // width*height
+		break;
 	default:
+		xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Unknown colorspace: %x\n", id);
 		*w = *h = size = 0;
 		break;
 	}
-- 
1.7.6.1



More information about the mesa-dev mailing list