Bug 30796

Summary: mesa builds drivers for r300 and Intel even when not asked to
Product: Mesa Reporter: Michal Suchanek <hramrach>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Michal Suchanek 2010-10-12 03:02:46 UTC
./configure --disable-egl --disable-glu --disable-glut --enable-gallium-r600 --with-dri-drivers=r600 --with-state-trackers=dri,glx --enable-gallium-llvm --enable-debug

        prefix:          /usr/local
        exec_prefix:     ${prefix}
        libdir:          ${exec_prefix}/lib
        includedir:      ${prefix}/include

        Driver:          dri
        OSMesa:          no
        DRI drivers:     r600
        DRI driver dir:  ${libdir}/dri
        Use XCB:         no

        llvm:            yes
        llvm-config:     /usr/bin/llvm-config
        llvm-version:    2.6

        Gallium:         yes
        Gallium dirs:    auxiliary drivers state_trackers
        Target dirs:      dri-r300 dri-r600 dri-swrast
        Winsys dirs:     sw sw/xlib sw/dri i915/sw radeon/drm r600/drm
        Driver dirs:     softpipe failover galahad trace rbug identity llvmpipe svga i915 i965 r300 r600
        Trackers dirs:   dri glx

        Shared libs:     yes
        Static libs:     no
        EGL:             no
        GLU:             no
        GLw:             yes (Motif: no)
        glut:            no

        CFLAGS:          -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -g -fPIC
        CXXFLAGS:        -g -O2 -Wall -fvisibility=hidden -fno-strict-aliasing -g -fPIC
        Macros:          -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DUSE_X86_64_ASM
Comment 1 Michal Suchanek 2010-10-12 03:04:16 UTC
Specifically I have no idea why I have some i915 and r300 drivers when I asked to build r600 only.
Comment 2 Marek Olšák 2010-10-12 04:40:28 UTC
Gallium/r300 is built by default. You can disable it with the parameter --disable-gallium-radeon. There are other drivers and libs built by default, like Gallium/swrast, egl, glu.

Gallium/i915 is not actually built, only the source files are compiled for us to have everything compile-tested.
Comment 3 Michal Suchanek 2010-10-13 01:16:30 UTC
I can understand building swrast by default. It's useful to some extent on any hardware. However, r300 on a r600 card is completely useless.

At least now the r300g driver is actually installed when it is built.

Thanks

Michal
Comment 4 Marek Olšák 2010-10-13 02:55:17 UTC
The way I understand it is that when you type make && sudo make install, you should get all stable drivers installed. You disabled classic r300 by setting --with-dri-drivers=r600 (otherwise classic r300 would be built), selecting only classic r600 with that option (so you build both classic and gallium r600, why?). The Gallium drivers are only selected or deselected using --enable-gallium-something or --disable-gallium-something, respectively, and there are some default enables, as you noticed. The selected Gallium drivers are listed in "Target dirs", the other "dirs" are usually just some internal dependencies you don't have to care about.

Of course, what should or should not be built by default may be revisited sometime. I am closing this as it's not a bug.

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.