summaryrefslogtreecommitdiff
path: root/platform/x11/context_gl_x11.h
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2019-01-27 22:31:38 +0000
committerHein-Pieter van Braam <hp@tmm.cx>2019-01-28 16:21:07 +0000
commit9c308023bb787795a01197459fc34456adfd893e (patch)
tree78b683496bc150abfdf816c8d018deaf075e7890 /platform/x11/context_gl_x11.h
parent59459ed4b2e03b47e3b7a4c9da6cf42e3969d0bd (diff)
Properly detect when to use DRI_PRIME
We fork off twice once with and once without DIR_PRIME=1 set. We then use the vendor string to determine what GPU to use. We prefer (in order) 1) AMDGPU/AMDGPU-PRO/NVidia non-free driver 2) Intel driver 3) Nouveau 4) Software rendering If a driver can't be detected it will default to DRI_PRIME=0
Diffstat (limited to 'platform/x11/context_gl_x11.h')
0 files changed, 0 insertions, 0 deletions