OSDN Git Service

[965] Hook up DEBUG_BUFMGR output for bufmgr_fake.
authorEric Anholt <eric@anholt.net>
Mon, 10 Dec 2007 22:58:53 +0000 (14:58 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 10 Dec 2007 22:58:53 +0000 (14:58 -0800)
src/mesa/drivers/dri/i965/intel_context.c

index 73f4f96..4737209 100644 (file)
@@ -470,6 +470,8 @@ GLboolean intelInitContext( struct intel_context *intel,
 
    INTEL_DEBUG  = driParseDebugString( getenv( "INTEL_DEBUG" ),
                                       debug_control );
+   if (!intel->intelScreen->ttm && (INTEL_DEBUG & DEBUG_BUFMGR))
+      dri_bufmgr_fake_set_debug(intel->intelScreen->bufmgr, GL_TRUE);
 
    intel_update_screen_regions(intel);