mesa/src
Eric Anholt 1925a9aebd i965: Build the driver into a shared mesa_dri_drivers.so .
Previously, we've split things such that mesa core is in libdricore,
exposing the whole Mesa core interface in the global namespace, and the
i965_dri.so code all links against that.  Along with polluting application
namespace terribly, it requires extra PLT indirections and prevents LTO.

Instead, we can build all of the driver contents into the same .so with
just a few symbols exposed to be referenced from the actual driver .so
file, allowing LTO and reducing our exposed symbol count massively.

FPS improvement on GLB2.7 with INTEL_NO_HW=1: 2.61061% +/- 1.16957% (n=50)
(without LTO, just the PLT reductions from this commit)

Note that the X Server requires commit
7ecfab47eb221dbb996ea6c033348b8eceaeb893 to successfully load this driver!

v2: Set a global driverAPI variable so loaders don't have to update to
    createNewScreen2() (though they may want to for thread safety).
v3: Drop AM_CPPFLAGS addition (Emil pointed out I'd missed some cflags
    that would be necessary, though only if we actually relied on them).
v4: Fix install with DESTDIR set.

Reviewed-by: Matt Turner <mattst88@gmail.com> (v1)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (v2)
2013-10-24 14:12:58 -07:00
..
egl dri: Pass in the dlsym()ed driver extension to screen creation. 2013-10-24 14:04:20 -07:00
gallium dri: Move driver config options to dri driver extensions. 2013-10-24 14:04:20 -07:00
gbm dri: Pass in the dlsym()ed driver extension to screen creation. 2013-10-24 14:04:20 -07:00
getopt
glsl glsl: silence unused 'var' variable warning 2013-10-24 10:45:47 -06:00
glx dri: Pass in the dlsym()ed driver extension to screen creation. 2013-10-24 14:04:20 -07:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi mesa: remove remnants of GL_MESA_shader_debug 2013-10-22 08:20:45 -06:00
mesa i965: Build the driver into a shared mesa_dri_drivers.so . 2013-10-24 14:12:58 -07:00
Makefile.am gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-12 15:16:22 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00