[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#289328: #289328 - xserver-xfree86: DRI disabled despite it would work



You are right they did that to improve stability :
https://www.redhat.com/archives/valhalla-list/2002-June/msg01884.html


Extract:
"This is correct. I have discussed this with Red Hat's X maintainer, Mike Harris.
This is specifically from the authors of the TDFX driver. Previously it (DRI)
was allowed in higher resolutions, but too many crashes and problems arose, so
now it is limited to the supported resolution.

Jesse Keating"


Though from my understanding of the diamond monster fusion it is a
specific banshee tweaked for higher resolution 3D ... so it
should be stable at 1280x1024 with it (or maybe it was in the
diamond driver more than in the hardware).


I have no contact with xfree (or xorg) upstream. I was only
trying to add enough information to the report for it to be
closed, fixed or forwarded upstream.

I feel there are enough now (especially the specific type of the
card a tweaked banshee). I guess it is a Diamond Monster Fusion Z100 AGP
16MB SDRAM. What is meanly missing is someone knowing if the telling that this card is meant to support more is more thatn marketing hype, and if a new option could be added to the tdfx driver to enable higher resolution with DRI even if it may crash the driver when used in fullscreen , for those that want to work in window mode at high resolution . The best would be a runtime check :)
That is either a wishlist (add an option to the tdfx driver) or a wontfix ...

I also explained a hack that may help get it working at high resolution on sarge with current debian xfree ... not for the faint of heart :->
There are no problems with your hardware , no need to return to woody. But could you test someday with this Videoram option tweack on sarge with your Diamond Monster  and send us the /var/log/XFree.0/log file !



I found a few reports about similar request as yours:
http://lists.netisland.net/archives/plug/plug-1999-12/msg00165.html
and the above redhat one .




to the maintainers: the tdfx man page is a little light ... the
current xfree one has a few more infos on specific
tdfx configurations:
http://www.xfree86.org/current/tdfx.4.html  
http://wiki.x.org/X11R6.8.0/doc/tdfx.4.html

I found the offending patch there:
http://dev.gentoo.org/~spyderous/xorg-x11/patchsets/6.8.1.901/patch/5850_all_4.2.0-tdfx-disable-dri-on-16Mb-cards-in-hires.patch
--- 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
+++ xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_dri.c	Sun Mar 10 20:50:46 2002
@@ -293,6 +293,22 @@
     return FALSE;
   }
 
+  /* Disable DRI if using a 16Mb card with virtual resolution higher than
+   * 1024x768 because DRI does not have enough memory available for textures
+   * at higher resolutions, and will not operate correctly.
+   */
+  xf86DrvMsg(pScreen->myNum, X_INFO, "[dri] VideoRAM = %d, VirtualXres = %d, VirtualYres= %d,\n",
+             pScrn->videoRam, pScrn->virtualX, pScrn->virtualY);
+
+  if ( (pTDFX->ChipType == PCI_CHIP_VOODOO3) || (pTDFX->ChipType == PCI_CHIP_BANSHEE) ) {
+    if (pScrn->videoRam <= 16384 && ((pScrn->virtualX * pScrn->virtualY) > (1024 * 768)) ) {
+      xf86DrvMsg(pScreen->myNum, X_WARNING,
+        "[dri] To use DRI, with a 16Mb Voodoo 3 or Banshee card, you must\n"
+        "\tinvoke the server using a maximum resolution of 1024x768 or lower.\n");
+      return FALSE;
+    }
+  }
+  
     /* Check that the GLX, DRI, and DRM modules have been loaded by testing
        for canonical symbols in each module. */
     if (!xf86LoaderCheckSymbol("GlxSetVisualConfigs")) return FALSE;


so it seems you could cheat it by settings Videoram=16385 in X config. Not that i recommand it but it seems your type of banshee can handle 1280x1024 well , so if you want to force it there it is . I would have prefered an option for the tdfx driver to disable this test.
Though i would buy it for 1280 on a Monster Fusion, 1400 seems a little high for 16MB ram , if you mind a stable driver... window mode only may help but you may be better with your new card for such a setup.

Your banshee  card could be of some use , say for a personal rendering farm
http://chromium.sourceforge.net/doc/LLNLcopy.html :)


Cheers
Alban





Reply to: