modesetting/drmmode: Remove unused flink call
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@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
be087778a0
commit
7004a7c3c9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user