mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +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>
16 lines
916 B
Bash
16 lines
916 B
Bash
#!/bin/bash
|
|
# vulkaninfo as the session's Linux processes see the GPU: through Venus, and through the Mali
|
|
# compatibility layer when DROIDDECK_MALI_COMPAT is 1. Needs a running session (the vtest server).
|
|
# Run from Git Bash: MSYS_NO_PATHCONV=1 bash tools/venus/guest-vulkaninfo.sh [0|1] > vulkaninfo.txt
|
|
set -euo pipefail
|
|
COMPAT=${1:-1}
|
|
A=/c/Users/derab/tools/platform-tools/adb.exe
|
|
PKG=com.droiddeck.launcher
|
|
F=/data/user/0/$PKG/files
|
|
APK=$($A shell pm path $PKG | head -1 | tr -d '\r' | sed 's/^package://')
|
|
L=${APK%/base.apk}/lib/arm64
|
|
$A exec-out "run-as $PKG sh -c 'PROOT_TMP_DIR=/data/user/0/$PKG/cache PROOT_LOADER=$L/libproot-loader.so \
|
|
$L/libproot.so -r $F/linuxfs -w /root -b /dev -b /proc -b /sys -b $F /usr/bin/env -i HOME=/root \
|
|
PATH=/usr/bin:/bin DROIDDECK_MALI_COMPAT=$COMPAT VK_ICD_FILENAMES=$F/venus/virtio_icd.json VN_DEBUG=vtest \
|
|
VTEST_SOCKET_NAME=$F/venus/vtest.sock vulkaninfo 2>&1'"
|