mesa: added VERBOSE_SWAPBUFFERS
authorBrian Paul <brianp@vmware.com>
Wed, 14 Oct 2009 22:24:35 +0000 (16:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 15 Oct 2009 01:08:39 +0000 (19:08 -0600)
src/mesa/main/context.c
src/mesa/main/debug.c
src/mesa/main/mtypes.h

index 95ff3495abe9dab570112274397c126b19a6a8f7..ea1ee228129cad404de659ea598ece12f7183979 100644 (file)
@@ -173,6 +173,8 @@ GLfloat _mesa_ubyte_to_float_color_tab[256];
 void
 _mesa_notifySwapBuffers(__GLcontext *ctx)
 {
+   if (MESA_VERBOSE & VERBOSE_SWAPBUFFERS)
+      _mesa_debug(ctx, "SwapBuffers\n");
    FLUSH_CURRENT( ctx, 0 );
    if (ctx->Driver.Flush) {
       ctx->Driver.Flush(ctx);
index 07ed51f5abe97a2c956570358d96825043e78ac5..490cc9c26b75c1b85ccadceba9023667137e06cc 100644 (file)
@@ -175,7 +175,8 @@ static void add_debug_flags( const char *debug )
       { "list",      VERBOSE_DISPLAY_LIST },
       { "lighting",  VERBOSE_LIGHTING },
       { "disassem",  VERBOSE_DISASSEM },
-      { "draw",      VERBOSE_DRAW }
+      { "draw",      VERBOSE_DRAW },
+      { "swap",      VERBOSE_SWAPBUFFERS }
    };
    GLuint i;
 
index 5699db5d4a8874c8ecb91c6ede38865691b2b49a..988bfe1e228cf883cd30bb5c3fe6de7f1c7c1f0f 100644 (file)
@@ -3110,7 +3110,8 @@ enum _verbose
    VERBOSE_PRIMS               = 0x0400,
    VERBOSE_VERTS               = 0x0800,
    VERBOSE_DISASSEM            = 0x1000,
-   VERBOSE_DRAW                 = 0x2000
+   VERBOSE_DRAW                 = 0x2000,
+   VERBOSE_SWAPBUFFERS          = 0x4000
 };