diff options
author | Marcin Slusarz <[email protected]> | 2011-10-08 23:58:32 +0200 |
---|---|---|
committer | Marcin Slusarz <[email protected]> | 2011-10-09 14:49:30 +0200 |
commit | 90dcd6c89ab4afa55ca19d572a1a695cf55cb1b2 (patch) | |
tree | f32247353993da621aec44b1260db6b958a9c862 /src/gallium/drivers/nv50 | |
parent | f03810fbdd41012422f6920c2026c49927bcb820 (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/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c index fe8712d1765..0bd6057938b 100644 --- a/src/gallium/drivers/nv50/nv50_screen.c +++ b/src/gallium/drivers/nv50/nv50_screen.c @@ -502,8 +502,9 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev) screen->tls_size = tls_space * max_warps * 32; - debug_printf("max_warps = %i, tls_size = %"PRIu64" KiB\n", - max_warps, screen->tls_size >> 10); + if (nouveau_mesa_debug) + debug_printf("max_warps = %i, tls_size = %"PRIu64" KiB\n", + max_warps, screen->tls_size >> 10); ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 1 << 16, screen->tls_size, &screen->tls_bo); |