driCheckDriDdxDrmVersion uses a function that is not available to
authorIan Romanick <idr@us.ibm.com>
Wed, 2 Jun 2004 22:48:03 +0000 (22:48 +0000)
committerIan Romanick <idr@us.ibm.com>
Wed, 2 Jun 2004 22:48:03 +0000 (22:48 +0000)
commit5b98ada88071a752b6000756949a1951183cdd0b
tree99e88ed38d4fe16e62fdb1ee3e964dfe8891daf8
parentffb36d57a5f6359b5b91b73af60482a0016dd431
driCheckDriDdxDrmVersion uses a function that is not available to
drivers when DRI_NEW_INTERFACE_ONLY is defined.  #ifndef it away in
that situation.

Add a new function, driCheckDriDdxDrmVersion2, that is passed in the
version information that is already supplied to __driCreateNewScreen.
Part of the reason that information is supplied to
__driCreateNewScreen is so that the driver doesn't have to make those
calls to get it!

Modify all drivers that support the new interface to use the new
function instead of the old.  As soon as all drivers support the new
interface, driCheckDriDdxDrmVersion can be removed.
src/mesa/drivers/dri/common/utils.c
src/mesa/drivers/dri/common/utils.h
src/mesa/drivers/dri/i810/i810screen.c
src/mesa/drivers/dri/i830/i830_screen.c
src/mesa/drivers/dri/mach64/mach64_screen.c
src/mesa/drivers/dri/mga/mga_xmesa.c
src/mesa/drivers/dri/r200/r200_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/tdfx/tdfx_screen.c