summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_buffer.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_buffer.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_buffer.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c
index 01d3aa46d0e..60d8e37a554 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.c
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.c
@@ -431,7 +431,8 @@ nouveau_buffer_migrate(struct nouveau_context *nv,
/* keep a system memory copy of our data in case we hit a fallback */
if (!nouveau_buffer_data_fetch(buf, buf->bo, buf->offset, size))
return FALSE;
- debug_printf("migrating %u KiB to VRAM\n", size / 1024);
+ if (nouveau_mesa_debug)
+ debug_printf("migrating %u KiB to VRAM\n", size / 1024);
}
offset = buf->offset;