dri: Add function to implement queries common to all Mesa drivers
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Oct 2013 20:28:21 +0000 (13:28 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Nov 2013 02:08:15 +0000 (18:08 -0800)
commit9dbc14abcffe92c5aa3057a5b62f585f61cce644
tree27120a68b23a5f5ccfc557a0b6727d5ba831232e
parent83ffe47be0e26dcbaf917807447d82d53bb2c13b
dri: Add function to implement queries common to all Mesa drivers

v2: Add assertions that the version string has the expected format.
This will catch build errors (or changes to the version string format)
in debug build without exposing release builds to buffer over-runs.
Suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/common/utils.c
src/mesa/drivers/dri/common/utils.h