summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2024-07-22 14:58:47 -0400
committerMatt Turner <mattst88@gmail.com>2024-08-05 15:43:00 -0400
commitac343c8fdc7c59698d208b0ac2aafb0eb71bb46f (patch)
treec774b899222ae66a23f9cd25ad2d63e84a87b748
parent8d9cf1a5844c74810ee06d53cc3ea4052dc561f9 (diff)
mesa-run: Use `meson devenv`
-rw-r--r--README.md2
-rwxr-xr-xmesa-run12
2 files changed, 2 insertions, 12 deletions
diff --git a/README.md b/README.md
index b400975..8452e74 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ A collection of scripts to build and test [Mesa](https://www.mesa3d.org/) withou
## Scripts
- [nj](nj) - Run [ninja](https://github.com/ninja-build/ninja) from anywhere in the project git repository. (upstream: [nj repo](gitlab.freedesktop.org/kwg/nj))
-- [mesa-run](mesa-run) - helper script. Not used directly. Requires [jq](https://github.com/jqlang/jq)
+- [mesa-run](mesa-run) - helper script. Not used directly.
- [mesa-debug](mesa-debug) - Debug build
- [mesa-debug-asan](mesa-debug-asan) - Debug build with [AddressSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer)
- [mesa-debug-optimized](mesa-debug-optimized) - Debug build with optimization
diff --git a/mesa-run b/mesa-run
index 17a673b..97da05e 100755
--- a/mesa-run
+++ b/mesa-run
@@ -11,7 +11,6 @@ prefix="${builddir}"/install
machine=$(uname -m)
case "$machine" in
x86_64)
- vk_icd="intel_icd.${machine}.json"
vulkan_drivers=intel
gallium_drivers=iris
tools=drm-shim,intel
@@ -21,7 +20,6 @@ x86_64)
)
;;
aarch64|arm*)
- vk_icd="freedreno_icd.${machine}.json"
vulkan_drivers=freedreno
gallium_drivers=freedreno
tools=drm-shim,freedreno
@@ -68,12 +66,4 @@ build)
;;
esac
-if ! command -v jq &> /dev/null; then
- die "jq needs to be installed"
-fi
-
-libdir=$(jq -r '.[] | select(.name == "libdir").value' "${builddir}"/meson-info/intro-buildoptions.json)
-export LD_LIBRARY_PATH="${prefix}/${libdir}:${LD_LIBRARY_PATH}"
-export LIBGL_DRIVERS_PATH="${prefix}/${libdir}"/dri
-export VK_ICD_FILENAMES="${prefix}"/share/vulkan/icd.d/"${vk_icd}"
-LD_PRELOAD="${GCC_ASAN_PRELOAD}" exec "$@"
+LD_PRELOAD="${GCC_ASAN_PRELOAD}" exec meson devenv -C "${builddir}" -w "${PWD}" "$@"