Commit Graph

5744 Commits

Author SHA1 Message Date
5edd093e0b Merge pull request #1183 from cxchhh 2026-11-22 03:14:23 -05:00
4d370b7a1b Merge pull request #1180 from Lucy 2026-11-22 03:14:23 -05:00
60e111a515 Merge pull request #1178 from Lucy 2026-11-22 03:14:22 -05:00
59adbdbdfe Merge pull request #1175 from Lucy 2026-11-22 03:14:22 -05:00
49933c8292 Merge pull request #1174 from cxchhh 2026-11-22 03:14:21 -05:00
bb5b980343 Merge pull request #1173 from Lucy 2026-11-22 03:14:21 -05:00
60fec60c6d Merge pull request #1169 from quackottu 2026-11-22 03:14:20 -05:00
312e244fdf Merge pull request #1162 from Toeesh Chaudhary 2026-11-22 03:14:18 -05:00
e0d7bff3e8 Merge pull request #1160 from AlxcBTW 2026-11-22 03:14:17 -05:00
2a333b5c69 Merge pull request #1155 from quackottu 2026-11-22 03:14:16 -05:00
8bcf5bb3e2 Merge pull request #1140 from wish131400 2026-11-22 03:14:12 -05:00
5636ae8313 hw oracle: hypothesis mismatches are mismatches, wave-size probe, --keep writes the kernel that ran
- run_hw: a failing hypothesis op counts as a mismatch (exit 1) and in hyp_only;
  --minimize marks the hypothesis ops that remain
- Oracle startup probe: a wave64 kernel must see lane 32 as 32, a wave32 kernel
  as lane 0 of the second wave
- test_on_hardware also asserts rejected == 0, no mismatches, no hyp_only
- --keep / --minimize write hw_lines() for hardware failures
- docs: where the permlane FI=0 (#374, #580) and DPP8 (#238) hypotheses come from,
  and the re-run table (24,000 programs, hyp_only 0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:13:05 +01:00
608ba1b54e SHADER-35: RX 6800 findings for MODE f16 rounding
rcp/rsq/sqrt/sin/cos f16 ignore the rounding mode (always nearest even); v_fma_mix{lo,hi}_f16 toward zero rounds the exact fma once (round-to-odd f32 from the product/sum residual, then truncate); the v_add_f64 omod test no longer claims an omod order (omod vs denormal mode is unmodelled, noted in design.md). Tests with the measured words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:12:40 +01:00
4a42559123 Docs: add Brazilian Portuguese (pt-BR) community quickstart 2026-11-22 05:12:27 -03:00
f89a3ceb74 Docs: vehicle distant-light recipes (CVehicleDistantLightData)
Counts over the one CVehicleDistantLightData document in common.rpf: 1,980
recipes for 319 vehicle models, all of which exist as .yft (with _hi
variants) in the archive catalog; secondary recipe tokens; and no stored
light data (every lights list is empty). No names or values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:12:20 +00:00
ea512f284c Runtime: size the bindless set's arrays from the device's descriptor limits
Set 0's 2D, sampler and storage arrays were constexpr (4096 2D images, 1024
samplers, 256 per storage array): one full D3D12 sampler heap (2048) did
not fit and bind_image/bind_sampler fell back. They are now sized once, when
the device creates the set, from the update-after-bind or plain limits:
today's sizes as the floor, then samplers up to min(4096,
maxSamplerAllocationCount - 64), 2D images up to 65536, storage up to 4096.
Sizing at creation keeps the set layout fixed for the pipelines built on it.
2026-11-22 13:41:58 +05:30
ddb5f8b357 Docs: CustomClouds layout (placed weather clouds)
Counts over the one CustomClouds document in common.rpf: 26 groups, 630
clouds at absolute world x/y (groups all at 0,0), cloud types as boolean
flags, CoverageMinMax as a world-unit radius range, signed rain/fog/density.
No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:10:17 +00:00
7afab7fa00 Merge origin/main into d3d90-castable-placed (standalone surface fix ff697417; keep draw/dispatch replay fields) 2026-11-22 00:10:14 -08:00
8d2ccf1776 Docs: fog volume profiles and placed fog volumes
Counts over FogVolumeProfileList (43 profiles) and
CScatteringTransmittance__FogVolumeListData (14 volumes) in common.rpf:
profile indices are list positions, the stored matrices are identity and
omit Scale, and half the volumes sit at the origin. No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:08:25 +00:00
a41c545397 Docs: point the shore-wave amplitude note at the weather document (#1175)
Suggested in review: the ShoreWave* weather fields are only described in #1175 so far.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:06:59 +00:00
f583963c05 Docs: timecycle roots are two of the three most repeated, not the two largest
CVehiclePoints (32) sits between the 49 modifier and 27 keyframe documents in
the root table. Spotted in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:06:40 +00:00
e0d00812f7 Merge origin/main into shader35-mode-round
Conflicts in tools/rdna2spirv.py (f16_out keeps main's fract flag and narrows with f16_res; v_interp_p2_f16 keeps main's clamp and narrows with f16_res; v_fma_mix goes through main's f16_out) and docs/design.md (main's new rows kept, our f16 rounding and Known approximations rows kept).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:05:53 +01:00
45c7911148 crosslane_fuzz: optional hardware oracle (--oracle hw, translator,hw)
Runs each FUZZ-7 program natively on the AMD GPU in wave32 and native
wave64, with its real group size and EXEC setup, every thread storing its
14 words, and compares them with the model. hw_oracle gains raw kernels
(own stores), per-kernel workgroup size and wave64 code objects; the
launcher takes name:threads:words tokens.

24,000 programs on gfx1150: 0 mismatches; the permlane FI=0 and DPP8
inactive-source hypotheses hold on the hardware too. Translator mismatches
all trace to masks read as data (#293) and permlane (#580).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:05:34 +01:00
e6f8335797 Docs: CGraphicsDefinitionsData dirt presets and canned colours
Counts over the one CGraphicsDefinitionsData document in common.rpf: seven
keyed sections, canned colours as 8-bit RGB with w = -1, and which lookups
resolve to which section (all dirt colours resolve to the canned table; one
weather selects a ped dirt preset). No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:05:32 +00:00
23fe0a0c3a Complete BCPack DDS entries during the normal assets export 2026-11-22 16:04:49 +08:00
49451f56ad Docs: GridAtlasInfo layout (32 x 66 tile world grids)
Counts over the four GridAtlasInfo documents in common.rpf: width/height are
world units over a 512-unit tile (32 x 66 tiles, matching the sector span),
and origin is the grid centre (99.83% of map placements inside, and the same
minimum x as the PAMH heightmap). No names or values beyond the shared
geometry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:02:13 +00:00
1c56460bfb world_build: place models at their map placements (--placements)
world_build placed every model at its own coordinates or in rows; it never read the CEntityDef records.

- world_index.py --entities-out writes one JSON line per complete entity: archetype hash and 64-bit key,
  position, stored rotation, scales and LOD fields.
- world_build.py --placements matches each selected entity to an exported model the way world_names.py does
  (lower-cased joaat of the manifest name, confirmed by the Murmur3-64 key when the row has one). It then
  scales by (scaleXY, scaleXY, scaleZ), rotates by the conjugate of the stored quaternion, translates and
  converts to glTF Y-up. Normals use the inverse-transpose; a mirroring scale flips the winding.
  --lod-levels (default 0,5) and --region select the entities. world.json reports the count of each outcome
  in stats.placements.
- tests/test_world_place.py: 15 synthetic tests.
- docs/world.md: "Building a placed world", with measurements on a 700 m downtown box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:01:15 +00:00
c36b68d361 Docs: ShoreWavePlacementData layout (shore-break wave patches)
Counts over the one ShoreWavePlacementData document in common.rpf: 434 open
polyline patches with 7,839 control points, unit wave directions across the
line, constant per-point amplitude, five wave types. No values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:59:50 +00:00
ef5ecac01d Docs: weather type definitions and how they link to the timecycles
Counts over the one CContentsOfWeatherXmlFile document in common.rpf: 25
weather datas named after the 25 full timecycle documents, 168 weather types
that each resolve to one of them, and which Mod* tags resolve to their lists.
No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:57:52 +00:00
69cddf0629 Docs: timecycle keyframe and modifier document layout
Counts over the 27 timecycle_keyframe_data and 49 timecycle_modifier_data
documents in common.rpf: 13 values per keyframe variable, two regions with
the same variable order, plain versus axis-driven modifiers, and by-name
submodifier references. No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:54:25 +00:00
eb739d2b0d docs: Windows paths in the story000 command, as in the rest of the page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:53:59 +00:00
69111ebe5e docs: anim_clips on story000.rpf (9,190 clip dictionaries, all animations decode)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:53:48 +00:00
fd94dba66a d3d12: register shaders' literal S#s without a heap slot (rt::d3d12::register_samplers)
Shaders that build an S# from immediates look it up through the descriptor
hash probe like any other S#, but nothing registered those keys, so they
sampled through the fallback nearest-clamp sampler. register_samplers runs
CreateSampler's path (decode, VkSampler, key in set 0) for each S# without
a heap slot; the call at pipeline creation comes with #291's shader index.
2026-11-22 13:21:06 +05:30
2b7a63d3f8 Merge pull request #1140 from wish131400 2026-11-22 02:47:54 -05:00
fcdf2b391d Merge pull request #1136 from quackottu 2026-11-22 02:47:52 -05:00
d6ff3e6609 Merge pull request #1130 from quackottu 2026-11-22 02:47:50 -05:00
b4db783bb7 Merge pull request #1127 from Jess-Doit 2026-11-22 02:47:49 -05:00
5b972b0b7c Merge pull request #1125 from quackottu 2026-11-22 02:47:48 -05:00
f7679b4909 Merge pull request #1104 from AlxcBTW 2026-11-22 02:47:41 -05:00
594f02f122 Merge pull request #1103 from quackottu 2026-11-22 02:47:41 -05:00
1bc8459361 Merge pull request #930 from BACONMANXDGOD 2026-11-22 02:47:39 -05:00
2e39817ea2 docs: measure the story-archive compressor and the mission state tables
Two new format pages, both measured over the user's own copy with no payload stored.

docs/coder.md - the 51.5 MB compressed mass in story000_script.rpf. Two interleaved
populations (105 zlib blocks, 767 unidentified). Entry framing is
u16 tag + 6 header bytes, zero pad, payload at align16(entry+8) - confirmed 10/10 on
pad length and %16 alignment, which is why earlier scans that assumed the entry start
found nothing. A 32-value tag alphabet that correlates with nothing. The payload is
deflate-shaped but proprietary (popcount correlation +0.632 against zlib-9's +0.676,
plane bias +0.0083 vs +0.0138; lzma -0.065 and bz2 -0.432 are excluded, and AES is
excluded by the ~40 sigma plane bias). Codes are variable-length and LSB-first: 7 and 8
bit lengths measured from the bit spacing of single-symbol runs. No table is stored, so
the symbol->length array is static in the executable; the Kraft constraint narrows it to
a 129-140 byte vector of 7s and 8s, most likely n7=116 + n8=24.

docs/mission_logic.md - the mission containers are state machines, not instruction
streams: 32-byte records keyed by joaat, 40,804 of them across 2,309 containers. Records
the details that cost a false start (the band field is a counter, not zero; offsets are
file-absolute for most records), the 64-byte pool element carrying world transforms, the
case-folding behaviour of joaat (340/340 folding vs 91/340 case-sensitive, so lookups must
fold), and the flow shapes. 113 identical-state-set clusters cover 82.4% of the files, so
naming one cluster names dozens of files.

docs/README.md gets both rows.
2026-11-22 13:17:34 +05:30
0767aea96f hw_oracle: review fixes (HIP DLL override, wording, design.md row, harness errors)
- LEONIDA_HIP_DLL is now passed to the launcher and loaded
- an all-rejected chunk is a RuntimeError (harness error), not skips
- -1 and 0xffffffff count as one literal; clang is no longer found by
  globbing */.venv under the cwd (env, PATH, HIP_PATH, ROCM_PATH, repo .venv)
- s_bfe past bit 31: say "analogous to LLVM's v_bfe fold", rule rests on the
  gfx1150 measurement; contract row in docs/design.md; Linux/ROCm note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:47:19 +01:00
590225ad0d anim_clips: join the 36 unresolved dictionaries and resolve .motion children
The 36 roots whose second system page is not the next listed stream have it
right after the first stream: a zlib stream inflating to 16-48 bytes, which
anim_index.py does not list (it keeps streams of 64 bytes or more), or a
16-byte raw page. group() now tries that page and joins it only when the
pages parse as a clip dictionary. All 36 join; 191,042 animations decode.

.motion clips list their children as {u64 0; u32 clip hash; u32 dictionary
hash} at +0x60, and the root's hash-only +0x70 references are dictionary
hashes. scan() joins both across the archive: 111,948 of the 114,925
children whose dictionary is in anim.rpf name a .clip of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:45:31 +00:00
73dd6d7dce Runtime: depth and stencil resolves in ResolveSubresourceRegion
MIN and MAX of either plane, and AVERAGE of the depth plane when Format is
the plane's own format, as the PC runtime accepts them (RTX 5070 and WARP).
Each resolve is a vkCmdBeginRendering scope with no draws: the MSAA plane
is the depth or stencil attachment and the destination plane its resolve
target, checked at record time against D3D12's rules and the device's
supported resolve modes. Colour resolves are unchanged.
2026-11-22 13:14:43 +05:30
04c7f10ea2 docs: hardware oracle section in shader_validation.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:43:12 +01:00
0a288c3cd0 textures: support locally calibrated BCPack DDS exports 2026-11-22 15:33:40 +08:00
523c32ed7a Translator: clamp saturates the 16-bit unsigned add/sub instead of being dropped
v_add_nc_u16 / v_sub_nc_u16 (and the v_add/sub/subrev_u16 e64 names) with
the VOP3 clamp bit wrapped at 16 bits; they saturate to [0, 0xFFFF], as the
32-bit v_add/sub_nc_u32 clamp already does. Clamp on any other 16-bit
integer op is now Unsupported rather than ignored.
2026-11-22 13:02:57 +05:30
1979b944f5 rdna2spirv: d16 image_load reads integer images through their uint/sint views
A d16 image_load skipped the T# FORMAT branch the 32-bit load uses and
always read the float sampled view, which integer images are never bound
to, so a min16uint/min16int Load returned garbage (sint texel 14774 for
129 on an RTX 5070). d16 loads now go through image_load_typed and pack the
dmask components two per VGPR: f16 from the float view, the 16-bit integer
(truncated) from the uint/sint views.
2026-11-22 12:57:13 +05:30
36d073f79d Merge remote-tracking branch 'origin/main' into pr1083-merge-main
# Conflicts:
#	runtime/src/vulkan_backend.h
#	runtime/src/vulkan_replay.h
2026-11-21 23:26:25 -08:00