diff options
author | Simon Rettberg | 2020-08-10 14:32:50 +0200 |
---|---|---|
committer | Your Name | 2020-08-10 14:32:50 +0200 |
commit | de3b44dd572fb5e2a6a7514304c3a27230f04390 (patch) | |
tree | f3aa37b124052c5ed0aff81b96b27498ae49b44f /core/modules | |
parent | [systemd-distro] Clean up required packages (diff) | |
download | mltk-de3b44dd572fb5e2a6a7514304c3a27230f04390.tar.gz mltk-de3b44dd572fb5e2a6a7514304c3a27230f04390.tar.xz mltk-de3b44dd572fb5e2a6a7514304c3a27230f04390.zip |
[xorg] Conditionally apply Iris workaround
Diffstat (limited to 'core/modules')
-rw-r--r-- | core/modules/xorg/data/etc/X11/Xsession.d/10-fix-vmware-3d | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/core/modules/xorg/data/etc/X11/Xsession.d/10-fix-vmware-3d b/core/modules/xorg/data/etc/X11/Xsession.d/10-fix-vmware-3d index 05382879..8a436ec1 100644 --- a/core/modules/xorg/data/etc/X11/Xsession.d/10-fix-vmware-3d +++ b/core/modules/xorg/data/etc/X11/Xsession.d/10-fix-vmware-3d @@ -6,5 +6,21 @@ # 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) -export MESA_LOADER_DRIVER_OVERRIDE=i965 +drivers="$( grep -Po '(?<=Matched )\S*' /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 |