mesa/src
Axel Davy 7ab925a6aa loader: add gpu selection code via DRI_PRIME.
v2: Fix the leak of device_name
v3: Rebased

It enables to use the DRI_PRIME env var to specify
which gpu to use.
Two syntax are supported:
If DRI_PRIME is 1 it means: take any other gpu than the default one.
If DRI_PRIME is the ID_PATH_TAG of a device: choose this device if
possible.

The ID_PATH_TAG is a tag filled by udev.
You can check it with 'udevadm info' on the device node.
For example it can be "pci-0000_01_00_0".

Render-nodes need to be enabled to choose another gpu,
and they need to have the ID_PATH_TAG advertised.
It is possible for not very recent udev that the tag
is not advertised for render-nodes, then
ones need to add a file containing:

SUBSYSTEM=="drm", IMPORT{builtin}="path_id"

in /etc/udev/rules.d/

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-07-01 13:07:30 +10:00
..
egl egl: Remove unused variable dri_driver_path. 2014-06-17 10:18:12 -07:00
gallium targets/egl-static: use inline_drm_helper and Automake.inc helpers 2014-06-30 22:27:12 +01:00
gbm gbm: Remove 64x64 restriction from GBM_BO_USE_CURSOR 2014-06-12 16:13:39 +09:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl Remove the ATI_envmap_bumpmap extension 2014-06-30 12:02:25 -07:00
glx dri3: cache pointer to back instead of looking up. 2014-07-01 13:00:14 +10:00
gtest gtest: Update to 1.7.0. 2014-04-14 00:06:53 -07:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
loader loader: add gpu selection code via DRI_PRIME. 2014-07-01 13:07:30 +10:00
mapi Remove the ATI_envmap_bumpmap extension 2014-06-30 12:02:25 -07:00
mesa drirc: Add string support 2014-07-01 13:06:51 +10:00
Makefile.am src/build: Add getopt to distribution. 2014-04-07 09:41:02 -07:00
SConscript loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00