summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/utils.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-10-11 13:28:21 -0700
committerIan Romanick <[email protected]>2013-11-07 18:08:15 -0800
commit9dbc14abcffe92c5aa3057a5b62f585f61cce644 (patch)
tree27120a68b23a5f5ccfc557a0b6727d5ba831232e /src/mesa/drivers/dri/common/utils.h
parent83ffe47be0e26dcbaf917807447d82d53bb2c13b (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/utils.h')
-rw-r--r--src/mesa/drivers/dri/common/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/utils.h b/src/mesa/drivers/dri/common/utils.h
index e3b3940da30..5d6ef879eb8 100644
--- a/src/mesa/drivers/dri/common/utils.h
+++ b/src/mesa/drivers/dri/common/utils.h
@@ -65,4 +65,7 @@ int
driIndexConfigAttrib(const __DRIconfig *config, int index,
unsigned int *attrib, unsigned int *value);
+int
+driQueryRendererIntegerCommon(__DRIscreen *psp, int param, int *value);
+
#endif /* DRI_DEBUG_H */