mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
intel/tools: Make intel_stub_gpu work when using meson devenv
When `meson devenv` is used, the shim library that is meant to be preloaded is not necessarily available at the installation dir. So when running in that mode both the script and the shim library will be in the same (build) directory, so adjust the ld_preload to pick that. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10798 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28134>
This commit is contained in:
parent
6922f421f4
commit
bfdcddfda9
1 changed files with 7 additions and 1 deletions
|
|
@ -70,7 +70,13 @@ done
|
|||
|
||||
INTEL_STUB_GPU_PLATFORM=$platform
|
||||
|
||||
ld_preload="@install_libdir@/libintel_noop_drm_shim.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
drm_shim_dir="@install_libdir@"
|
||||
|
||||
if [ -n "$MESON_DEVENV" ]; then
|
||||
drm_shim_dir=$(realpath "$(dirname "$0")")
|
||||
fi
|
||||
|
||||
ld_preload="$drm_shim_dir/libintel_noop_drm_shim.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
if [ -n "$gdb" ]; then
|
||||
gdb -iex "set exec-wrapper env LD_PRELOAD=$ld_preload INTEL_STUB_GPU_PLATFORM=$platform" --args "$@"
|
||||
elif [ -n "$valgrind" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue