[PATCH xserver 1/3] modesetting/drmmode: Remove unused flink call

Daniel Stone daniels at collabora.com
Fri Mar 23 13:50:23 UTC 2018


We don't use flink in the GetFB import path anymore, as we do an
FD-based import instead.

Signed-off-by: Daniel Stone <daniels at collabora.com>
---
 hw/xfree86/drivers/modesetting/drmmode_display.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
index 6f636ba7b..4b22abd0f 100644
--- a/hw/xfree86/drivers/modesetting/drmmode_display.c
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
@@ -1064,7 +1064,6 @@ create_pixmap_for_fbcon(drmmode_ptr drmmode, ScrnInfoPtr pScrn, int fbcon_id)
 {
     PixmapPtr pixmap = drmmode->fbcon_pixmap;
     drmModeFBPtr fbcon;
-    struct drm_gem_flink flink;
     ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
     Bool ret;
 
@@ -1080,12 +1079,6 @@ create_pixmap_for_fbcon(drmmode_ptr drmmode, ScrnInfoPtr pScrn, int fbcon_id)
         fbcon->height != pScrn->virtualY)
         goto out_free_fb;
 
-    flink.handle = fbcon->handle;
-    if (ioctl(drmmode->fd, DRM_IOCTL_GEM_FLINK, &flink) < 0) {
-        xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Couldn't flink fbcon handle\n");
-        goto out_free_fb;
-    }
-
     pixmap = drmmode_create_pixmap_header(pScreen, fbcon->width,
                                           fbcon->height, fbcon->depth,
                                           fbcon->bpp, fbcon->pitch, NULL);
-- 
2.16.2



More information about the xorg-devel mailing list