diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2019-01-10 18:33:04 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2019-01-16 18:39:11 +0100 |
commit | bf326f2ea19daa6c8da23d6788ff301ae70b8e69 (patch) | |
tree | b84304e1f741b8995d5fe5f202e33ec438a573e8 /src | |
parent | ebd32b1c07208f8dbe853e089f5e4b7c6a7a658a (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.
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/amdgpu_glamor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c index 316870a..5b8d560 100644 --- a/src/amdgpu_glamor.c +++ b/src/amdgpu_glamor.c @@ -215,7 +215,7 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, usage |= AMDGPU_CREATE_PIXMAP_LINEAR | AMDGPU_CREATE_PIXMAP_GTT; - } else { + } else if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP) { pixmap = glamor_create_pixmap(screen, w, h, depth, usage); if (pixmap) return pixmap; |