Merge another EXA fix from X.Org 1.9.4RC1:

EXA: Pad size of system memory copy for 1x1 pixmaps (bug #32803).
This commit is contained in:
matthieu 2011-02-02 20:47:08 +00:00
parent fba58a8a71
commit da0820c3bb

View File

@ -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,