Bug 99892 - Please add xorg.conf option to disable DRI3
Summary: Please add xorg.conf option to disable DRI3
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/modesetting (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 17:07 UTC by John Lindgren
Modified: 2017-02-22 02:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description John Lindgren 2017-02-21 17:07:58 UTC
For some chipsets (Intel HD 4000 / Ivy Bridge) mesa's DRI3 support is still lacking: for example, resolution changes are simply not seen by OpenGL applications.  This is nothing specific to modesetting as it affects the intel driver as well (see https://bugs.freedesktop.org/show_bug.cgi?id=97916).

HOWEVER

The intel driver allows disabling DRI3 by adding Option "DRI" "2" in xorg.conf.  To my knowledge, the modesetting driver has no such option, and the only way to disable DRI3 is to rebuild xorg with --disable-dri3.  On distros that enable DRI3 by default, it's inconvenient to rebuild xorg after each update.

Would it be difficult to add a similar Option "DRI" to the modesetting driver?
Comment 1 Michel Dänzer 2017-02-22 01:32:14 UTC
FWIW, DRI3 can be disabled on the client side for OpenGL apps via the environment variable LIBGL_DRI3_DISABLE=1.
Comment 2 John Lindgren 2017-02-22 02:15:57 UTC
Aha, that's what I was looking for, thanks!  I added

  export LIBGL_DRI3_DISABLE=1

to my login script and it does the job nicely.

No need to add a configuration option then.  I'll close this request.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.