From: Michel Dänzer <michel.daenzer@xxxxxxx> It means to stop using the shared pixmap backing. (Ported from radeon commit 1799680f7bd84e0618f34f4c7486799521ddaf83) Signed-off-by: Michel Dänzer <michel.daenzer at amd.com> --- src/amdgpu_bo_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c index 98eb04a64..6fd68846f 100644 --- a/src/amdgpu_bo_helper.c +++ b/src/amdgpu_bo_helper.c @@ -400,6 +400,9 @@ Bool amdgpu_set_shared_pixmap_backing(PixmapPtr ppix, void *fd_handle) uint32_t size = ppix->devKind * ppix->drawable.height; Bool ret; + if (ihandle == -1) + return amdgpu_set_pixmap_bo(ppix, NULL); + if (info->gbm) { struct amdgpu_buffer *bo; struct gbm_import_fd_data data; -- 2.18.0