Repository navigation
Architecture
Pisco bridges Steam Play on Linux with the standalone Vodka (0.1) Windows compatibility runtime, the standalone Bitters Direct3D/DXGI to Vulkan 1.4 layer, the early-alpha standalone Tonic SAPI 5 speech engine, and a 100% Python-free native Zig launcher, helper, and code-generator suite.
Steam Client (Steam Linux Runtime)
│ invokes "/pisco %verb%" (toolmanifest_*.vdf)
▼
pisco (zig/src/pisco/main.zig, ELF linked against glibc 2.31)
├── loads user_settings.json / user_settings.py (settings.zig)
├── normalizes PISCO_* -> PROTON_* & applies per-game quirks (quirks.zig)
├── probes PCI sysfs & applies per-vendor Wayland/Vulkan defaults (gpu_vendors.zig)
├── manages prefix locking, VODKADLLPATH, VODKADLLOVERRIDES & migration (common/filelock.zig, reg.zig)
├── discovers host NVIDIA NGX driver DLLs if present (nvidia.zig)
├── wires bundled royalty-free GStreamer + existing host plugin paths (GST_PLUGIN_SYSTEM_PATH_1_0)
└── launches Vodka runtime (files/bin/vodka + files/bin/vodkaserver)
├── Vodka PE/NT Runtime (libvodka_ntdll.so, vodkaserver, /dev/ntsync)
├── Native Wayland & Audio (libvodkawayland.so, libvodka_audio.so)
├── Cross-compiled steam.exe stub (zig/src/steam_helper/main.zig)
├── Graphics & Media Stack (Bitters [DXGI/D3D11/D3D10/D3D9/D3D8] / vkd3d-proton [D3D12] / GStreamer)
└── Speech Stack (Tonic: SAPI 5 sapi.dll, Klatt TTS, MFCC/DTW ASR, optional host libspeechd)
In .gitmodules, Pisco points the Vodka submodule at https://github.com/buntatoes/vodka.git (Vodka_Stable branch, 0.1). In Makefile.in, the vodka target builds Vodka directly with Zig:
- Runs
zig build -Doptimize=ReleaseSafe -Dglibc-compat=trueinsideVodka/. - Installs built runtime binaries (
files/bin/*, includingvodka,vodka64,vodkaserver,vodkaboot,vodkapath), shared libraries (files/lib/libvodka_*.so,files/lib/libvodkawayland.so), PE/Unix module directories (files/lib/vodka/), and data files (files/share/vodka/, includingvodka.inf) directly intodist/files/. - Exports
VODKAPREFIX,VODKALOADER,VODKASERVER,VODKADLLPATH, andVODKADLLOVERRIDESat launch inzig/src/pisco/main.zig.
For full internals of Vodka's preloaders, vodkaserver RPC daemon, PE64/WoW64 loader, Wayland/Vulkan stack, and Win32 DLLs, see the Vodka Wiki.
On pisco-unstable, Pisco integrates Bitters (stable branch, Apache-2.0) as its Direct3D and DXGI translation layer:
-
Build Integration (
Makefile.in): Runszig build -Doptimize=ReleaseSafeinsidebitters/and copies multi-architecture PE DLLs (dxgi.dll,d3d11.dll,d3d10core.dll,d3d9.dll,d3d8.dll) intofiles/lib/vodka/bitters/{x86_64,i386,aarch64}-windows/. -
Implementation Status (Early Alpha):
-
DXGI, Direct3D 11 / 11.1, Direct3D 10 / 10.1, Direct3D 9 / 9Ex, and Direct3D 8: All five PE DLLs (
dxgi.dll,d3d11.dll,d3d10core.dll,d3d9.dll,d3d8.dll) are implemented from scratch on Vulkan 1.3/1.4 with built-in DXBC (SM 4–5) and DXSO (SM 1–3) to SPIR-V 1.6 shader compilers and are under active bring-up for real-world games. -
Direct3D 12: Handled by bundled
vkd3d-proton(d3d12.dll/d3d12core.dll) until Bitters' D3D12 path is ready.
-
DXGI, Direct3D 11 / 11.1, Direct3D 10 / 10.1, Direct3D 9 / 9Ex, and Direct3D 8: All five PE DLLs (
-
Loader & Prefix Routing (
zig/src/pisco/main.zig,zig/src/default_pfx.zig):- Prepends
files/lib/vodka/bittersahead offiles/lib/vkd3dandfiles/lib/vodkainVODKADLLPATH. - Symlinks/copies Bitters DLLs into
drive_c/windows/system32anddrive_c/windows/syswow64and injects native overrides inVODKADLLOVERRIDES(unlessPROTON_USE_VODKAGFX=1or explicit user builtin overrides such asdxgi=b/d3d8=bare set). - Setting
PROTON_USE_VODKAGFX=1(compat configvodkagfx) omits Bitters fromVODKADLLPATHand disables Bitters/vkd3d-protonnative overrides, falling back to Vodka's built-in graphics DLLs.
- Prepends
Pisco bundles only royalty-free GStreamer components in Makefile.in:
-
gstreamer,gst-orc,graphene,libsoup -
gst-plugins-base,gst-plugins-good -
dav1dandgst-plugins-rs(gst-plugin-dav1dfor AV1 decoding)
Patented codec bundles (ffmpeg, gst-libav, gst-plugins-bad, gst-plugins-ugly) are intentionally excluded. At launch, zig/src/pisco/main.zig builds GST_PLUGIN_SYSTEM_PATH_1_0 with Pisco's bundled GStreamer plugin directories first, then automatically appends existing host Linux GStreamer 1.0 plugin directories (/usr/lib/gstreamer-1.0, /usr/lib64/gstreamer-1.0, /usr/lib/x86_64-linux-gnu/gstreamer-1.0, /usr/lib/aarch64-linux-gnu/gstreamer-1.0, and matching 32-bit paths when multi-arch is enabled) with deduplication. Set PISCO_NO_HOST_GST_PLUGINS=1 to restrict GStreamer strictly to Pisco's bundled plugins.
Tonic (stable branch, Apache-2.0, early alpha) is integrated into Pisco via Makefile.in (files/lib/vodka/tonic/{x86_64,i386,aarch64}-windows/sapi.dll, libtonic.so, and tonic CLI), default_pfx.zig, and pisco/main.zig (VODKADLLPATH + sapi=n override), replacing GPL-3.0 espeak-ng and prebuilt onnxruntime binaries:
| Component | Responsibility |
|---|---|
Klatt Formant TTS (src/tts/) |
Pure-Zig English text normalizer, rule-based G2P, and 22050 Hz Klatt-style formant synthesizer (cascaded biquad resonators, SAPI rate/volume controls, RIFF WAV output). |
Finite-Grammar ASR (src/asr/) |
Pure-Zig 512-point FFT, 26-band Mel filterbank, 13-coefficient MFCC extraction, energy VAD, and Sakoe-Chiba banded DTW recognition for closed-vocabulary game command grammars (not unconstrained open dictation). |
Optional Host Bridge (src/host/bridge.zig) |
Runtime dlopen probe for host libspeechd.so.2 (speech-dispatcher) when TONIC_NO_HOST_SPEECH is unset, falling back to Tonic's built-in formant synthesizer when unavailable. |
SAPI 5 Frontend (src/sapi/) |
Multi-architecture Windows PE sapi.dll (x86_64-windows, i386-windows, aarch64-windows) plus native Linux tonic CLI and libtonic.so, implementing core ISpVoice, ISpRecognizer, ISpRecoContext, ISpRecoGrammar, and token enumeration COM interfaces. |
Upstream Proton relies on Python 3 at both runtime (proton, filelock.py, user_settings.py) and build time (default_pfx.py, steampipe_fixups.py, fonts/scripts/merge.py, lsteamclient/gen_wrapper.py, vrclient_x64/gen_wrapper.py, OpenXR code generation), plus standalone C helpers (steam_helper/steam.c, symstore/symstore.c, media/make_blank_ptna.c).
Pisco eliminates Python completely and consolidates all launcher, build, packaging, and code-generation utilities into a single build.zig workspace under zig/src/:
zig/src/
├── common/ # Shared utilities imported across all native tools
│ ├── root.zig # Module root exporting common submodules
│ ├── filelock.zig # POSIX flock() advisory lock (replaces filelock.py)
│ ├── fs_util.zig # Filesystem traversal, symlinks, atomic file helpers
│ ├── pe.zig # Pure-Zig PE/COFF parser (bitness, builtin detection, SymSrv keys)
│ └── steampipe.zig # SteamPipe manifest generation & permission/dir restoration
├── pisco/ # Native Steam Play launcher (builds -> zig-out/bin/pisco)
│ ├── main.zig # Verb dispatch, prefix setup, Bitters/GStreamer routing, Wayland toggle
│ ├── quirks.zig # Structured per-AppID / per-GameID compatibility tables
│ ├── gpu_vendors.zig # PCI sysfs GPU classification & per-vendor Wayland/Vulkan defaults
│ ├── settings.zig # Zero-Python parser for user_settings.json & user_settings.py
│ ├── reg.zig # Atomic Vodka .reg reader/updater
│ └── nvidia.zig # Dynamic libGLX_nvidia.so.0 linkmap lookup for host nvngx.dll
├── steam_helper/
│ └── main.zig # Cross-compiled Windows PE steam.exe (x86_64, i386, aarch64)
├── generators/ # Build-time ABI & header code generators
│ ├── xml.zig # Arena-friendly XML DOM parser for Khronos xr.xml
│ ├── clang_ffi.zig # Dynamic dlopen() bindings for LLVM libclang C API
│ ├── make_openxr.zig # OpenXR header & Unix/loader thunk generator (vodkaopenxr)
│ ├── gen_lsteamclient.zig# Steamworks C++/ABI wrapper generator (u32/u64/w32/w64)
│ └── gen_vrclient.zig # OpenVR C++/ABI wrapper & flatapi.c thunk generator
├── default_pfx.zig # Default Vodka prefix builder, Bitters symlinks & registry sanitizer
├── steampipe_fixups.zig # CLI frontend for SteamPipe process/restore manifests
├── font_merge.zig # Pure-Zig SFNT TrueType subsetter, merger, and renamer
├── symstore.zig # Microsoft SymSrv-compatible PE symbol store indexer
└── make_blank_ptna.zig # RFC 7845 .ptna Opus audio stream generator (links libopus)
In dist/, Pisco installs the compiled binary at pisco and symlinks proton -> pisco. Both toolmanifest_x86_64.vdf (requiring Steam Runtime appid 4183110) and toolmanifest_arm64.vdf (requiring appid 4185400) declare "commandline" "/pisco %verb%".
Three build-time generators under zig/src/generators/ replace complex Python code-generation scripts:
-
make_openxr(make_openxr.zig+xml.zig): Parses Khronos OpenXRxr.xml(pinned toXR_XML_VERSION = "1.1.63") using a pure-Zig XML DOM parser with zero external libraries. Generatesvodkaopenxr.h,vodkaopenxr.json,openxr_thunks.{h,c}, andloader_thunks.{h,c}. -
gen_lsteamclient(gen_lsteamclient.zig+clang_ffi.zig): Dynamically loadslibclangviadlopen(avoiding compile-time LLVM version coupling) to parse user-supplied Steamworks SDK headers (--sdk-dir, not bundled in the repository) across versions099u–165and all four ABIs (u32,u64,w32,w64), emittingcpp<Class>_<Version>.cpp,win<Class>.c, and generated struct/unixlib glue. -
gen_vrclient(gen_vrclient.zig+clang_ffi.zig): Uses the same dynamiclibclangbridge across OpenVR SDKv0.9.0–v2.15.6and all four ABIs (u32,u64,w32,w64), generating vtable wrappers,FnTableflat C constructors/destructors, andflatapi.cassembly thunks.
Steam executes compatibility tools inside the Steam Linux Runtime (SteamRT) container environment, whose baseline glibc version is older than rolling-release Linux hosts (such as Arch Linux or Fedora).
To guarantee that host-compiled Pisco binaries run reliably inside SteamRT and on older distributions, build.zig provides -Dglibc-compat=true:
const target = if (glibc_compat and default_target.result.os.tag == .linux)
b.resolveTargetQuery(.{
.cpu_arch = default_target.result.cpu.arch,
.os_tag = .linux,
.abi = .gnu,
.glibc_version = .{ .major = 2, .minor = 31, .patch = 0 },
})
else
default_target;- Both
Makefile(make zig) andMakefile.in(zig-tools) pass-Doptimize=ReleaseSafe -Dglibc-compat=true. - All Linux ELF binaries (
pisco,default_pfx,steampipe_fixups,font_merge,symstore,make_openxr,gen_lsteamclient,gen_vrclient) bind exclusively to glibc<= 2.31symbols. -
make_blank_ptnalinks against hostlibopususingdefault_targetand can be toggled off inside container builds via-Dwith-opus=false. -
steam.execross-compiles directly tox86_64-windows,i386-windows, andaarch64-windowsPE executables using Zig's built-in Windows target support, requiring no host MinGW toolchain or external C headers.
Copyright (c) 2026 buntatoes. Original Pisco Zig components (build.zig and zig/src/), Vodka, Bitters, and Tonic are licensed under the Apache License 2.0. The Pisco, Vodka, Bitters, and Tonic names, wordmarks, and logos are All Rights Reserved.
Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc. Steam, DirectX, Windows, AMD, NVIDIA, Intel, and other third-party trademarks belong to their respective owners; Pisco is an independent project and is not affiliated with or endorsed by them.
Design & Runtime
Setup & Usage
Support & Compatibility
Links
-
Pisco Repository (
pisco-unstable) - Vodka Runtime · Vodka Wiki
- Bitters (D3D/DXGI on Vulkan)
- Apache-2.0 License