Architecture Overview
ZeroVDD separates pure domain math, driver state management, Windows display/CCD topology control, and privileged WDF/IddCx callbacks into strict acyclic layers. Dependencies flow strictly downward from Layer 3 to Layer 0, enforced automatically by crate_dag_lint inside crates/zerovdd-checks.
Crate Dependency Graph
Section titled “Crate Dependency Graph”flowchart TD
L0_proto["zerovdd-proto (L0, no_std)"]
L0_edid["zerovdd-edid (L0, no_std)"]
L0_modes["zerovdd-modes (L0, no_std)"]
L0_cfg["zerovdd-config (L0, std)"]
L1_eng["zerovdd-engine (L1, no_std)"]
L2_sys["driver-wdk/zerovdd-iddcx-sys (L2 WDK)"]
L2_drv["driver-wdk/zerovdd-driver (L2 WDK)"]
L2_cli["zerovdd-client (L2 Win)"]
L2_inst["zerovdd-installer (L2 Win)"]
L3_cli["zerovdd-cli (L3 Win)"]
L3_svc["zerovdd-svc (L3 Win)"]
L3_tray["zerovdd-tray (L3 Win)"]
Checks["zerovdd-checks (0 workspace deps)"]
L1_eng --> L0_proto
L1_eng --> L0_edid
L1_eng --> L0_modes
L2_drv --> L1_eng
L2_drv --> L2_sys
L2_drv --> L0_proto
L2_drv --> L0_modes
L2_cli --> L0_proto
L2_cli --> L0_cfg
L2_inst --> L0_cfg
L3_cli --> L2_cli
L3_cli --> L2_inst
L3_cli --> L0_edid
L3_cli --> L0_cfg
L3_cli --> L0_proto
L3_svc --> L2_cli
L3_svc --> L0_edid
L3_svc --> L0_cfg
L3_svc --> L0_proto
L3_tray --> L0_cfg
L3_tray --> L0_proto
Layer Responsibilities
Section titled “Layer Responsibilities”- Layer 0 (Pure domain & config, zero
windows/wdkdependencies):zerovdd-proto(#![no_std]+alloc;stdfeature for IPC): Versioned binary IOCTL ABI (v1.1.0) with exact byte-length validation and length-prefixed JSON service IPC framing.zerovdd-edid(#![no_std]+alloc): EDID 1.4 + CTA-861-G synthesizer (CIE chromaticity, configurable PPI physical sizing, bpc bits, HDR10 static metadata, deterministic per-monitor serial/name) and strict custom-EDID validator.zerovdd-modes(#![no_std]+alloc): 64-bit overflow-proof VESA CVT-RBv2 timing math, GCD-reducedRationalHz, and a unifiedVideoSignalInfomode planner shared acrossParseMonitorDescription2andMonitorQueryTargetModes2.zerovdd-config(std): TypedConfigV1(schema_version = 1,#[serde(deny_unknown_fields)]) and atomic temp-file + rename persistence.
- Layer 1 (Driver state engine,
#![no_std]+alloc):zerovdd-engine: Re-entrancy-safePending -> Activemonitor registry, D0/D3 adapter lifecycle state machine, handle/lease ownership, GPU-switch circuit breaker, and deterministicFakeIddPlatformsimulator.
- Layer 2 (Platform adapters):
driver-wdk/zerovdd-iddcx-sys: UMDF 2.33 / IddCx 1.10 bindings and thin C-ABI inline-table trampoline (c/iddcx_trampoline.c).driver-wdk/zerovdd-driver: UMDF 2 DLL (zerovdd.dll), Control Device gate, device-scoped D3D11 manager, zero-polling swapchain workers, unnamed hardware cursor handler, and ETW TraceLogging.zerovdd-client(cfg(windows)): Control Device IOCTL client, CCDQueryDisplayConfig/SetDisplayConfigtopology engine, Windows 11 24H2 split HDR/ACM manager, and DXGI GPU selector.zerovdd-installer(cfg(windows)): SetupAPI/newdevDriver Store staging,Root\ZeroVdddevice-node management, and pinned dev-cert helper.
- Layer 3 (Binaries):
zerovdd-cli(zerovdd.exe):setup,display,edid,doctor,sunshine, and hiddeninternal-ccd.zerovdd-svc(zerovdd-svc.exe): Session-0 Windows service, ACL-protected named pipe, active console-session CCD trampoline, andsunshine.execrash guardian.zerovdd-tray(zerovdd-tray.exe): Native Win32 system tray companion communicating over\\.\pipe\zerovdd-svc.
- Verification Crate (
zerovdd-checks, zero workspace dependencies):- Compiled AST/lexer static lints and isolated temp-repo hook/script integration tests.
Why driver-wdk/ Is an Isolated Sub-Workspace
Section titled “Why driver-wdk/ Is an Isolated Sub-Workspace”driver-wdk/ is excluded from the root Cargo.toml for three concrete reasons:
zerovdd-drivercompiles as#![no_std]+allocwithpanic = "abort"(NoPanicpolicy enforced statically bydriver_panic_policy_lint) sozerovdd.dllpassesApiValidatorwith zero non-OneCorestdimports. Settingpanic = "abort"in the root workspace would break#[should_panic]host tests.- Root workspace tests, Clippy, and Linux
x86_64-pc-windows-msvctypechecks run in seconds without requiring a Windows WDK installation. - Layer 0/1 crates (
proto,edid,modes,engine) compile cleanly with--no-default-featuresin both workspaces.
What to Read Next
Section titled “What to Read Next”- Driver Internals for UMDF 2 / IddCx 1.10 mechanics, locking, and swapchain processing.
- Session-0 Trampoline for console-session CCD orchestration and crash recovery.
- Testing Policy for the three-tier verification model.