From 27674c41352dc78ad79f67cebca16d7896cd2093 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 19 Nov 2007 15:26:14 -0800 Subject: [965] Convert DBG macro to use FILE_DEBUG_FLAG like i915. --- src/mesa/drivers/dri/i965/intel_context.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/i965/intel_context.c') diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 49431b2a0b2..b825078761b 100644 --- a/src/mesa/drivers/dri/i965/intel_context.c +++ b/src/mesa/drivers/dri/i965/intel_context.c @@ -239,6 +239,9 @@ static const struct dri_debug_control debug_control[] = { "wm", DEBUG_WM }, { "vs", DEBUG_VS }, { "bat", DEBUG_BATCH }, + { "blit", DEBUG_BLIT}, + { "mip", DEBUG_MIPTREE}, + { "reg", DEBUG_REGION}, { NULL, 0 } }; @@ -644,7 +647,10 @@ static void intelContendedLock( struct intel_context *intel, GLuint flags ) /* Lost context? */ if (sarea->ctxOwner != me) { - DBG("Lost Context: sarea->ctxOwner %x me %x\n", sarea->ctxOwner, me); + if (INTEL_DEBUG & DEBUG_BUFMGR) { + fprintf(stderr, "Lost Context: sarea->ctxOwner %x me %x\n", + sarea->ctxOwner, me); + } sarea->ctxOwner = me; intel->vtbl.lost_hardware( intel ); } @@ -653,7 +659,10 @@ static void intelContendedLock( struct intel_context *intel, GLuint flags ) * between contexts which all share a local buffer manager. */ if (sarea->texAge != my_bufmgr) { - DBG("Lost Textures: sarea->texAge %x my_bufmgr %x\n", sarea->ctxOwner, my_bufmgr); + if (INTEL_DEBUG & DEBUG_BUFMGR) { + fprintf(stderr, "Lost Textures: sarea->texAge %x my_bufmgr %x\n", + sarea->ctxOwner, my_bufmgr); + } sarea->texAge = my_bufmgr; bm_fake_NotifyContendedLockTake( intel ); } -- cgit v1.2.3