From 391900a670addec39515f924265bfa9f8bfa9ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 18 Mar 2015 12:56:07 +0900 Subject: glamor: Avoid generating GEM flink names for BOs shared via DRI3 v2 We can't create our own struct radeon_bo representation in this case because destroying that would make the GEM handle inaccessible to glamor as well. So just get the handle directly via dma-buf. v2: Close dma-buf file descriptor, pointed out by Axel Davy. Reviewed-by: Axel Davy Reviewed-by: Alex Deucher --- src/radeon_glamor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/radeon_glamor.h') diff --git a/src/radeon_glamor.h b/src/radeon_glamor.h index f450f0ee..7cef1a95 100644 --- a/src/radeon_glamor.h +++ b/src/radeon_glamor.h @@ -37,6 +37,7 @@ #ifndef GLAMOR_NO_DRI3 #define glamor_fd_from_pixmap glamor_dri3_fd_from_pixmap +#define glamor_pixmap_from_fd glamor_egl_dri3_pixmap_from_fd #endif Bool radeon_glamor_pre_init(ScrnInfoPtr scrn); -- cgit v1.2.3