diff options
author | Michel Dänzer <daenzer@vmware.com> | 2011-01-06 09:55:41 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-01-06 08:37:27 -0800 |
commit | 6358a60065eef167d4e5f4afd981ff26deeba80d (patch) | |
tree | 4eb54c991464ced0426d50525641bfbfe58b07d8 /exa | |
parent | f3480286aeb3009623d8d4b0202eadda0049552d (diff) |
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>
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_mixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |