Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions docs/related_projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,32 +79,23 @@ fix should go upstream, not into a copy.

## meetox80/6stars

<https://github.com/meetox80/6stars> — a macOS Swift/Metal engine that renders the world out of RPF9,
with a Swift `RPFKit` format library and 44 Python research scripts. Independent work: it likewise
does not decode the TOC.

**Licence: none.** The repository has no `LICENSE` file (GitHub reports `license: null`); only the
vendored cimgui/imgui carry MIT. With no grant, default copyright applies and the project is
**all rights reserved** — stricter than PercyStar. **No 6stars code, comment, identifier or table may
be copied into Leonida.**

**What we use it for:** corroboration and a small number of hypotheses. As an independent reading of
the same formats it matches our `CEntityDef` member hashes (9/9), the PRD0 header, the navmesh tile
header, the meshlet group header and the PSIN/LSCH field layout. Its stream-role predicates and
navmesh surface bits are recorded as hypotheses and tested from our own package, never copied.
Where it disagrees with us (ETPF format and tile mode, the RDS5 codec field, `atArray` type `0x5C`,
PSO member hashing) our measurements are the validated ones.
<https://github.com/meetox80/6stars>

A macOS Swift/Metal engine that reads the world from RPF9, with its own archive index and format readers.
A macOS Swift/Metal engine that renders the world out of RPF9, with its own archive index, a Swift `RPFKit` format
library and 44 Python research scripts. Independent work: it likewise does not decode the TOC.

**Licence: none.** There is no `LICENSE` file and GitHub reports no licence, so all rights are reserved.
**No 6stars code, comments, identifiers or tables may be copied into Leonida.**
**Licence: none.** The repository has no `LICENSE` file (GitHub reports `license: null`); only the vendored
cimgui/imgui carry MIT. With no grant, default copyright applies and the project is **all rights reserved** —
stricter than PercyStar. **No 6stars code, comments, identifiers or tables may be copied into Leonida.**

**What we use it for:** corroboration. Its RPF9 stream-boundary predicate and PRD0 member type codes were
**What we use it for:** corroboration and a small number of hypotheses. As an independent reading of the same formats
it matches our `CEntityDef` member hashes (9/9), the PRD0 header, the navmesh tile header, the meshlet group header
and the PSIN/LSCH field layout. Its stream-role predicates and navmesh surface bits are recorded as hypotheses and
tested from our own package, never copied. Its RPF9 stream-boundary predicate and PRD0 member type codes were
re-measured against this package before entering [rpf.md](rpf.md) and [world.md](world.md); its navmesh
road/pavement bit labels did not reproduce and are not used. The navmesh polygon `+4` packing it reads is the one
our decoder already validates ([navmesh.md](navmesh.md)).
road/pavement bit labels did not reproduce and are not used. The navmesh polygon `+4` packing it reads is the one our
decoder already validates ([navmesh.md](navmesh.md)). Where it disagrees with us (ETPF format and tile mode, the RDS5
codec field, `atArray` type `0x5C`, PSO member hashing) our measurements are the validated ones.

## p-portela/SCARAB

Expand Down
15 changes: 10 additions & 5 deletions docs/world_census.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ map-definition metadata.
The unread bytes are mostly small alignment and metadata gaps between streams. The gap audit found
**23** `0DRP` signatures in unread ranges, but none resolved to a map or metadata resource
(`raw_maps = 0`, `raw_meta = 0`), so the census is not missing a map class. No unaligned zlib stream
that inflates to a `0DRP` header was found in a gap (`missed_zlib_meta = 0`). The 906 rejected
candidates are zlib streams that do not form a complete `0x7a` resource; they are ordinary archive
payload, not counted maps.
that inflates to a `0DRP` header was found in a gap (`missed_zlib_meta = 0`). The 840 rejected
candidates are 16-byte-aligned zlib headers that do not inflate to a stream ending inside the archive
(`scan_shard`: `assemble` raises an inflate error (zlib, struct or index) or returns `None`); they are
ordinary archive payload, not counted maps. A stream that inflates without the `0DRPz` prefix of a `0x7a`
resource is ordinary payload and accepted. One with that prefix that does not come out whole (truncated,
not parsing, or still short of a page) is `incomplete`; `invalid` is a second parse check behind it. Both
are 0 here.

## Other archives

Expand Down Expand Up @@ -161,7 +165,8 @@ do not depend on that fix.
`summary.json` sets `census_exact` only when all of these hold:

- `complete` is true and every expected shard was written;
- `maps_exact == maps` and `entities_exact == entities`;
- `maps_exact == maps`, which also makes `entities_exact == entities`, since `entities_exact` sums the
exact rows;
- `entity_gfx == 0` and `entity_unresolved == 0`;
- `incomplete == 0` and `invalid == 0`;
- `raw_maps == 0` and `missed_zlib_meta == 0`.
Expand Down Expand Up @@ -196,7 +201,7 @@ python -I tools\world_census.py <levels.rpf> --out work\world\census --merge-onl
python -I tests\test_world_census.py
```

The default shard size is 2 GiB, the default job count is half the logical CPUs, and the scan is
The default shard size is 2 GiB, the default job count is half the logical CPUs (at most 12), and the scan is
bounded by `--start` / `--limit` when a partial pass is wanted. `--jobs 1` runs the shards in-process
instead of a process pool, which is useful for small synthetic archives and tests.

Expand Down
49 changes: 49 additions & 0 deletions gpu-test-results/RTX4060-Nobara-three-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
GPU: NVIDIA GeForce RTX 4060
VRAM: 8188 MiB reported by nvidia-smi
Driver: NVIDIA 595.112.07
Subgroup: Not recorded; no subgroup-range claim is made.
OS: Nobara Linux 44 (KDE Plasma Desktop Edition)
Commit: 1c93c8697078c3ccbd6f374caf5bb3ab0b6bc8e4
Date: 2026-11-24
Tools: cmake-4.3.0-1.fc44.x86_64
gcc-c++-16.2.1-2.fc44.x86_64
python3-3.14.7-1.fc44.x86_64
spirv-tools-2026.1-1.fc44.x86_64
vulkan-headers-1.4.341.0-1.fc44.noarch
ninja-build-1.13.2-2.fc44.x86_64

Scope: Three selected synthetic compute fixtures only, using the repository's
pre-disassembled fixtures and spirv-as. This is not a full-suite result.

run_gpu_tests.py --filter cs_bounds:
1 shader: 1 translated, 1 pass spirv-val
PASS cs_bounds: 0x12345678 0x12345678 0x0 0xeeeeeeee
GPU summary: 1/1 passed

run_gpu_tests.py --filter cs_buf:
2 shaders: 2 translated, 2 pass spirv-val
PASS cs_buf_swizzle: 0x5eed0024 0x5eed0044 0x5eed004c 0x5eed0008 0x5eed000c 0x0 0xbeef0000 0xbeef0001
PASS cs_buf_tail: 0x0 0x5eed000c 0x5eed0008 0x5eed000c 0x0 0x0 0x5eed0010 0x0
GPU summary: 2/2 passed

Combined selected coverage: 3 distinct tests passed, 0 reported skipped,
0 reported failed. All 3 translated shaders passed spirv-val.
Other fixtures, wave64-emulation runs, CTest and the translator test suite
were not run. No game files were used. No game-compatibility claim is made.

Build, from the repository root:
cmake -S runtime -B runtime/build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release -DLEONIDA_BUILD_WINDOWS_RUNTIME=OFF -DLEONIDA_VULKAN_HEADERS_FETCH=OFF -DLEONIDA_SDL3_FETCH=OFF -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DLEONIDA_REQUIRE_VULKAN=ON
cmake --build runtime/build/linux --target vk_compute_test vk_store_test vk_harness --parallel 2

Test commands, with paths written relative to the repository root:
LEONIDA_VK_DEVICE=4060 LEONIDA_GPU_TEST_TIMEOUT=20 timeout --kill-after=5s 60s python3 -I scripts/run_gpu_tests.py --build runtime/build/linux --disasm-dir tests/semantic/fixtures/disasm --assembler spirv-as --filter cs_bounds --require-pass --work gpu-work-cs-bounds
LEONIDA_VK_DEVICE=4060 LEONIDA_GPU_TEST_TIMEOUT=20 timeout --kill-after=5s 90s python3 -I scripts/run_gpu_tests.py --build runtime/build/linux --disasm-dir tests/semantic/fixtures/disasm --assembler spirv-as --filter cs_buf --require-pass --work gpu-work-cs-buf

Notes:
- Scripts and native test programs came from the same pinned commit above.
- LEONIDA_VK_DEVICE=4060 constrained device selection; nvidia-smi separately
reported the full card name, driver and VRAM listed above.
- llvm-mc was not used; the selected pre-disassembled fixtures bypass that step.
- The installed system Vulkan headers were used. No dependency fetch was enabled.
- AI-assisted: setup guidance and report preparation. The hardware owner ran the
commands locally and supplied the test output and system metadata.
30 changes: 30 additions & 0 deletions gpu-test-results/RTX4080.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
GPU: NVIDIA GeForce RTX 4080 (Ada / AD103, PCI 10de:2704), subgroup 32..32
Driver: NVIDIA 621.24 (proprietary), Vulkan 1.4.357
Subgroup: 32..32 (minSubgroupSize 32, maxSubgroupSize 32)
OS: Windows 11 Home, build 26300
Commit: d42773d0734d5fd7b3a32a1bfd536f61186322a5 (main, 2026-11-24)
Tools: llvm-mc 21.1.8 (native, built by scripts\build_llvm_mc.ps1), SPIRV-Tools v2026.4 (Vulkan SDK
1.4.363.0), CMake 3.31.6 + Ninja 1.12.1, MSVC 14.44.35207 (VS 2022 Build Tools 17.14,
Windows SDK 10.0.26100.0), Python 3.12.10
run_gpu_tests.py: 257 shaders: 257 translated, 257 pass spirv-val
native: 197/248 passed, 49 skipped, 2 failed
LEONIDA_W64_EMULATE=1: 229/248 passed, 17 skipped, 2 failed
Failed: cs_imgload_tfe, cs_imgload_d16_tfe (native and emulated alike), both with
"r32 sint (sint view): 64 bad, texel(5,3) = 2071": the resident read keeps the seeded
status VGPR, where the fixtures expect it cleared. Tracked in #31. The review on #98
reports native gfx1036 keeping the seed as well, and #98 was closed on that, so this
is read here as the fixtures' expectation, not as a translator fault. Not rerun with
any change checked out.
Skipped: native: 31 "no 64-wide compute subgroup on this device", 1 "no 64-wide subgroup on this
device" and 1 "cannot require a 64-wide fragment subgroup" (the wave64 fixtures, which the
emulated run covers), plus the 16 "run by d3d12_*_test / w64_graphics.py" cases.
Emulated: the same 16, plus the 64-wide fragment one.
Notes:
- Built with scripts\build_runtime.ps1 (CMake + Ninja, RelWithDebInfo, 771 targets), with the Vulkan
SDK's Bin folder and llvm-mc on PATH so the llvm-mc / spirv-as / glslangValidator tests register.
- Device picked with LEONIDA_VK_DEVICE=4080 (the machine also has an AMD Radeon integrated GPU,
PCI 1002:13c0); the run prints "device: NVIDIA GeForce RTX 4080 (subgroup 32..32)".
- ctest, the D3D12 tests and w64_graphics.py were not run in this pass; this file covers
run_gpu_tests.py only.
- AI-assisted (Claude Code): built main and ran run_gpu_tests.py native and emulated. No game files,
nothing online.
2 changes: 1 addition & 1 deletion tests/semantic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ instruction family per file; the list below describes some of them, not every fi
whose format differs from the instruction's, or is 0) and asserts the 52 words `check.py` expects, measured natively on a
Radeon 680M; also the default `BUF_FMT_8_UNORM` byte, a format without an encoder staying `Unsupported`, and the
store's data VGPRs counting as reads.
- `test_buffer_formats_all.py` runs `buffer_load_format_xyzw` (through the V# and through tbuffer) and `buffer_store_format_xyzw` of the 33 formats
- `test_buffer_formats_all.py` runs `buffer_load_format_xyzw` (through the V# and through tbuffer) and `buffer_store_format_xyzw` of the 45 formats
the SCALED, SINT, 10_11_11 / 11_11_10 FLOAT, 2_10_10_10 and 10_10_10_2 families added, with edge values, NaN, infinity and denormals, against
`tools/buffer_format_fuzz.py`'s model, which the Radeon 880M reproduced for 1.33 million validated elements (docs/buffer_formats.md). Two stores of
older formats that differ from the hardware are pinned as expected failures.
Expand Down
Loading