summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-08-02 18:48:04 +0200
committerMichel Dänzer <michel.daenzer@amd.com>2018-08-02 18:48:04 +0200
commitef2a6b818fa47ad571bb0bc105aa8193d51a2190 (patch)
treef6712196b594a6d5d22f7a438a421f5eaca3c830
parentdb28d35ce9fd07a2a4703f3df0633d4c8291ff9b (diff)
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 <alexander.deucher@amd.com>
-rw-r--r--src/radeon_dri3.c1
1 files changed, 1 insertions, 0 deletions
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;
}