[PATCH xf86-video-amdgpu] glamor: Set AMDGPU_CREATE_PIXMAP_DRI2 for DRI3 pixmaps
Alex Deucher
alexdeucher at gmail.com
Wed Jul 25 17:38:31 UTC 2018
On Wed, Jul 25, 2018 at 12:38 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.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> src/amdgpu_dri3.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/amdgpu_dri3.c b/src/amdgpu_dri3.c
> index 87e3d85c1..84a03dc36 100644
> --- a/src/amdgpu_dri3.c
> +++ b/src/amdgpu_dri3.c
> @@ -168,6 +168,7 @@ static PixmapPtr amdgpu_dri3_pixmap_from_fd(ScreenPtr screen,
>
> if (priv) {
> amdgpu_set_pixmap_private(pixmap, priv);
> + pixmap->usage_hint |= AMDGPU_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