glx: Fix build in GLX_DIRECT_RENDERING !GLX_USE_APPLEGL !GLX_USE_DRM case
authorJon TURNEY <jon.turney@dronecode.org.uk>
Mon, 2 Jun 2014 17:52:15 +0000 (18:52 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 10 Jun 2014 09:32:22 +0000 (10:32 +0100)
commitf647a722da51964412588f8ac86bab1c314448c5
tree12b1b353adaf73d327c04ce2c0eaf433ab97c858
parent7a4527447777319b0efa29d6f57a24c7d02271b6
glx: Fix build in GLX_DIRECT_RENDERING !GLX_USE_APPLEGL !GLX_USE_DRM case

Some untangling to fix building in the dri_platform=none, --enable-driglx-direct
case, where only driswast can be used.

Turn the test for including the glXGetScreenDriver()/glXGetScreenDriver()
interface used by xdriinfo from !GLX_USE_APPLEGL into a positive form, as it is
only useful when dri_platform=drm

Add additional GLX_USE_DRM tests so DRI[123] renderers are only used when
dri_platform=drm

Note that swrast and indirect must still be disabled in the APPLEGL case at the
moment, which makes things more complex than they need to be.  More untangling
is needed to allow that

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac
src/glx/glxcmds.c
src/glx/glxext.c