Mesa (master): mesa: print the Git SHA1 in GL_VERSION for ES1 and ES2.

Oliver McFadden omcfadde at kemper.freedesktop.org
Mon May 14 16:14:18 UTC 2012


Module: Mesa
Branch: master
Commit: bf78806133f10d187e016e0d689f02f2b29d5ea0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf78806133f10d187e016e0d689f02f2b29d5ea0

Author: Oliver McFadden <oliver.mcfadden at linux.intel.com>
Date:   Mon May  7 16:01:16 2012 +0300

mesa: print the Git SHA1 in GL_VERSION for ES1 and ES2.

Signed-off-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/version.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 607230b..90afecb 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -259,7 +259,11 @@ compute_version_es1(struct gl_context *ctx)
    ctx->VersionString = (char *) malloc(max);
    if (ctx->VersionString) {
       _mesa_snprintf(ctx->VersionString, max,
-		     "OpenGL ES-CM 1.%d Mesa " MESA_VERSION_STRING,
+		     "OpenGL ES-CM 1.%d Mesa " MESA_VERSION_STRING
+#ifdef MESA_GIT_SHA1
+		     " (" MESA_GIT_SHA1 ")"
+#endif
+		     ,
 		     ctx->VersionMinor);
    }
 }
@@ -289,7 +293,11 @@ compute_version_es2(struct gl_context *ctx)
    ctx->VersionString = (char *) malloc(max);
    if (ctx->VersionString) {
       _mesa_snprintf(ctx->VersionString, max,
-		     "OpenGL ES 2.0 Mesa " MESA_VERSION_STRING);
+		     "OpenGL ES 2.0 Mesa " MESA_VERSION_STRING
+#ifdef MESA_GIT_SHA1
+		     " (" MESA_GIT_SHA1 ")"
+#endif
+		     );
    }
 }
 




More information about the mesa-commit mailing list