From b0f4dd62426bab9839ecff9ea266c964427b1446 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 18 Aug 2009 23:58:43 +0100 Subject: Make the buffer size for very small pixmaps sane --- src/glamo-kms-exa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/glamo-kms-exa.c b/src/glamo-kms-exa.c index e7d78cf..6a78c79 100644 --- a/src/glamo-kms-exa.c +++ b/src/glamo-kms-exa.c @@ -476,8 +476,10 @@ static Bool GlamoKMSExaModifyPixmapHeader(PixmapPtr pPix, int width, int height, new_size = (width * height * depth) / 8; if ( new_size == 0 ) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, - "Zero-sized pixmap in ModifyPixmapHeader\n"); - return FALSE; + "Zero-sized pixmap in ModifyPixmapHeader" + " %ix%i %i bpp depth=%i\n", width, height, + bitsPerPixel, depth); + new_size = 1; } if ( priv->bo == NULL ) { -- cgit v1.2.3