summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2005-01-21 09:50:48 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2005-01-21 09:50:48 +0000
commite51b0b1d3072719090f8df3c6673d99fbbbf5a73 (patch)
tree8f643497b82f7001a1320aa64e6689f01faa7021 /src/mesa/drivers/dri
parentfa15f6c840bcab5a37e42bca4b80668024352c98 (diff)
silence the 'using AGP/PCI' string unless VIA_DEBUG is used.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_fb.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_fb.c b/src/mesa/drivers/dri/unichrome/via_fb.c
index 241bf0b9a3..b590e833b6 100644
--- a/src/mesa/drivers/dri/unichrome/via_fb.c
+++ b/src/mesa/drivers/dri/unichrome/via_fb.c
@@ -78,12 +78,15 @@ via_alloc_dma_buffer(viaContextPtr vmesa)
vmesa->useAgp =
( 0 == drmCommandWrite(vmesa->driFd, DRM_VIA_DMA_INIT,
&init, sizeof(init)));
- if (vmesa->useAgp)
- printf("unichrome_dri.so: Using AGP.\n");
- else
- printf("unichrome_dri.so: Using PCI.\n");
+ if (VIA_DEBUG) {
+ if (vmesa->useAgp)
+ fprintf(stderr, "unichrome_dri.so: Using AGP.\n");
+ else
+ fprintf(stderr, "unichrome_dri.so: Using PCI.\n");
+
+ fprintf(stderr, "%s - out\n", __FUNCTION__);
+ }
- if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__);
return ((vmesa->dma) ? GL_TRUE : GL_FALSE);
}