[PATCH] DRI2: Clear old->devPrivate.ptr in fixup_glamor

Alex Deucher alexdeucher at gmail.com
Wed Apr 22 06:58:54 PDT 2015


On Wed, Apr 22, 2015 at 5:43 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> It doesn't point to the memory of the newly allocated BO. Fixes crash
> running piglit with Option "ShadowPrimary" enabled.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/radeon_dri2.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
> index 31a1ce7..6bb3dc6 100644
> --- a/src/radeon_dri2.c
> +++ b/src/radeon_dri2.c
> @@ -119,6 +119,7 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap)
>                                    0, 0,
>                                    pixmap->devKind,
>                                    NULL);
> +       old->devPrivate.ptr = NULL;
>
>         screen->DestroyPixmap(pixmap);
>
> --
> 2.1.4
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-driver-ati


More information about the xorg-driver-ati mailing list