Add Option "DRI" to allow selection of maximum DRI level. (v2)

Graphics / X.Org / xf86-video-nouveau - Mario Kleiner [gmail.com] - 3 August 2015 13:17 UTC

Allow user to select the maximum level of DRI implementation to use, DRI2 or DRI3.

exa accel supports both DRI2 and, if the kernel supports rendernodes, also DRI3. However, DRI3 still seems to have some bugs on current implementations, and additionally it doesn't work well at all for X-Servers older than 1.16.3 due to X-Server bugs. Therefore we default to DRI2 on exa, but allow the user to enable DRI3 with this new option.

nouveau's glamor accel backend currently doesn't work under DRI2 at all, so we continue to use DRI3 whenever it is supported and ignore this new option for now.

Also add a bit more output about status of Present and DRI3 to aid debugging.

Note: This was originally meant to be a boolean parameter, to just select between DRI3 on and off, but changed here to a DRI level to make it consistent with the same option in the released Intel-ddx.

v2: Use fixed up Bool return type of nouveau_present_init().

6296145 Add Option "DRI" to allow selection of maximum DRI level. (v2)
man/nouveau.man | 6 ++++++
src/nouveau_dri2.c | 11 ++++++++++-
src/nouveau_glamor.c | 2 +-
src/nv_const.h | 2 ++
src/nv_driver.c | 30 ++++++++++++++++++++++++++++--
src/nv_type.h | 1 +
6 files changed, 48 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share