diff options
author | Emil Velikov <[email protected]> | 2014-01-10 23:36:16 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-01-18 18:47:27 +0000 |
commit | 8c2e7fd8460750543367053b1be9368cc38e1d6a (patch) | |
tree | 9587b089f9e43b090a8104661a1c5e27f0769a08 /src/gallium/state_trackers/egl | |
parent | 1c5e2965a0de296240dd8f5af12482164416b7f1 (diff) |
loader: introduce the loader util lib
All the various window system integration layers duplicate roughly the
same code for figuring out device and driver name, pci-id's, etc. Which
is sad. So extract it out into a loader util lib.
v2 (Emil)
* Separate the introduction of libloader from the code de-duplication.
* Strip out non-pci devices support.
* Add scons + Android build system support.
* Add VISIBILITY_CFLAGS to avoid exporting the loader funcs.
v3 (Emil)
* PIPE_OS_ANDROID is undefined at this scope, use ANDROID
* Make sure we define _EGL_NO_DRM when building only swrast
Signed-off-by: Rob Clark <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl')
-rw-r--r-- | src/gallium/state_trackers/egl/Makefile.am | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/SConscript | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl/Makefile.am b/src/gallium/state_trackers/egl/Makefile.am index c069c29c8c9..459fabc8692 100644 --- a/src/gallium/state_trackers/egl/Makefile.am +++ b/src/gallium/state_trackers/egl/Makefile.am @@ -66,6 +66,7 @@ libegl_la_SOURCES += $(drm_FILES) AM_CFLAGS += \ $(LIBDRM_CFLAGS) AM_CPPFLAGS += \ + -I$(top_srcdir)/src/loader \ -I$(top_srcdir)/src/gallium/winsys \ -I$(top_srcdir)/src/gbm/main \ -I$(top_srcdir)/src/gallium/state_trackers/gbm \ diff --git a/src/gallium/state_trackers/egl/SConscript b/src/gallium/state_trackers/egl/SConscript index bd0ee02d202..2a5db64b999 100644 --- a/src/gallium/state_trackers/egl/SConscript +++ b/src/gallium/state_trackers/egl/SConscript @@ -33,6 +33,7 @@ else: # XXX: Disabled as it depends on gbm, which is not yet built with scons env.Append(CPPDEFINES = ['HAVE_DRM_BACKEND']) env.Append(CPPPATH = [ + '#/src/loader', '#/src/gbm/main', '#/src/gallium/state_trackers/gbm', ]) |