Commit 6358a600 authored by Michel Dänzer's avatar Michel Dänzer Committed by Keith Packard
Browse files

EXA: Pad size of system memory copy for 1x1 pixmaps (bug #32803).

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=32803

 .
Signed-off-by: default avatarMichel Dänzer <daenzer@vmware.com>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent f3480286
...@@ -98,7 +98,7 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth, ...@@ -98,7 +98,7 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth,
pExaPixmap->use_gpu_copy = FALSE; pExaPixmap->use_gpu_copy = FALSE;
if (w == 1 && h == 1) { if (w == 1 && h == 1) {
pExaPixmap->sys_ptr = malloc((pPixmap->drawable.bitsPerPixel + 7) / 8); pExaPixmap->sys_ptr = malloc(paddedWidth);
/* Set up damage tracking */ /* Set up damage tracking */
pExaPixmap->pDamage = DamageCreate(exaDamageReport_mixed, NULL, pExaPixmap->pDamage = DamageCreate(exaDamageReport_mixed, NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment