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

Dave Airlie airlied at gmail.com
Thu Jan 6 00:50:49 PST 2011


2011/1/6 Michel Dänzer <michel at daenzer.net>:
> From: Michel Dänzer <daenzer at vmware.com>
>
> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=32803 .
>
> Signed-off-by: Michel Dänzer <daenzer at vmware.com>

Reviewed-by: Dave Airlie <airlied at redhat.com>

> ---
>  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 ef20eb5..606f1e1 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,
> --
> 1.7.2.3
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list