[PATCH xf86-video-ati 1/2] glamor: Set RADEON_CREATE_PIXMAP_DRI2 for DRI3 pixmaps

Alex Deucher alexdeucher at gmail.com
Thu Aug 2 17:11:08 UTC 2018


On Thu, Aug 2, 2018 at 1:05 PM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Not doing this resulted in falling back to software for DRI3 client
> presentation operations with ShadowPrimary.
>
> (Ported from amdgpu commit 2989d40ef74d9966e8e8df2ef7727b2cc48d4960)
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

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


> ---
>  src/radeon_dri3.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c
> index 688e594e1..7e89a2f0b 100644
> --- a/src/radeon_dri3.c
> +++ b/src/radeon_dri3.c
> @@ -169,6 +169,7 @@ static PixmapPtr radeon_dri3_pixmap_from_fd(ScreenPtr screen,
>
>                         if (priv) {
>                                 radeon_set_pixmap_private(pixmap, priv);
> +                               pixmap->usage_hint |= RADEON_CREATE_PIXMAP_DRI2;
>                                 return pixmap;
>                         }
>
> --
> 2.18.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list