/[pkg-src]/trunk/xorg-old/patches-6.9.0-r1/5850_all_4.2.0-tdfx-disable-dri-on-16Mb-cards-in-hires.patch |
Contents of /trunk/xorg-old/patches-6.9.0-r1/5850_all_4.2.0-tdfx-disable-dri-on-16Mb-cards-in-hires.patch
Parent Directory | Revision Log
Revision 167 -
(show annotations)
(download)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 1268 byte(s)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 1268 byte(s)
-import
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 |
3 | @@ -293,6 +293,22 @@ |
4 | return FALSE; |
5 | } |
6 | |
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. |
10 | + */ |
11 | + xf86DrvMsg(pScreen->myNum, X_INFO, "[dri] VideoRAM = %d, VirtualXres = %d, VirtualYres= %d,\n", |
12 | + pScrn->videoRam, pScrn->virtualX, pScrn->virtualY); |
13 | + |
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"); |
19 | + return FALSE; |
20 | + } |
21 | + } |
22 | + |
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; |