summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-03-18 12:56:07 +0900
committerMichel Dänzer <michel@daenzer.net>2015-03-25 18:29:40 +0900
commit391900a670addec39515f924265bfa9f8bfa9ec0 (patch)
tree66cc9fa6a63a476f3ea8e09e699b0416dbed4f25 /src/radeon_glamor.h
parentdfad91fffb5bd013785223b42d78886df839eacf (diff)
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 <axel.davy@ens.fr> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_glamor.h')
-rw-r--r--src/radeon_glamor.h1
1 files changed, 1 insertions, 0 deletions
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);