mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
silence the 'using AGP/PCI' string unless VIA_DEBUG is used.
This commit is contained in:
parent
fa15f6c840
commit
e51b0b1d30
1 changed files with 8 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue