Files
DroidDeck/tools/vkbridge/tests/gen_shaders.sh
T
The412Banner ee0fb08268 Mali bridge (#517, by ASEbrahim) on the non-Adreno test branch
Squash of Droid-Deck/DroidDeck#517 (ASEbrahim/DroidDeck mali-bridge @ 6b823341): the Vulkan
bridge (tools/vkbridge) that runs the guest's Vulkan on the phone's own driver, with BC1-BC7,
clip/cull distance, vertex-divisor and depth-clip emulation and dma-heap memory sharing for Mali.
All of the bridge is ASEbrahim's work; squashed only to carry it on this test branch.

Combined with #570 on this branch, a device draws through exactly one path:
- Adreno: Turnip, unchanged (checked first; the bridge setting is ignored there).
- PowerVR / Xclipse with the system HAL and a render node: the system-Vulkan path (#570).
- Anything else with the Setup toggle on (Mali): the bridge.
2026-10-12 18:34:49 -04:00

13 lines
484 B
Bash
Executable File

#!/bin/bash
# Compiles the test shaders into C arrays (tests/smoke_spv.h). Needs glslangValidator.
set -eu
cd "$(dirname "$0")"
out=smoke_spv.h
echo "/* Generated by gen_shaders.sh from shaders/ - do not edit. */" > $out
for s in shaders/*.comp shaders/*.vert shaders/*.frag; do
name=$(basename "$s" | tr . _)
glslangValidator -V --vn "spv_$name" -o tmp.h "$s" >/dev/null
grep -v '^ *//' tmp.h | sed 's/^const uint32_t/static const uint32_t/' >> $out
rm -f tmp.h
done