blob: 780a4e81f74ea16cda045a223c4666e11611650b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/ash
# ^ sourced
# This is required for Mesa 20.0+ for now. Starting from this version,
# the new "Iris" OpenGL driver has been made default for intel Gen8
# and newer, which unfortunately completely breaks 3D acceleration with
# VMware 15.5.6 (as of 2020-08-04 with Mesa 20.0 + Ubuntu 20.04 as base)
drivers="$( grep -Po '(?<=LoadModule: "|Matched )[^"]*' /var/log/Xorg.0.log )"
intel=false
other=false
for driver in $drivers; do
case "$driver" in
ati|amdgpu|nvidia|nouveau|vmware)
other=true
;;
intel)
intel=true
;;
esac
done
if $intel && ! $other; then
export MESA_LOADER_DRIVER_OVERRIDE=i965
fi
true
|