Comment 12 for bug 299631

Revision history for this message
Martin Olsson (mnemo) wrote :

There used to be an old -via driver but it's deprecated in favor or -openchrome driver (which is the one that currently in used in Ubuntu). The OpenChrome open source project has a homepage at http://www.openchrome.org/ where bugs can be filed etc.

I'm not sure if the openchrome driver has support for disabling DRI (after looking at the code I don't think it does). I think adding a xorg.conf option to disable DRI for debugging purposes would be a useful addition though (but ask the openchrome developers, I really don't know). Doing so should not be that hard actually. It's strange that they don't have this support yet, maybe I'm missing something...

The openchrome driver code says:

  #ifdef XF86DRI
      pVia->directRenderingEnabled = VIADRIScreenInit(pScreen);
  #endif

The intel driver, for comparision, supports setting "DRI" "false" and to do that it uses code like this:

   pI810->directRenderingDisabled =
     !xf86ReturnOptValBool(pI810->Options, OPTION_DRI, TRUE);

...

   pI810->directRenderingEnabled = !pI810->directRenderingDisabled;

   if (pI810->directRenderingEnabled==TRUE)
     pI810->directRenderingEnabled = I810DRIScreenInit(pScreen);