Files
reims-vgpu/tests/shaders/build.sh
T
Anees Iqbal dae3e6b13d 🔥 Delete the behaviour-lock suite and its make targets
The suite drove apple-gfx's C API as QEMU did and recorded what the paravirt
device did; the owner's ruling deletes apple-gfx and everything of it, the
suite with it, so make test, bless and coverage go too.

Its shader fixtures are the platforms', the graphics device's and the guest
bundle's tests too: they move to tests/shaders. guest/bundle's Makefile, an
input of the prebuilt kexts, still names tests/suite/fixtures/shaders, which
stays as a link to tests/shaders until the kexts are next built. A worktree
no longer clones the suite's 257 MiB, so new-worktree.sh adds it plainly.
2026-11-07 18:21:42 -08:00

18 lines
728 B
Bash
Executable File

#!/bin/bash
# Compiles each .metal here into its own metallib, the test shaders the
# platforms' and the graphics device's tests load as a guest's libraries, and
# guest/bundle's tests read. The metallibs are committed, so a test's input
# bytes do not drift with the toolchain; run this on a Mac only to change a
# shader. two.metal holds two kernels on purpose, fc.metal an unspecialized
# function constant, and kernel_trunc.metallib is kernel.metallib cut to
# 1000 bytes.
set -euo pipefail
cd "$(dirname "$0")"
for m in *.metal; do
n="${m%.metal}"
xcrun -sdk macosx metal -c "$m" -o "$n.air"
xcrun -sdk macosx metallib "$n.air" -o "$n.metallib"
rm "$n.air"
done
head -c 1000 kernel.metallib > kernel_trunc.metallib