Squash of 55 work commits (Sep 1–12):0fd356dwindows: the vendored bindings are generated from a checked-in filter79882b5fabric: a photo or a live camera to a fitted sewing pattern1e93309AGENTS.md: designs stay local; no OS screenshots; focus and hidden-window lawsaa96dbdcargo-makepad wasm: package the bin target's wasm and create dirs before minifying14d0723cargo-makepad wasm: production packaging — strip, small profile LTO, optional binaryen, size report79e7526sqlite: a page-store seam — the file backend as before, an in-memory backend, and open_memory / open_with60ee978cargo-makepad: package artifacts carry a content hash so a re-upload is a new URL611c9ebcargo-makepad: production packaging stays off fat LTO; script VM under LTO investigatedab8febccargo-makepad: fonts packaged from the app's font manifestf6bbee9wasm bridge: shared memory asks for the 4 GiB wasm32 ceiling and steps down where the engine refusesfb1416dcargo-makepad: the threaded wasm module is linked with the 4 GiB wasm32 memory ceilingfd5d70ccargo-makepad: the app's own resources are packaged under its bin name, which is how self:// resolvesf51ca07workspace: the wasm interpreter's tests build at opt-level 1 — its own profile setting is ignored inside a workspace, and opt-level 0 overflowed the script eval stack942ff86sqlite: the browser store has one owner — its locks never wait on a clock82d0cfaweb path: the trace helper keeps its doc, the journal nonce steps a counter where there is no clock or pid6f8c08fweb-server: POST /api/crash stores crash reports in a rotating log on both servers106b38cwasm bridge: the imported memory honours the module's declared limits94b8726dj-pack: tracks in, stems through the hub, a site store snapshot outd9f04fcdj-pack: pack reads caches, never creates them; dry-run writes nothinge6a305cai-hub + dj-pack: a whole track fits a stems job; long tracks split into spansd1910b8web-server: a store snapshot's extensionless routes are served with the types the exporter recordedc1f7b53asset-client + dj-pack: a long description never rejects a snapshot; the packer writes one bounded line453197ddj-pack: analyse produces the beat grid, overview and loop-splat caches the demo cache ships9b4a3canetwork: every completion raises the UI signalfad1c49web server: audio and text files are served, and models/ is immutable like maps/569b4a7dj-pack: every CC BY and CC BY-SA version and the public domain mark are redistributable licencesdc9cce6workspace: no std clock on the web in any crate the web apps link — the last start-up worker death is gonec7639f0clippy: timed std waits (sleep, recv_timeout, wait_timeout, park_timeout) are disallowed — they read the std clock and panic on wasm workersd748753wasm bridge: the page environment carries js_worker_wait so the module links — the pool landing added the import for workers onlyec40fdbvj + widgets: double-click a knob or fader to reset it to its default — the Slider handles tap_count 2 and emits its normal Slide action; the deck controls carry their neutral defaults (pitch 0, gain/EQ/stems 1, filter centre, crossfader centre)fe23e06AGENTS.md: the execution policy — zero locking on the UI thread as one mechanism for native and wasm, no temporary threads (the pool), the standard operating flow (Codex codes, Fable designs and reviews, Grok tests), and the tweaker on Shift+F10e689aeaweb_server + geodata + route: live radar, wind and weather on makepad.nl/api — one bounded poller per feed, hourly, disk-backed cache served from an Arc snapshot (a restart never re-polls early), 503 warming until the first result, health reports ok/warming/unavailable with timestamps; KNMI key from --knmi-key-file, the documented anonymous open-data key otherwise; libs/geodata fetches through the platform HTTP client instead of shelling out to curl; the client retries 503 after 30 s and disables a layer only on 404cd33943web_server: radar and weather run on KNMI's documented anonymous key when no --knmi-key-file is given; without --live-cache the pollers keep an in-memory cache and say so once2f3e393web_server: a directory path without its trailing slash (/score) redirects to /score/ instead of 404, query preserved9a31d21flow-ui + widgets: a chosen model shows no node list, and a closed ComboBox shows the start of a long label 22b2c78 docs: streamline agent runbook and extract reference guides 6058284 terminal: add hostable session multiplexing via tools/screen 8a9345b tools: migrate Cargo.toml lookups to segment-path keys 8749b91 counter: keep app state across Splash reloads 3ffd485 tools: add agent launcher and AIHub node update and smoke scripts c33a9d3 screen: add bypass and resume menu options c40d234 AGENTS.md: current delegation hierarchy (Grok mechanical, Codex hard, Fable manages) 4184455 Workspace: scope lives at apps/scope (clone of makepad/scope) 27844c9 makepad arch usb builder dd967eb Workspace: drop nine members that are not in the repository 1961768 AGENTS.md: hierarchy 2026-09-11 — Fable builds, Codex reviews, Grok proves 9cd9f94 AGENTS.md: rendering is verified on the real GPU backend, headless is for logic tests only 5f53254 AGENTS.md: GPU proofs may run hidden; only the headless CPU backend is out e950b08 docs: app-remote — hidden GPU runs vs the simulated-GPU backend, measured grab cadence, remote hazards 9c94a77 arch: the platform plan names the simulated-GPU backend gpusim 3009257 micro_serde: serde_json-style JsonValue accessors, pretty printer, depth limit and strict parse 134cd76 gitignore: alternate target directories, root scratch dirs and stray logs are never source 60ba86e arch: the render node refs name platform/src/os/gpusim/mod.rs 1dc571a tools/arch_usb: Wi-Fi, Intel GPU firmware, the AI hub service and game-hardware udev rules on the Arch image; the WM session script picks the saved compositor GPU cc3b05a tools/arch_usb: a polkit rule lets the arch account start, stop and restart the WM service Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
84 lines
3.9 KiB
Bash
84 lines
3.9 KiB
Bash
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
if test -f /etc/makepad/wm.env; then
|
|
set -a
|
|
source /etc/makepad/wm.env
|
|
set +a
|
|
fi
|
|
export MAKEPAD=linux_direct+vulkan
|
|
export MAKEPAD_WM_ROOT=${MAKEPAD_WM_ROOT:-/home/arch/makepad}
|
|
export CARGO_NET_OFFLINE=true
|
|
export MAKEPAD_CEF_OFFLINE=1
|
|
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
|
|
cd "$MAKEPAD_WM_ROOT"
|
|
if test ! -x target/release/wm || test "${MAKEPAD_WM_BUILD:-0}" = 1; then
|
|
cargo build --offline --release -p makepad-wm
|
|
fi
|
|
|
|
# The GPU the compositor starts on. The WM's Display panel saves the
|
|
# chosen GPU's identity in the user's config as exactly one ASCII line
|
|
# "<pci-address> <vendor>:<device>" e.g. "0000:01:00.0 10de:2b85"
|
|
# (sysfs's lowercase hex, one space), with or without a final newline.
|
|
# Card numbers are not stable across boots, so the identity is resolved
|
|
# here by PCI address AND vendor:device, nothing looser, and handed to
|
|
# the WM as MAKEPAD_VULKAN_COMPOSITOR_PCI=<pci> plus
|
|
# MAKEPAD_WM_GPU_FROM_SAVED=1 so the worker does not treat that as an
|
|
# external override. A connected display is not required: compositing
|
|
# may run on a GPU that only drives compute. MAKEPAD_DRM_DEVICE is the
|
|
# display output and is left alone. An explicit
|
|
# MAKEPAD_VULKAN_COMPOSITOR_UUID or MAKEPAD_VULKAN_COMPOSITOR_PCI in the
|
|
# environment (or /etc/makepad/wm.env) wins, is left alone, and keeps
|
|
# the saved-choice marker unset. A file that is missing or malformed,
|
|
# or an identity not present on this machine (a stick moved to another
|
|
# PC), warns and falls back to the renderer's automatic choice. Nothing
|
|
# here touches CUDA. The WM's worker validates the same identity shape
|
|
# (system_linux.rs validate_gpu_choice).
|
|
unset MAKEPAD_WM_GPU_FROM_SAVED
|
|
wm_gpu_pci=""
|
|
if test -z "${MAKEPAD_VULKAN_COMPOSITOR_UUID:-}" && test -z "${MAKEPAD_VULKAN_COMPOSITOR_PCI:-}"; then
|
|
wm_cfg_root="${XDG_CONFIG_HOME:-}"
|
|
case "$wm_cfg_root" in
|
|
/*) ;;
|
|
*) wm_cfg_root="$HOME/.config" ;;
|
|
esac
|
|
wm_gpu_file="$wm_cfg_root/makepad/wm/display-gpu"
|
|
if test -r "$wm_gpu_file"; then
|
|
wm_gpu_line=""
|
|
wm_gpu_terminated=0
|
|
if IFS= read -r wm_gpu_line < "$wm_gpu_file"; then
|
|
wm_gpu_terminated=1
|
|
fi
|
|
wm_gpu_bytes=$(LC_ALL=C wc -c < "$wm_gpu_file" | tr -d '[:space:]')
|
|
wm_gpu_re='^([0-9a-f]{4,8}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]) ([0-9a-f]{4}:[0-9a-f]{4})$'
|
|
if test "$wm_gpu_bytes" -ne "$(( ${#wm_gpu_line} + wm_gpu_terminated ))" || ! [[ "$wm_gpu_line" =~ $wm_gpu_re ]]; then
|
|
echo "wm-session: $wm_gpu_file is not one line '<pci-address> <vendor>:<device>'; using the automatic GPU" >&2
|
|
else
|
|
want_pci=${BASH_REMATCH[1]}
|
|
want_ids=${BASH_REMATCH[2]}
|
|
chosen=""
|
|
for card_dir in /sys/class/drm/card[0-9]*; do
|
|
card=$(basename "$card_dir")
|
|
case "$card" in *-*) continue ;; esac
|
|
test -e "$card_dir/device" || continue
|
|
pci=$(basename "$(readlink -f "$card_dir/device")")
|
|
ven=$(cat "$card_dir/device/vendor" 2>/dev/null || true)
|
|
dev=$(cat "$card_dir/device/device" 2>/dev/null || true)
|
|
ids="${ven#0x}:${dev#0x}"
|
|
if test "$pci" = "$want_pci" && test "$ids" = "$want_ids"; then
|
|
chosen=$card
|
|
break
|
|
fi
|
|
done
|
|
if test -z "$chosen"; then
|
|
echo "wm-session: saved GPU '$want_pci $want_ids' is not present on this machine; using the automatic GPU" >&2
|
|
else
|
|
wm_gpu_pci=$want_pci
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
if test -n "$wm_gpu_pci"; then
|
|
echo "wm-session: compositor PCI $wm_gpu_pci (saved GPU choice)" >&2
|
|
exec env MAKEPAD_WM_GPU_FROM_SAVED=1 MAKEPAD_VULKAN_COMPOSITOR_PCI="$wm_gpu_pci" target/release/wm "-scale=${MAKEPAD_WM_SCALE:-1.3}" "$@"
|
|
fi
|
|
exec target/release/wm "-scale=${MAKEPAD_WM_SCALE:-1.3}" "$@"
|