Mesa (master): x86-64: Don't print "Initializing x86-64 optimizations" in debug builds.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Apr 9 18:08:53 UTC 2012


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Apr  2 14:53:00 2012 -0700

x86-64: Don't print "Initializing x86-64 optimizations" in debug builds.

In "release" builds, Mesa would print this message if the MESA_DEBUG
variable was set.  Make it so for debug builds as well.

I build debug builds all the time, but I'm not debugging this.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/x86-64/x86-64.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/src/mesa/x86-64/x86-64.c b/src/mesa/x86-64/x86-64.c
index ac176ef..10564d9 100644
--- a/src/mesa/x86-64/x86-64.c
+++ b/src/mesa/x86-64/x86-64.c
@@ -64,17 +64,7 @@ extern void _mesa_x86_64_transform_points4_2d( XFORM_ARGS );
 #ifdef USE_X86_64_ASM
 static void message( const char *msg )
 {
-   GLboolean debug;
-#ifdef DEBUG
-   debug = GL_TRUE;
-#else
-   if ( _mesa_getenv( "MESA_DEBUG" ) ) {
-      debug = GL_TRUE;
-   } else {
-      debug = GL_FALSE;
-   }
-#endif
-   if ( debug ) {
+   if (_mesa_getenv("MESA_DEBUG")) {
       _mesa_debug( NULL, "%s", msg );
    }
 }




More information about the mesa-commit mailing list