[PATCH] Don't call radeon_get_pixmap_private() when using EXA

Alex Deucher alexdeucher at gmail.com
Mon Apr 27 06:04:53 PDT 2015


On Mon, Apr 27, 2015 at 2:08 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> It only works when using glamor.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90169
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

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

> ---
>  src/drmmode_display.c | 3 ++-
>  src/radeon_glamor.c   | 6 ------
>  2 files changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 5af5900..06d1ec0 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -150,7 +150,8 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,
>                 }
>         }
>
> -       if (!radeon_glamor_create_textured_pixmap(pixmap,
> +       if (info->use_glamor &&
> +           !radeon_glamor_create_textured_pixmap(pixmap,
>                                                   radeon_get_pixmap_private(pixmap))) {
>                 pScreen->DestroyPixmap(pixmap);
>                 return NULL;
> diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
> index f00967f..4b6b024 100644
> --- a/src/radeon_glamor.c
> +++ b/src/radeon_glamor.c
> @@ -153,12 +153,6 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
>  Bool
>  radeon_glamor_create_textured_pixmap(PixmapPtr pixmap, struct radeon_pixmap *priv)
>  {
> -       ScrnInfoPtr scrn = xf86ScreenToScrn(pixmap->drawable.pScreen);
> -       RADEONInfoPtr info = RADEONPTR(scrn);
> -
> -       if ((info->use_glamor) == 0)
> -               return TRUE;
> -
>         return glamor_egl_create_textured_pixmap(pixmap, priv->bo->handle,
>                                                  pixmap->devKind);
>  }
> --
> 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