[Mesa-dev] [PATCH 39/40] mesa: add helper to create cache name string

Timothy Arceri tarceri at itsqueeze.com
Tue Feb 7 03:42:43 UTC 2017


---
 src/mesa/main/version.c | 9 +++++++++
 src/mesa/main/version.h | 3 +++
 2 files changed, 12 insertions(+)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 85ec9de..daf0dcb 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -110,6 +110,15 @@ exit:
    *compat_context = override[api].compat_suffix;
 }
 
+const char *
+_mesa_create_cache_version_string(void)
+{
+   return "Mesa_" PACKAGE_VERSION
+#ifdef MESA_GIT_SHA1
+          "_" MESA_GIT_SHA1;
+#endif
+}
+
 /**
  * Builds the Mesa version string.
  */
diff --git a/src/mesa/main/version.h b/src/mesa/main/version.h
index ee7cb75..57981a0 100644
--- a/src/mesa/main/version.h
+++ b/src/mesa/main/version.h
@@ -30,6 +30,9 @@
 #include "mtypes.h"
 
 
+const char *
+_mesa_create_cache_version_string(void);
+
 extern GLuint
 _mesa_get_version(const struct gl_extensions *extensions,
                   struct gl_constants *consts, gl_api api);
-- 
2.9.3



More information about the mesa-dev mailing list