summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-07-25 18:37:48 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-25 18:37:48 +0200
commit2989d40ef74d9966e8e8df2ef7727b2cc48d4960 (patch)
treed149b8ccc3349a4af35e961642287d22ee3af942 /src
parentf3b2ed37d683f8616a0a31ff63133ddb8fe1a4a3 (diff)
glamor: Set AMDGPU_CREATE_PIXMAP_DRI2 for DRI3 pixmaps
Not doing this resulted in falling back to software for DRI3 client presentation operations with ShadowPrimary. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_dri3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amdgpu_dri3.c b/src/amdgpu_dri3.c
index 87e3d85..84a03dc 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;
}