summaryrefslogtreecommitdiff
path: root/src/radeon_dri3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_dri3.c')
-rw-r--r--src/radeon_dri3.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c
index 993c7a77..3a7322e5 100644
--- a/src/radeon_dri3.c
+++ b/src/radeon_dri3.c
@@ -96,6 +96,16 @@ static PixmapPtr radeon_dri3_pixmap_from_fd(ScreenPtr screen,
{
PixmapPtr pixmap;
+#ifdef USE_GLAMOR
+ /* Avoid generating a GEM flink name if possible */
+ if (RADEONPTR(xf86ScreenToScrn(screen))->use_glamor) {
+ pixmap = glamor_pixmap_from_fd(screen, fd, width, height,
+ stride, depth, bpp);
+ if (pixmap)
+ return pixmap;
+ }
+#endif
+
if (depth < 8)
return NULL;