summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_mm.c
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2011-10-08 23:58:32 +0200
committerMarcin Slusarz <[email protected]>2011-10-09 14:49:30 +0200
commit90dcd6c89ab4afa55ca19d572a1a695cf55cb1b2 (patch)
treef32247353993da621aec44b1260db6b958a9c862 /src/gallium/drivers/nouveau/nouveau_mm.c
parentf03810fbdd41012422f6920c2026c49927bcb820 (diff)
nouveau: hide some debugging messages behind environment variable
They spam console, but are not very useful - hide them behind NOUVEAU_MESA_DEBUG environment variable.
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_mm.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_mm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_mm.c b/src/gallium/drivers/nouveau/nouveau_mm.c
index 2a4e322e8eb..8d0b7bfe99a 100644
--- a/src/gallium/drivers/nouveau/nouveau_mm.c
+++ b/src/gallium/drivers/nouveau/nouveau_mm.c
@@ -145,8 +145,9 @@ mm_slab_new(struct nouveau_mman *cache, int chunk_order)
cache->allocated += size;
- debug_printf("MM: new slab, total memory = %"PRIu64" KiB\n",
- cache->allocated / 1024);
+ if (nouveau_mesa_debug)
+ debug_printf("MM: new slab, total memory = %"PRIu64" KiB\n",
+ cache->allocated / 1024);
return PIPE_OK;
}