mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 13:26:02 +00:00
From DavidCimo/droiddeck-mali, branch mali-venus @ 4f838891 (prototype 13; his 12 commits on top of DroidDeck 0.3.1, GPL-3.0), by David Cimo: - tools/venus: Mesa Venus vtest patch (incl. the per-queue submit_mutex fix and the cached-memory frame readback), virglrenderer Android patch, the Mali compatibility layer (the six features DXVK needs: fill modes, multi-viewport, robustness2, clip/cull distance, BC1-BC7) and his tools. - tools/linuxfs/preload/venus.c: keeps Zink's kopper under Venus. - tools/gamescope/patches/0127 (his 0114): shm buffers uploaded on every commit. - docs/development/mali-venus.md: his design notes. - tools/venus/ci-build.sh and build-venus.yml: his build recipes as one CI job that packs the component (vtest server, ICD, layer) as venus.tzst for the apk. Co-authored-by: Dersim Abbas <derabb0620@gmail.com>
15 lines
641 B
Bash
15 lines
641 B
Bash
#!/bin/bash
|
|
# Function, source line and disassembly at offsets into an aarch64 library, with the NDK's tools.
|
|
# Run in WSL: bash addr2line.sh <library> <offset>...
|
|
# The offset is the crash pc minus the library's start in the process's maps (tools/venus/watch-maps.sh).
|
|
LIB=${1:?library}
|
|
shift
|
|
B=/home/delo/android-sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/linux-x86_64/bin
|
|
md5sum "$LIB"
|
|
$B/llvm-addr2line -f -C -i -e "$LIB" "$@"
|
|
for a in "$@"; do
|
|
start=$(printf "0x%x" $((a - 48)))
|
|
stop=$(printf "0x%x" $((a + 16)))
|
|
$B/llvm-objdump -d --no-show-raw-insn --start-address=$start --stop-address=$stop "$LIB" | tail -n +7
|
|
done
|