From b4a092852d00679b1afc833329ae8b89e1a07e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Ba=C5=9Ferdem?= Date: Fri, 25 Sep 2020 15:43:53 -0400 Subject: [PATCH] Added mesa fix --- PKGBUILD | 3 +-- README.md | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index f1a8ea0..540cc45 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -142,8 +142,7 @@ prepare() { --pkgdesc "${pkgdesc}" \ --categories "Development;Education;Science;Mathematics;IDE" \ --mimetypes "application/x-matlab-data;text/x-matlab" \ - --exec 'matlab -desktop' - #--exec 'sh -c '\''if [ "${MATLAB_INTEL_OVERRIDE}" = "yes" ] ; then exec env MESA_LOADER_DRIVER_OVERRIDE=i965 matlab -desktop ; else exec matlab -desktop ; fi'\' + --exec 'sh -c '\''if [ "${MATLAB_INTEL_OVERRIDE}" = "yes" ] ; then exec env MESA_LOADER_DRIVER_OVERRIDE=i965 matlab -desktop ; else exec matlab -desktop ; fi'\' } build() { diff --git a/README.md b/README.md index b914afa..a3dd357 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ exclude this package from your workflow. (Partial install is around 8 GB; and full install about 16 GB) * Turn off compression if this package will only be installed on the build machine; this cuts a fair amount of time from the build and compression is unneccessary on local machines. +* Set `MATLAB_INTEL_OVERRIDE='yes'` in your environment if hardware acceleration +does not work on your Intel GPU. # Requirements