From: Michel Dänzer <michel.daen...@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.daen...@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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to