summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-18 23:58:43 +0100
committerThomas White <taw@bitwiz.org.uk>2009-08-18 23:58:43 +0100
commitb0f4dd62426bab9839ecff9ea266c964427b1446 (patch)
tree1107698ae1a7912b64711c1cf7b09574b303fbcd
parente727d8668afba6c2e50ee2097ae163b751274ce8 (diff)
Make the buffer size for very small pixmaps sane
-rw-r--r--src/glamo-kms-exa.c6
1 files 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 ) {