Skip to content

Add a special Mesa DRIs search path to cover Ubuntu 16.04

Ludovico de Nittis requested to merge wip/denittis/t19594 into master

Ubuntu 16.04 is older than GLVND and it places Mesa loaders in ${libdir}/mesa and the DRIs in ${libdir}/dri.

So if we find a loader in a path that ends with "/mesa" we try to look one directory above.

I decided to mark this new search path as "extra" because we don't know if the system is really going to use the modules we find there (i.e. if we are really using Ubuntu 16.04 or if there is a strange folder style and the expected DRIs are under ${libdir}/mesa/dri instead).

/cc @smcv @jpwhiting

Merge request reports

Loading