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: Michel Dänzer <daenzer@vmware.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f3480286ae
commit
6358a60065
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue