Bug 93883

Summary: xserver's configure.ac enables XORG_DRIVER_MODESETTING even if libdrm version is too old
Product: xorg Reporter: Johannes Pointner <h4nn35.work>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: ARM   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Johannes Pointner 2016-01-27 11:48:08 UTC
In the xservers configure.ac is a section where it is checked if the libdrm version is new enough:

if test "x$DRM" = xyes; then
	dnl 2.4.46 is required for cursor hotspot support.
	PKG_CHECK_EXISTS(libdrm >= 2.4.46)
	XORG_DRIVER_MODESETTING=yes
fi

But the modesetting driver is enabled anyway.
I experienced this problem with xorg-xserver 1.17.2 in a yocto build environment.
May be something like
PKG_CHECK_EXISTS([libdrm >= 2.4.46], [XORG_DRIVER_MODESETTING=yes], [XORG_DRIVER_MODESETTING=no])
would solve the problem.
Comment 1 Julien Cristau 2016-01-27 19:32:47 UTC
commit bf23db42a4e5943129501223a47b48884cdeb62f
Author: Adam Jackson <ajax@redhat.com>
Date:   Wed Jan 27 11:50:13 2016 -0500

    modesetting: Require sufficiently new libdrm
    
    Bugzilla: https://bugs.freedesktop.org/93883
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Reviewed-by: Julien Cristau <jcristau@debian.org>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.