From ef2a6b818fa47ad571bb0bc105aa8193d51a2190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 2 Aug 2018 18:48:04 +0200 Subject: [PATCH] glamor: Set RADEON_CREATE_PIXMAP_DRI2 for DRI3 pixmaps Not doing this resulted in falling back to software for DRI3 client presentation operations with ShadowPrimary. (Ported from amdgpu commit 2989d40ef74d9966e8e8df2ef7727b2cc48d4960) Reviewed-by: Alex Deucher --- src/radeon_dri3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c index 688e594e..7e89a2f0 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; }