From 9dbc14abcffe92c5aa3057a5b62f585f61cce644 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 11 Oct 2013 13:28:21 -0700 Subject: 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 Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/common/utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/drivers/dri/common/utils.h') 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 */ -- cgit v1.2.3