From 6358a60065eef167d4e5f4afd981ff26deeba80d Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Thu, 6 Jan 2011 09:55:41 +0100 Subject: EXA: Pad size of system memory copy for 1x1 pixmaps (bug #32803). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://bugs.freedesktop.org/show_bug.cgi?id=32803 . Signed-off-by: Michel Dänzer Reviewed-by: Dave Airlie Signed-off-by: Keith Packard --- exa/exa_mixed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exa/exa_mixed.c b/exa/exa_mixed.c index ef20eb502..606f1e1f9 100644 --- a/exa/exa_mixed.c +++ b/exa/exa_mixed.c @@ -98,7 +98,7 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth, pExaPixmap->use_gpu_copy = FALSE; if (w == 1 && h == 1) { - pExaPixmap->sys_ptr = malloc((pPixmap->drawable.bitsPerPixel + 7) / 8); + pExaPixmap->sys_ptr = malloc(paddedWidth); /* Set up damage tracking */ pExaPixmap->pDamage = DamageCreate(exaDamageReport_mixed, NULL, -- cgit v1.2.3