glx: Fix incorrect use of dri_interface.h version defines in driver probing.
authorEric Anholt <eric@anholt.net>
Fri, 15 Nov 2013 01:40:47 +0000 (17:40 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 5 Dec 2013 18:51:01 +0000 (10:51 -0800)
commitac772cb187ddf7e04b8f4b3a071b90f18f4488d0
tree58ff10f1fbcf8e75d14739740ec512cc885ae7b0
parent6e926b18ca1b182253bac435a1d53caaff7ffff6
glx: Fix incorrect use of dri_interface.h version defines in driver probing.

If we extend __DRI_CORE or __DRI_SWRAST in dri_interface.h to allow a
new version, it shouldn't make old server code retroactively require
the new version from swrast drivers.

Notably, new Mesa defines __DRI_SWRAST version 4, but we still want to
be able to probe version 1 drivers, since we don't use any features
beyond version 1 of the struct.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
glx/glxdriswrast.c