Commit Graph

275 Commits

Author SHA1 Message Date
8bd0087d2d docs: full-corpus pipeline build: 26,503 of 26,503 shaders compile on NVIDIA, 3.81 GB pipeline cache
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:46:23 -05:00
2442ad124a tests/docs: follow this round's both-side merges (shader_profile test uses #263's run_profile, drop duplicated table rows)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:42:27 -05:00
4d010bf4bd Merge pull request #176 from Spaghetih 2026-11-21 17:38:46 -05:00
fafcc4197b Merge pull request #284 from S1m0ne1997
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-21 17:38:43 -05:00
30ad4802c4 Merge pull request #298 from AlxcBTW
# Conflicts:
#	docs/design.md
#	tests/test_translate.py
2026-11-21 17:38:35 -05:00
8183bb5610 Merge pull request #272 from LuanFreitas
# Conflicts:
#	docs/design.md
#	tests/test_translate.py
2026-11-21 17:38:33 -05:00
b779cc17e1 Merge pull request #301 from Shuvam Pandey 2026-11-21 17:38:32 -05:00
eaea09434b Merge pull request #274 from SuarezPM 2026-11-21 17:38:31 -05:00
1c62e91b1a Merge pull request #261 from Tim Elery 2026-11-21 17:38:24 -05:00
263fcbdba8 Merge pull request #270 from nicolas 2026-11-21 17:38:23 -05:00
09cee3344b Merge pull request #283 from Diego Casares 2026-11-21 17:38:21 -05:00
6da439da0f Merge pull request #289 from Ayinaki 2026-11-21 17:38:21 -05:00
8cd141e5a3 Merge pull request #305 from Kam471 2026-11-21 17:38:20 -05:00
a15ed8817d Merge pull request #292 from Kam471 2026-11-21 17:38:20 -05:00
5a499f2598 Merge pull request #285 from Kam471 2026-11-21 17:38:20 -05:00
9db1ab28c0 Merge pull request #273 from Kam471 2026-11-21 17:38:20 -05:00
9eac62dce9 Merge pull request #266 from Kam471 2026-11-21 17:38:20 -05:00
83d1ce8a7b Merge pull request #264 from Kam471 2026-11-21 17:38:20 -05:00
ccb001882f Docs: measure the BCPack block structure and limits
Record the 48-byte lane header, block counts, the exact BC1/BC4 constant-lane check, and the 200-chunk entropy convergence. A public BC1 candidate is mip-consistent on 40/200 chunks but has no byte-exact plaintext check and an unpublished predictor window, so no decoder is added. Also record that no shipped DLL contains a BCPack/BCn/DStorage decoder or dispatcher.
2026-11-21 22:37:31 +00:00
5bc48f20b7 world_names: resolve placement/archetype hashes with 32-bit joaat and Murmur3-64
Measured on Xbox 1.0.2.1:
- archetypeName, map name and parent are lower-cased joaat.
- per-archetype +0x20 and map +0x10 keys are MurmurHash3 x64 128 low 64 (seed 0).
- +0x08 is a per-entity id, not a per-archetype hash.

A 79,738-name local dictionary resolves 5,107/24,105 distinct
archetype hashes (8,263/203,799 entities) in two bounded windows,
all confirmed by the 64-bit key; one 32-bit-only candidate is
rejected. Map names resolve 5/23,535 and parents 1/2,089.

Adds tools/world_names.py, synthetic tests, world_names.md, and
map_name64 to world_index output.
2026-11-21 22:36:32 +00:00
b9552cd924 Translator: convert cube sample coordinates for the 2D-array view
The hardware takes a cube sample's s and t in [1, 2] and its third
coordinate as 8 * slice + face (Mesa ac_nir_lower_tex_coords.c, LLPC
ImageBuilder.cpp). Samples and gathers passed them unchanged to the
6-layer 2D-array view; they now use s - 1, t - 1 and layer
6 * slice + face.

ps_cube_sample checks every pixel on a GPU (vk_texture_test cube), and
test_cube_sample checks the coordinates without one.
2026-11-22 04:15:43 +05:45
bd27a74315 Decode the MHIU and PAMH map arrays
Add a stdlib reader for the two MHIU headers and square byte grids and the PAMH row table plus u16 grid, with synthetic tests and measured header notes. The checksum and the MHIU prefix remain unknown.
2026-11-21 22:27:43 +00:00
b384056741 Docs: record the TTPF array/volume measurements in the design row 2026-11-21 22:25:33 +00:00
9e81de4233 d3d12_vulkan.md: the translator's uses_code_base confirms the per-stage code-base counts
AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:24:43 +01:00
76b7b5b329 Index tools: refuse --limit/--start values that scan nothing, survive empty archives
bvh_index, page_index, story_index, navmesh_index and psin_index:

- --limit 0 meant "no limit" (0 is falsy) and a negative --limit scanned
  nothing and still exited 0 with an empty index. --limit must now be at
  least 1 and --start 0 or more; argparse rejects anything else (rc 2).
- An empty .rpf crashed in mmap ("cannot mmap an empty file") and a file
  shorter than the header word crashed in struct.unpack_from. bvh, page and
  story now treat both as an archive with no streams.
- bvh_index directory mode: one bad archive no longer aborts the scan and
  loses the results of the others; it is reported and skipped.
- A --start past the end of the archive is a one-line error (rc 2) instead
  of a traceback (bvh also checked nothing and reported a negative span).
- page_index checks the output extension before the scan, not after it.

Docs: the accepted ranges and the empty-archive behaviour are written next
to each tool's usage in docs/{bvh,navmesh,page_directory,psin,story}.md.

Tests: synthetic cases for each tool; they fail on main and pass here.
2026-11-21 23:21:29 +01:00
27d1b11b64 Runtime: register each mapped image's x64 unwind table (.pdata) with RtlAddFunctionTable
Images the loader maps by hand are unknown to the system unwinder, so an exception raised in or passing through one couldn't be dispatched and killed the process. load() now validates the exception directory (entries in bounds, sorted, non-overlapping; zero-length entries allowed, as in System32's symcryptk.dll) and registers it; the loader removes it before freeing the image. Rules measured over 3,780 x64 System32 images (5,023,071 entries) and the 16 package DLLs.

Tests: loader_test covers registration, removal and six corrupt tables on hand-built images; pe_loader_test checks a fixture SEH fault is caught by the image's own handler (fails without registration) and, with LEONIDA_GAME_DIR, every package DLL's table.

AI-assisted.
2026-11-21 23:18:59 +01:00
fece829131 docs: measure TTPF array and volume layouts (ASSET-18) 2026-11-21 22:17:49 +00:00
edbef47811 Docs: census other world archives for placement maps 2026-11-21 22:16:20 +00:00
fdf4d29955 Translator: use the FSSM pixel-input table in the PS input path (SHADER-15)
AI-assisted (fixer lane, orchestrated). tools/fssm_header.py already decoded the pixel-input table; rdna2spirv.py ignored it.

- PS translate() reads the fssm/<name>.fssm sidecar (same convention as CS) and declares every table position 0..count-1 as a fragment input at that Location, including positions the code never reads.
- A 32-bit v_interp read (p1/p2/mov) of a 16-bit-flagged position (flag bit 4) is rounded f32->f16->f32; *_f16-opcode reads already narrow and are unchanged; reads past the table still declare; no sidecar (or empty table) is byte-identical to the old path.
- shader_meta() records ps_interpolants (count) and ps_fp16_interpolants (flagged positions).
- docs/design.md: contract-table row with corpus measurements and the fixture confirmation (synthetic + mini_interp, no GPU).

Verified: tests/test_rdna2spirv_pixelinput.py 9 passed (synthetic FSSM blobs + hand-written listings, empty DXBC; no llvm-mc/spirv-tools/GPU/game data); full suite 1066 passed + 366 subtests on the dev branch; compileall + make_game --help green. Claimed as SHADER-15 in #156 before starting.
2026-11-21 19:15:52 -03:00
c56589c91b SHADER-30: emit CullPrimitiveEXT as Block+bool for old spirv-val
Array-of-bool is legal (VUID-07036) but SPIRV-Tools <=2025.1 rejects it (#5980).
The Block member form matches glslang and passes both old and new validators.
2026-11-21 19:14:58 -03:00
052cc571d0 feature_scan: count s_getpc_b64 kept for code-embedded data per stage; d3d12_vulkan.md: answer §8.2 #10, per-stage counts for #14, tiled resources for #18
AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:12:07 +01:00
c9a3798c5f Docs: put the measured levels census in the archive row 2026-11-21 22:10:11 +00:00
553f0df328 docs: drop the Byte permute row the #222 merge duplicated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:09:57 -05:00
cc1f4d3597 Merge pull request #230 from Jan Trencansky
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-21 17:09:46 -05:00
01bc91eb2c Merge pull request #222 from simonbronk
# Conflicts:
#	docs/design.md
#	tests/semantic/regen_fixtures.py
#	tests/semantic/spirv_mini_interp.py
2026-11-21 17:09:28 -05:00
78bac0ead5 Merge pull request #235 from shuv-amp
# Conflicts:
#	tests/semantic/regen_fixtures.py
#	tests/semantic/spirv_mini_interp.py
2026-11-21 17:08:27 -05:00
345465a2d6 Merge pull request #257 from IAmNotSiob 2026-11-21 17:07:42 -05:00
5773165b67 Merge pull request #241 from 0xTehuti 2026-11-21 17:07:42 -05:00
b80e3baddf Merge pull request #228 from Jan Trencansky 2026-11-21 17:07:41 -05:00
77c466c5b5 Merge pull request #224 from 0xTehuti 2026-11-21 17:07:41 -05:00
fdaf5e402e Merge pull request #246 from LuanFreitas 2026-11-21 17:07:40 -05:00
c1686b84e0 Merge pull request #223 from Alex Collini 2026-11-21 17:07:38 -05:00
e555237b31 Merge pull request #255 from SuarezPM 2026-11-21 17:07:37 -05:00
9c7573078d Merge pull request #248 from Ayinaki 2026-11-21 17:07:37 -05:00
3176cecd72 Merge pull request #251 from Kam471 2026-11-21 17:07:35 -05:00
69b578eefa Merge pull request #229 from Kam471 2026-11-21 17:07:35 -05:00
b59427776d Merge pull request #225 from Kam471 2026-11-21 17:07:35 -05:00
74863bfa91 Merge pull request #190 from Kam471 2026-11-21 17:07:35 -05:00
cd10e30ac6 Merge pull request #181 from Kam471 2026-11-21 17:07:34 -05:00
d4a44d3fcc Docs/Tests: sync mesh v5 notes in design.md and add NumThreads constant regression test 2026-11-21 14:07:28 -08:00