diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2019-01-28 18:06:50 +0100 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2019-01-28 18:06:50 +0100 |
commit | 274703087f80342f51fa69c935bb9a1cb0c4ae47 (patch) | |
tree | 67b406eb0f74e53b6f601c2f487cca38624eb330 | |
parent | 6d1dfe2523e900517bd1e8743c87d6990a82c800 (diff) |
glamor: Avoid glamor_create_pixmap for pixmaps backing windows
If the compositing manager uses direct rendering (as is usually the case
these days), the storage of a pixmap allocated by glamor_create_pixmap
needs to be reallocated for sharing it with the compositing manager.
Instead, allocate pixmap storage which can be shared directly.
(Ported from amdgpu commit bf326f2ea19daa6c8da23d6788ff301ae70b8e69)
-rw-r--r-- | src/radeon_glamor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c index f1098381..3e676f2d 100644 --- a/src/radeon_glamor.c +++ b/src/radeon_glamor.c @@ -238,7 +238,7 @@ radeon_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, if (info->shadow_primary) { if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP) return fbCreatePixmap(screen, w, h, depth, usage); - } else { + } else if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP) { pixmap = glamor_create_pixmap(screen, w, h, depth, usage); if (pixmap) return pixmap; |