Bug 75126

Summary: configure: error: classic DRI driver 'yes' does not exist
Product: Mesa Reporter: Vinson Lee <vlee>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: medium CC: emil.l.velikov, mattst88
Version: gitKeywords: regression
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: configure: use default dri drivers whenever opengl and dri are enabled

Description Vinson Lee 2014-02-18 00:32:46 UTC
mesa: adad8fb2e947e3ea9e9d84cb3722e46de91346e4 (master)

$ ./autogen.sh --disable-dri --with-gallium-drivers=swrast
[...]
checking for LIBDRM... yes
checking for LIBUDEV... yes
configure: error: classic DRI driver 'yes' does not exist

ee55500c22a000d95ef4e5855b150f35ea0b5bba is the first bad commit
commit ee55500c22a000d95ef4e5855b150f35ea0b5bba
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Tue Feb 4 17:26:38 2014 +0000

    configure: cleanup classic dri drivers handling
    
    * Make sure that only drivers that are handled by configure.ac
    are included in DRI_DIRS.
    * Change with_dri_drivers default value to auto, and set enable
    autodetection, when enable_opengl is on.
    
    v2: Move "test" to the correct location.
    v3: Squash DRI_DIRS handling before the switch statement.
    Suggested by Ilia Mirkin
    
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Matt Turner <mattst88@gmail.com>

:100644 100644 ee6d253664b9e1341521fcc58167bffa9a991033 0c9044b5e506f2d01d73fd8faf57f7d323274fe9 M	configure.ac
bisect run success
Comment 1 Emil Velikov 2014-02-18 01:17:38 UTC
Created attachment 94247 [details] [review]
configure: use default dri drivers whenever opengl and dri are enabled

Easily reproduced and fixed with the above patch.

Vinson can we have a list of the configurations that you're building ? It would be rather useful.

-Emil
Comment 2 Brad King 2014-02-20 17:25:30 UTC
I encountered the same issue and can confirm that 0001-configure-use-default-dri-drivers-whenever-opengl-an.patch fixes it for me.  Thanks!
Comment 3 Emil Velikov 2014-02-21 22:52:53 UTC
Pushed to master

commit 9eae750317b52d05448ec327ec7499908a4653cf
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Tue Feb 18 00:57:24 2014 +0000

    configure: use default dri drivers whenever opengl and dri are enabled

    Commit ee55500c22a(configure: cleanup classic dri drivers handling)
    cleaned up the logic handling autodetection of dri drivers, but missed
    the case when one can explicitly disable dri, and still request opengl.

    Fixes build issues for the following
    ./autogen.sh --disable-dri --with-gallium-drivers=swrast

    While we're here, explicitly clear with_dri_drivers whenever building
    without such drivers to prevent choking later on.

    v2: Simplify with_dri_drivers handling.

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.