diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-08-02 18:48:04 +0200 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2018-08-02 18:48:04 +0200 |
commit | ef2a6b818fa47ad571bb0bc105aa8193d51a2190 (patch) | |
tree | f6712196b594a6d5d22f7a438a421f5eaca3c830 /src/radeon_dri3.c | |
parent | db28d35ce9fd07a2a4703f3df0633d4c8291ff9b (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>
Diffstat (limited to 'src/radeon_dri3.c')
-rw-r--r-- | src/radeon_dri3.c | 1 |
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; } |