intel: helper to debug bufmgr (disabled)
authorBrian Paul <brianp@vmware.com>
Thu, 3 Sep 2009 16:36:49 +0000 (10:36 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Sep 2009 17:45:17 +0000 (11:45 -0600)
src/mesa/drivers/dri/intel/intel_context.c

index 46f1a7f..ec96747 100644 (file)
@@ -640,6 +640,10 @@ intelInitContext(struct intel_context *intel,
       intel->maxBatchSize = BATCH_SZ;
 
    intel->bufmgr = intelScreen->bufmgr;
+
+   if (0) /* for debug */
+      drm_intel_bufmgr_set_debug(intel->bufmgr, 1);
+
    intel->ttm = intelScreen->ttm;
    if (intel->ttm) {
       int bo_reuse_mode;