1 --- xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_dri.c.tdfx-disable-dri-on-16Mb-cards-in-hires Mon May 21 17:43:55 2001
2 +++ xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_dri.c Sun Mar 10 20:50:46 2002
7 + /* Disable DRI if using a 16Mb card with virtual resolution higher than
8 + * 1024x768 because DRI does not have enough memory available for textures
9 + * at higher resolutions, and will not operate correctly.
11 + xf86DrvMsg(pScreen->myNum, X_INFO, "[dri] VideoRAM = %d, VirtualXres = %d, VirtualYres= %d,\n",
12 + pScrn->videoRam, pScrn->virtualX, pScrn->virtualY);
14 + if ( (pTDFX->ChipType == PCI_CHIP_VOODOO3) || (pTDFX->ChipType == PCI_CHIP_BANSHEE) ) {
15 + if (pScrn->videoRam <= 16384 && ((pScrn->virtualX * pScrn->virtualY) > (1024 * 768)) ) {
16 + xf86DrvMsg(pScreen->myNum, X_WARNING,
17 + "[dri] To use DRI, with a 16Mb Voodoo 3 or Banshee card, you must\n"
18 + "\tinvoke the server using a maximum resolution of 1024x768 or lower.\n");
23 /* Check that the GLX, DRI, and DRM modules have been loaded by testing
24 for canonical symbols in each module. */
25 if (!xf86LoaderCheckSymbol("GlxSetVisualConfigs")) return FALSE;