- Python 61.8%
- C++ 34.2%
- Assembly 2.4%
- CMake 0.7%
- HTML 0.3%
- Other 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The session-3 request never finishes; this slice traces it through the streaming subsystem's own pump and finds the gate that stops it. Measured in two clean 300 s arms with the mitigation on: the request is created and attached once (subscriber start, submit, command start, pending register each once; the request sits in the cache at every sample for the whole window), and the loading update steps it every frame - the cache walk, the request step and the stream pump all run thousands of times. But the async engine's step runs only sixteen times, all within the attach window, and is gated off afterwards by a lookup whose manager-table entry carries state zero instead of the ready state two; the entry is present during the attach and null in every later sample while the gate keeps being evaluated tens of thousands of times. Every completion entry point stays at zero hits, and the request's completion fields and the stream's pending slot never change; a hardware watch sees only the per-frame zero write and no change on the completion fields. No D3D12 fence, copy or queue event is tied to the request, and the earlier arm measured no storage or file activity after the start, so no runtime answer is upstream - the gate reads title bookkeeping only. No shim change and no test addition (diagnostic only, default path byte-identical). The next falsifier is the stream's manager-table registration/open transition: watch the table entry and its state word and probe the code around the gate to name what should set the ready state. Session stays 3, the movie player holds its playing state without buffers, the movie draw never issues, and every capture and readback remains black. Operationally, the first arm blocked on a stale boot lock with no runtime process; it was cleared and the arm re-run. |
||
| .github | ||
| app | ||
| assets | ||
| docs | ||
| extensions | ||
| port | ||
| profiles | ||
| reports/gpu | ||
| tests | ||
| tooling | ||
| vendor | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| Build.bat | ||
| build_port.py | ||
| CONTRIBUTING.md | ||
| global.json | ||
| LICENSE | ||
| Mods.bat | ||
| NOTICE.md | ||
| README.md | ||
Palmetto

A clean-room compatibility runtime that runs a modern console build natively on Windows, built on your own PC from your own copy.
Palmetto translates a retail console executable and its shaders into a native Windows program at build time: the loader maps the console image, the runtime resolves its imports to open-source shims, the shader tooling translates the console shaders to SPIR-V, and a Vulkan-backed D3D12 device executes the result.
Important
This repository contains no game, no keys and no executable, and it does not explain how to obtain them. You need your own legally acquired copy, with its files already readable on disk. Nothing here decrypts content or works around any protection measure. Everything a build creates — translated shaders, extracted assets, the runtime folder, your saves — comes from your own copy and stays on your PC. Never share those files.
Status
Last updated 2026-11-24 at c9653e371. Measured on one machine (Windows 11, Intel 13900K, RTX 4090) against the author's own retail console package. Every row below is an outcome the project produces, not a plan.
| Stage | State | What backs that |
|---|---|---|
| Image and platform | done | the executable image maps at its preferred base, imports resolve through shims, static TLS is redirected, heap and file system come from the host |
| Shader corpus | done | 26,616 SPIR-V modules indexed; the boot loads 27,890 translated entries with 0 pipeline failures |
| Console D3D12 on Vulkan | done | device, queues, fences, allocators, heaps, command lists, the queue slot shift, the fence value address, the list lifecycle, the clear/barrier conversions, the display surfaces (console slot 127), the derived-pipeline extension (console slot 55) and the title's page VAs rebased into one arena are measured and mapped; the largest unmodelled console entry point left is device slot 70 (13,568 calls per boot, a CBV-shaped publication refused by name) |
| Console DirectStorage | done | 4,096 requests / 256 MiB decompressed at 131-144 MiB/s with every status entry S_OK; the blocks are read by a title CPU deserializer and never named to the device in the measured window; packed and swizzled reads refuse rather than guess |
| Boot chain | done | the title boots and runs its own loop past 300 s with no exception |
| Frame loop | done | frames record, close and submit with 0 failed Close and 0 refused submissions; every recorded draw executes after the title's page VAs were rebased into the arena, with no TDR and no lost device |
| Pipeline construction | done | all 10,241 graphics records build into real pipelines (0 refusals) and 41,545 derived pipelines are created through the console slot-55 answer (0 failures) |
| Draw execution | done | 17,674-27,935 draws execute per 150 s run with 0 refused submissions; the page pull keeps the GPU stand-ins holding the title's bytes (273 MiB per 300 s run) |
| Presentation | done | presents into the title's own adopted window: the adoption boot has exactly one visible top-level window in the process and 8,625 present calls with 0 failed; the earlier 300 s run presents 33,275 frames with 0 failed |
| Texture layout (XG) | done | the slot-2 resource-layout record (0x1B40 bytes) is decoded and the linear layout is the default: 44 suggests / 24 computers, 2 records filled exactly, 65 copies / 34,044 B, alive with no exception, device loss or TDR; slot 10's tiling structures are decoded but it still refuses by name because the window creates no 64 KiB-tiled resource |
| Full build | done | a full configure+build of the tree is green (237 of 237 targets, a second run prints up to date) and the gate scripts stay PALMETTO_OK / TESTS_BUILT; three known test failures are documented with their unblocks (docs/testing.md) |
| Frame content | in progress | the presented 4K image is the frame's own draw target and is proven writable (a control draw reads back its exact colour), but reads back uniformly black: the frame's record is clean (clear first, draw last, no copy or resolve), fixed-function stand-ins and culling are falsified, the title's vertex/geometry path produces no fragments even unculled, and the sampled 4K placed texture's own pages are never written (0 of 129,792 scanned bytes over 150 s; the import had nothing to copy). The fixed-function state record's 8 fields cannot be pinned by a behavioural probe (docs/frame_capture.md, docs/texture_source.md, docs/state_blob.md) |
| Measured | Value |
|---|---|
| Boot result | ALIVE beyond 300 s, no exception |
| Graphics pipelines built | 10,241 of 10,241 (0 refusals) + 41,545 derived |
| Draws executed per 150 s run | 17,674-27,935, 0 refused submissions |
| Frames presented | 8,625 per 90 s adoption boot, 0 failed (33,275 per 300 s run before the window adoption) |
| Visible game windows | 1 - the title's own window; the runtime's own window is not created when it can adopt |
| Presented frame content | uniformly black in the presented resource; the target is proven writable and correctly bound |
| Sampled texture data | the sampled 4K placed texture's pages are never written (0 of 129,792 scanned bytes over 150 s) |
| Streamed blocks | 4,096 requests / 256 MiB decompressed; read by a title CPU deserializer and never named to the device in the window |
| Full build | 237 of 237 targets green; gates PALMETTO_OK / TESTS_BUILT |
Where it stops now: no stop - the title boots past 300 s, executes its draws and presents into its own window; the presented frame still reads back uniformly black - the title boots past 300 s with no exception, executes its draws with 0 refused submissions and presents into the title's own adopted window; a full configure and build of the tree is green (237 of 237 targets). The presented 4K resource is the frame's own draw target and is proven writable, but the title's draw leaves it black: the frame's record is clean (clear first, draw last, no copy or resolve), the cull hypothesis and the fixed-function stand-ins are falsified, the title's vertex/geometry path produces no fragments even unculled, and the sampled 4K placed texture's pages are never written. The XG layout slot-2 record is decoded and the linear layout is the default, the streamed 256 MiB are consumed by a title CPU deserializer and never named to the device, and the fixed-function state's 8 fields cannot be pinned by behaviour.
Measurements and the method behind them: docs/frame_capture.md.
Next up:
- dump the translated vertex shader's outputs and the vertex bytes its input layout reads for a real draw, to find where coverage dies (the geometry path)
- find the title-side producer that should write the sampled 4K placed texture, or the device-side producer a console-addressed texture of that population was meant to come from
- decode console device slot 70 (13,568 calls per boot, a CBV-shaped publication refused by name), the largest unmodelled console entry point left
- pin fixed-function state only from the serialized-layout source or a driver trace; the behavioural probe cannot tell any of the 8 fields apart
- find a title path that creates a 64 KiB-tiled resource, so the slot-10 tile list can be filled honestly
More: the full measurement ladder, the frame-capture measurement, the streamed-block consumer, the sampled texture's data source, incoming reports and tracked findings.
Build
Requirements: your own copy of the target console package, Windows 10/11 x64, ~400 GiB free for the full build,
Python 3.12+, .NET 8 SDK, Visual Studio 2022 with the C++ tools and Windows SDK 10.0.26100+,
Vulkan SDK (spirv-as, spirv-val), LLVM 21+ with the AMDGPU target for
llvm-mc (the official Windows build has none; tooling/scripts\build_llvm_mc.ps1 builds one), and ffmpeg on PATH.
git clone https://github.com/luizwidmer/Palmetto
cd palmetto
python -I build_port.py --find # locate your own copy
python -I build_port.py --check # verify it
python -I build_port.py --game "<pkg>" --out "<out>" --work "<work>" --stages shaders,runtime
tooling/scripts\build_runtime.ps1 builds palmetto.exe on its own. Then:
palmetto.exe --dry-run <pkg>\game.exe --game-dir <pkg> # map the image, list imports
palmetto.exe --run <pkg>\game.exe --game-dir <pkg> --overlay <dir> --trace-d3d12 --trace out.jsonl
For a comparable one-line summary of any attempt, use the harness:
python -I tooling/boot_report.py --exe port\build\palmetto.exe `
--image <pkg>\game.exe --game-dir <pkg> --overlay <dir> --timeout 150
How it works
| Piece | What it does | Where |
|---|---|---|
| Shaders | carve DXBC, unpack native RDNA2, disassemble with LLVM gfx1013, translate to SPIR-V |
tooling/shader_carve.py, tooling/fssm_unpack.py, tooling/shader_disasm.py, tooling/rdna2spirv.py |
| Runtime | maps the PE image, resolves imports to shims, console-ABI proxies over a Vulkan-backed D3D12 device | port/ |
| Assets | validated resources inside the console's data archives, texture pools, audio banks | tooling/arc9dump, tooling/ttpf_assets.py |
| Progress | the README tracker below, generated from docs/progress.json; a fuller offline page of what passes and what blocks next |
tooling/readme_progress.py, tooling/progress_dashboard.py |
Format and contract notes are indexed in docs/README.md.
Rules
- No game data, ever — no archives, executable, carved files, shaders in any form, textures, models, audio, or logs and reports that quote them. Share outcomes (counts, pass/fail, error classes), not inputs.
- No keys, decryption or protection workarounds. The tools only read files that are already plain on disk.
- Short excerpts needed to explain a format (a few header bytes, one instruction) are fine in docs and comments.
Credits
The design, the runtime, the shader translator and the documentation are the work of the Palmetto authors and its contributors.
Also: arc9-explorer (archive decoders), Mesa (descriptor layout, ACO/RADV reference), libHttpClient (XTaskQueue), LLVM (AMDGPU disassembler), SPIRV-Tools.
This project is not affiliated with or endorsed by any console manufacturer or game publisher.
License
GPLv3 or later. See LICENSE. Third-party code keeps its own license.
See NOTICE.md for the project's content policy and rights-holder contact.