Xorg glx module: GLVND, EGL, or ... ?

Michel Dänzer michel at daenzer.net
Sat Jan 7 07:37:30 UTC 2017


On 28/12/16 11:18 AM, Kyle Brenneman wrote:
> GLVND doesn't respond to DRI_PRIME (and probably shouldn't, since that's
> very driver-specific), but it has an environment variable that you can
> use to override which vendor library it selects.

DRI_PRIME selects a GPU, not a driver. Each available GPU could be
supported by a different set of GLVND vendors.

With DRI2, DRI_PRIME={1,2,...} can be used to select a GPU based on some
kind of ordering (based on the RandR 1.4 providers list? Not sure).

With DRI3, DRI_PRIME=1 means "any GPU other than the one used by the X
server" (which in the common case of a laptop with 2 GPUs just means
"the other GPU"), or DRI_PRIME=[udev device identifier] selects a
specific GPU.

It would be nice if this could work with GLVND's libGL as well.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-devel mailing list