Use DEBUG_SYNC to switch between per-primitive and per-frame aubfile dumps.
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Sep 2006 12:49:52 +0000 (12:49 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Sep 2006 12:49:52 +0000 (12:49 +0000)
src/mesa/drivers/dri/i965/brw_draw.c

index f12fb4c7f3e825ba7956750b11594ccaf42d9c1d..cd821b9045a32cc3b4decf3464ae5afb1da711ba 100644 (file)
@@ -400,7 +400,7 @@ GLboolean brw_draw_prims( GLcontext *ctx,
       retval = brw_try_draw_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index, flags);
    }
 
-   if (intel->aub_file) {
+   if (intel->aub_file && (INTEL_DEBUG & DEBUG_SYNC)) {
       intelFinish( &intel->ctx );
       intel->aub_wrap = 1;
    }