mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
Detect Samsung's Vulkan HAL (vulkan.samsung.so) and its sgpu render node alongside PowerVR, and run Xclipse through the same libhybris bridge: - VK_LAYER_DROIDDECK_xclipse (tools/linuxfs/xclipse-layer), built with the glibc preloads and enabled only on Xclipse: sets bionic's environ for the driver's shader compiler, avoids immutable YCbCr samplers in compute layouts, forwards the KHR calibrated-timestamp entry points to the EXT ones, and reports textureCompressionBC and BC4/BC5 filtering over the compat layer's BC emulation. - Upstream DXVK 2.6.2, pinned as a tar.gz component and selected on Xclipse: the driver has 128 bytes of push constants, DXVK 3 needs 256. - android_wlegl accepts a zero stride and passes it through unchanged: Samsung's gralloc records none for GPU-only buffers. Tested on a Galaxy A56 (Xclipse 540, driver 24.0.560): Steam Big Picture and PICO PARK (D3D9).
13 lines
586 B
Bash
Executable File
13 lines
586 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Session helpers and ELF preload tests need Linux (/proc, inotify and glibc), as in CI.
|
|
set -euo pipefail
|
|
repo_root=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
|
cd "$repo_root"
|
|
if [[ $(uname -s) == Linux ]]; then
|
|
exec python3 -m unittest discover -s tools/tests "$@"
|
|
fi
|
|
image=${DROIDDECK_BUILD_IMAGE:-droiddeck-local-cross:24.04-v4}
|
|
python3 tools/docker_preflight.py "$image"
|
|
exec docker run --rm --platform linux/amd64 --user "$(id -u):$(id -g)" \
|
|
-v "$repo_root:/src:ro" -w /src "$image" python3 -m unittest discover -s tools/tests "$@"
|