pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Feb 2014 16:44:14 +0000 (16:44 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Feb 2014 14:52:27 +0000 (14:52 +0000)
commit3445e8bb921545f74e2b6a823d47fa29352e9262
tree4d53688fbb389a511157263b6fc13c53d71e680f
parent0e7c30233f10d834ee26b7d6d32b397625e11e10
pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB

The above function implies using the the xlib winsys, which
has additional library dependencies that should not be forced.

Make the software xlib pipe loader optional thus avoid all
the dependency hell. A user that wishes to use the particular
pipe-loader would need to set the following within configure.ac.

 enable_gallium_xlib_loader=yes

v2:
 - Wrap sw/xlib/xlib_sw_winsys.h to handle compilation on systems
lacking X11 headers. Spotted by Christian Prochaska.

Tested-by: Tom Stellard <thomas.stellard@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75356
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac
src/gallium/auxiliary/pipe-loader/Makefile.am
src/gallium/auxiliary/pipe-loader/pipe_loader.h
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
src/gallium/targets/gbm/Makefile.am
src/gallium/targets/opencl/Makefile.am
src/gallium/targets/xa/Makefile.am
src/gallium/tests/trivial/Makefile.am