mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
- Setup's "Steam interface: GPU drawing" is hidden on Mali and a saved "on" is cleared: with PanVK it rebooted an Edge 60 (G615) as steamwebhelper started. Kept for Xclipse. - gamescope 0130: a composite pipeline refused at start-up is retried with a layout without immutable YCbCr samplers (G615 through Venus refused every composite shader; their SPIR-V has no Float16, so fp16 was not the cause). - Venus: droiddeck-glprobe opens GL through GLX the way the Steam client does, with the loader's reasons logged; when it fails the client's GL goes to llvmpipe. - vkbridge self-test: the draw check waits for the render pass's stores before copying out (a tiler read zeros without the dependency).
30 lines
1.9 KiB
Bash
Executable File
30 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# Builds the Linux side of the bridge for the runtime (glibc, aarch64):
|
|
# tools/vkbridge/build-client-linux.sh <linuxfs-asset-dir> [cc]
|
|
# Produces, under the asset dir (staged into the runtime by SessionFiles):
|
|
# usr/local/lib/vkbridge/libvulkan_droidbridge.so the Vulkan ICD
|
|
# usr/local/share/vkbridge/droidbridge_icd.json its manifest
|
|
# usr/local/bin/droiddeck-vkbridge-smoke the session-start self-test
|
|
# usr/local/bin/droiddeck-glprobe GLX start-up probe (Mali Venus route)
|
|
set -euo pipefail
|
|
d=$1
|
|
cc=${2:-aarch64-linux-gnu-gcc}
|
|
strip=${STRIP:-${cc%gcc}strip}
|
|
here=$(cd "$(dirname "$0")" && pwd)
|
|
inc="-I$here/third_party/Vulkan-Headers-1.4.341/include -I$here/common -I$here/common/gen"
|
|
mkdir -p "$d/usr/local/lib/vkbridge" "$d/usr/local/share/vkbridge" "$d/usr/local/bin"
|
|
"$cc" -O2 -fPIC -shared -fvisibility=hidden -DVKB_CLIENT -Wall -Wno-unused-parameter -Wno-missing-field-initializers \
|
|
$inc -I"$here/client" -I"$here/client/compat" -pthread \
|
|
-Wl,--no-undefined -Wl,-soname,libvulkan_droidbridge.so \
|
|
-o "$d/usr/local/lib/vkbridge/libvulkan_droidbridge.so" \
|
|
"$here"/client/*.c "$here/common/vkb_wire.c" "$here/common/gen/vkb_gen_structs.c" "$here/common/gen/vkb_gen_client.c" -ldl
|
|
"$strip" --strip-unneeded "$d/usr/local/lib/vkbridge/libvulkan_droidbridge.so"
|
|
"$cc" -O2 -Wall $inc -I"$here/tests" -o "$d/usr/local/bin/droiddeck-vkbridge-smoke" "$here/tests/smoke.c" -ldl
|
|
"$strip" --strip-unneeded "$d/usr/local/bin/droiddeck-vkbridge-smoke"
|
|
"$cc" -O2 -Wall -o "$d/usr/local/bin/droiddeck-glprobe" "$here/tests/glprobe.c" -ldl
|
|
"$strip" --strip-unneeded "$d/usr/local/bin/droiddeck-glprobe"
|
|
cat > "$d/usr/local/share/vkbridge/droidbridge_icd.json" <<JSON
|
|
{"file_format_version": "1.0.0", "ICD": {"library_path": "/usr/local/lib/vkbridge/libvulkan_droidbridge.so", "api_version": "1.4.341"}}
|
|
JSON
|
|
echo "built the vkbridge client into $d"
|