summaryrefslogtreecommitdiffstats
path: root/src/glx/singlepix.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-06-08 19:42:15 -0400
committerDave Airlie <[email protected]>2014-07-01 13:07:30 +1000
commit7ab925a6aafca106e7682dfc21e7c9351380809e (patch)
tree01e2e62886c3612222af0bf53a546f5748537922 /src/glx/singlepix.c
parentda3a47d6824b63621a7d865112558a6e8026688b (diff)
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 <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/glx/singlepix.c')
0 files changed, 0 insertions, 0 deletions