svga: disable a debug_printf() call
authorBrian Paul <brianp@vmware.com>
Fri, 11 Feb 2011 21:30:31 +0000 (14:30 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 17 Feb 2011 00:07:02 +0000 (17:07 -0700)
src/gallium/drivers/svga/svga_resource_buffer.c

index f12e2b686270230b600dba255a9f04d096b869ae..11c868a89b130e6effdc0209f287fd6fe7e5059a 100644 (file)
@@ -105,9 +105,12 @@ svga_buffer_map_range( struct pipe_screen *screen,
           * We can't create a hardware buffer big enough, so create a malloc
           * buffer instead.
           */
-         debug_printf("%s: failed to allocate %u KB of DMA, splitting DMA transfers\n",
-                      __FUNCTION__,
-                      (sbuf->b.b.width0 + 1023)/1024);
+         if (0) {
+            debug_printf("%s: failed to allocate %u KB of DMA, "
+                         "splitting DMA transfers\n",
+                         __FUNCTION__,
+                         (sbuf->b.b.width0 + 1023)/1024);
+         }
 
          sbuf->swbuf = align_malloc(sbuf->b.b.width0, 16);
       }