Commit Graph

5744 Commits

Author SHA1 Message Date
d56c3bb03f Merge pull request #1220 from liang-kai-shui 2026-11-22 03:37:54 -05:00
b47a6447c8 Merge pull request #1219 from Tayar 2026-11-22 03:37:54 -05:00
807ee182d1 Merge pull request #1216 from Lucy
# Conflicts:
#	docs/world.md
2026-11-22 03:37:53 -05:00
72d01440eb Merge pull request #1215 from Lucy 2026-11-22 03:37:52 -05:00
e7d204c6dc Merge pull request #1214 from quackottu 2026-11-22 03:37:52 -05:00
f8d5e3624e Merge pull request #1213 from Lucy 2026-11-22 03:37:52 -05:00
8ca846b297 Merge pull request #1210 from Lucy 2026-11-22 03:37:51 -05:00
c218a946f1 Merge pull request #1209 from marquezini 2026-11-22 03:37:50 -05:00
f7f9b765d3 Merge pull request #1208 from andretuta
# Conflicts:
#	docs/gamedata.md
2026-11-22 03:37:50 -05:00
173eb7f0f9 Merge pull request #1207 from pasindunaduninduwara 2026-11-22 03:37:49 -05:00
6a2273c916 Merge pull request #1206 from Lucy 2026-11-22 03:37:49 -05:00
6d48531768 Merge pull request #1205 from Lucy 2026-11-22 03:37:48 -05:00
6aa54117e0 Merge pull request #1202 from AlxcBTW 2026-11-22 03:37:48 -05:00
041dc40ea7 Merge pull request #1180 from Lucy 2026-11-22 03:37:48 -05:00
fd17f11a5c Translator: typed image_load fetches UINT/SINT formats from the sampled arrays (SHADER-151)
UINT/SINT image_load read the uint/sint storage arrays with OpImageRead, so
every typed load declared StorageImageReadWithoutFormat (missing on Intel
Xe-LP, #619), and read-only integer textures, which the runtime binds only in
the sampled arrays, read the fallback or past the 256-entry storage arrays.
They now fetch through uint/sint aliases of the dimension's sampled array;
a lookup miss takes the float path.

vk_store_test load fills the images before the dispatch, runs without
shaderStorageImageReadWithoutFormat and fails a module that declares it.
vk_image_fuzz no longer requires the without-format features, and binds
its UINT/SINT cases (#1087) as sampled images, as the runtime binds a
read-only texture, instead of storage-only images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:37:47 +00:00
2defd8517d Merge pull request #1053 from Jess-Doit 2026-11-22 03:37:46 -05:00
391bddb8a9 Merge pull request #1026 from Vonsek 2026-11-22 03:37:46 -05:00
b43e88ab93 SHADER-35: fma_mix tiny product and overflow; exp/log ignore MODE
fma_mix_odd: a tiny product takes the residual sign from its operands (independent of denormal flushing), an f32 overflow with finite operands gives +-FLT_MAX toward zero. v_exp_f16 and v_log_f16 narrow to nearest even like the measured transcendentals (cos too; all three unmeasured). Docs and test comments corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:37:11 +01:00
4f7ce665f7 hw_oracle: run on RDNA4 (gfx12xx); an unknown architecture is unavailable, not a traceback
On a gfx1201 card asm.family() raised ValueError out of Oracle(), so runner.py and salu_diff --oracle hw
crashed and tests/test_hw_oracle.py errored in setUpClass on any RDNA4 machine with the tools installed.

- family() accepts gfx12xx. The kernels use GFX11's spellings there (s_load_b64, global_store_b128).
- GFX12_REMOVED adds the twelve SOPK compares, which AMD clang (rocm-sdk-core 10.0.0) assembles for gfx1150
  and rejects for gfx1201. They are now named skips, not generic assembler rejections.
- Oracle() turns an unsupported architecture into Unavailable (exit 77), as the module docstring promises.

Measured on a Radeon RX 9070 (gfx1201, driver 26.11.2): salu_diff --oracle hw, 10,000 programs, 0 mismatches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:37:04 +00:00
eb21bee162 Runtime: a released fence sets the events still waiting on it, and SetEventOnMultipleFenceCompletion with no fences is E_INVALIDARG 2026-11-22 14:06:06 +05:30
273886db50 make_game.py: build the runtime stage on Linux with clang-cl and xwin
Off Windows the runtime stage refused to run without --runtime-build. It now
cross-builds gta6rt.exe and gta6rt_tls_host.dll into runtime/build/windows
with runtime/cmake/clang-cl-xwin.cmake (XWIN_DIR, or ~/.local/share/xwin-sdk
as in docs/testing.md), then packages them with the Wine launcher as before.

Preflight lists what the cross-build lacks (cmake, the LLVM tools, clang-cl
older than 19, an xwin splat without VC/Tools/MSVC or Windows Kits um/x64)
and then configures it, so any toolchain error stops the run before the
shader stage. Without the tools the default stages still leave runtime out;
asking for it lists what is missing. The pipelines stage's vk_pipeline_check
is built natively into runtime/build/linux at the end of preflight, for the
same reason.
2026-11-22 01:36:05 -07:00
c0df5605f2 Docs: bound predicate capture integration requirements 2026-11-22 04:34:35 -04:00
29345889be Runtime: capture full 64-bit predication values on the GPU 2026-11-22 04:34:35 -04:00
81759709d7 Docs: TextureGridInfo uses the same grid fields and centre origin
One TextureGridInfo document: 32,768 x 32,768 units in 512 tiles (64 x 64),
same stream radius and zInflation as the GridAtlasInfo grids; 100.00% of the
placements fall inside with origin as the centre.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:33:27 +00:00
650b3db705 docs/testing.md: Volta lacks fragment barycentrics too (TEST-166)
The barycentric section said only Pascal and older lack
VK_KHR_fragment_shader_barycentric. A Tesla V100 (Volta) doesn't have it
either, and LEONIDA_BARY_FALLBACK=1 makes the three barycentric tests pass
there (#166).

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:31:57 +01:00
c0ff55f91e docs(pt-BR): clarify PowerShell setup and contribution steps 2026-11-22 05:31:51 -03:00
c62525e20c Docs: RegionTintMap covers exactly the PAMH heightmap rectangle
The one RegionTintMap document in common.rpf streams a 36 x 41 grid of
512-unit tiles that covers its world box with no partial tile, and that box
equals the PAMH max/min heightmap bounds in x and y. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:31:35 +00:00
7f21e337b7 docs: add Simplified Chinese (zh-CN) community quickstart
Adds docs/i18n/zh-CN/quickstart.md with the stable onboarding text only
(project overview, own-copy / no-game-data rules, prerequisites, build
commands and stage order, common troubleshooting), synced to main
0d61c357. The English docs remain authoritative.

Also adds the zh-CN row to docs/i18n/README.md and zh-CN to the
"Other languages" line in docs/README.md.

Links checked across the three files; no build or CI changes, no game data.
2026-11-22 16:31:18 +08:00
d466f784fd Docs: train configs and groups (CTrainConfigs), and the stale trainConfigIndex
Counts over the one CTrainConfigs document in common.rpf: 46 configs, 314
carriages, 5 groups with 36 references. 11 of the 36 trainConfigIndex values
are one less than the named config's position, cleanly split at positions
23/26, so groups must be resolved by name. Carriage models cross-checked
against the .yft catalog. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:28:39 +00:00
11e10f9883 chore: integrate upstream shader control-flow changes
Preserve the barrier-round control flow and the split D16 regression while sharing only fixed-format normalization on the updated translator.
2026-11-22 09:28:36 +01:00
741bc05cbc Translator: refuse unmodelled v_interp I/J pairs and p10/p20 mov (SHADER-177)
v_interp_p1/p2 (f32 and f16) whose VGPR source holds neither the barycentric
pair (v0 = I, v1 = J) nor a plain v_mov_b32 copy of it, and v_interp_mov_f32
with p10/p20, are Unsupported naming the operand, instead of silently
translating as if the register were the pair (#1006 finding 7076073465).
The copy rule keeps the one corpus shader that reads J through
v_mov_b32 v14, v1 translating (bit-identical .spv): zero corpus cost
(117,001 v0 / 116,997 v1 / 4 copied-J f32 sources; 58,950 / 58,950 f16;
6,926 / 6,926 p0 mov). tests/semantic/test_interp_guards.py: refusals,
the copy and copy-chain cases executed, second-write and dpp-copy
refusals, and a mutation check that the guard consults the analysis.
2026-11-22 00:27:55 -08:00
98f485f492 Translator: read the high f16 half in v_interp_p1ll_f16 / v_interp_p2_f16 (high) 2026-11-22 13:57:08 +05:30
42b30b189f Docs: vehicle navmesh settings (CVehiclePoints)
Counts over the 32 CVehiclePoints documents in common.rpf: one per vehicle,
Recast-style cell/agent overrides, empty boarding points and props, and mod
part names. Cross-checks: 25 of 31 model names are .yft models, all of them
also distant-light models. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:26:31 +00:00
c603b8f8ff docs/pipeline_check: the wave64-emulated corpus (translation, chunked cache build, ScreenProbes)
Records the --wave64-emulate translation of all 26,503 shaders (spirv-val clean at 43d4703), why the cache build
runs one checker process per chunk (the driver compiler ran out of memory at 21,000 entries and grew past 100 GB
of commit in one process), the ScreenProbes typed-buffer decode bloat dcd8ecf fixed (#881), and the spirv4 result
(0-24,200, 0 failures). The spirv5 cache is still building.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:25:58 -05:00
1f3ef1bf43 Docs: vehicle ratings and performance estimates (CVehicleBaseRatingsAndEstimatesMap)
Counts and ranges over the one CVehicleBaseRatingsAndEstimatesMap document in
common.rpf: 252 entries keyed by vehicle model name (all are .yft base names),
road/offroad ratings with a floor of 10 that are not 0..1 fractions,
SI-looking estimates, and 0/inf sentinels a parser must accept. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:24:27 +00:00
3c76bcd395 Docs: say which placement population the GridAtlasInfo origin test used
2,036,542 placements from a local index of 23,361 map resources at every LOD
level (2,011,519 in levels.rpf), not the levels census count. The levels.rpf
subset alone gives the same shares. Asked for in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:22:48 +00:00
caad84c32b Translator: --mesh-compute runs mesh shaders without VK_EXT_mesh_shader
9,282 of the 26,503 shaders are mesh shaders, and a device without
VK_EXT_mesh_shader (NVIDIA Pascal, for one) can't run any of them. With
--mesh-compute each becomes a GLCompute module with the same workgroup size
and code; only the epilogue changes. After the same barrier, lane 0 writes
the vertex and primitive counts, lane i its vertex and its primitive, into
this workgroup's slot of an output buffer whose address is in push-constant
dwords 36-37 (152 bytes). The slot layout is mesh_compute_layout() and the
index records it as mesh_compute.

- tools/mesh_compute_vs.py: the vertex shader that draws the slots with a
  non-indexed draw of groups * max_primitives * 3 vertices; unused and
  culled primitives are clipped away, params keep their locations.
- vk_harness: VKH_MESH_COMPUTE (+ VKH_MESH_SLOT, VKH_MESH_PRIMS) dispatches
  the module, adds a compute->vertex barrier and draws.
- run_gpu_tests.py / check.py: LEONIDA_MESH_COMPUTE=1 (check.mesh_env).
- tests/test_mesh_compute.py; docs/design.md row "Mesh shaders as compute",
  docs/testing.md section.

GTX 1060 (Pascal) with LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1: all five
ms_* tests pass (SKIP before), zero validation messages. Mesh corpus: 9,282 of
9,282 translate and pass spirv-val with --mesh-compute --wave64-emulate, and
all 9,282 generated vertex shaders validate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SSJXX67xeoorUsLJ2f9zms
2026-11-22 00:21:36 -08:00
29257a0cf5 Docs: deformable snow and mud tracks (CSnowTrackData)
Counts over the one CSnowTrackData document in common.rpf: 16 deep-surface
parameter sets with physics-material lists, 9 track types, mud/puddle,
global and trail-map blocks. Cross-checks: 13 of 24 material names occur in
the surviving part of MaterialDataList; the 9 texture names are not in the
local catalog. No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:21:02 +00:00
f448bda596 docs: GetClockCalibration is implemented, drop it from the query gaps
Section 4.6 still listed GetClockCalibration under "Not implemented yet",
while section 4.4 describes it as implemented on both paths (calibrated
timestamps, or the submitted timestamp query) and d3d12_fence_timing_test
covers it.
2026-11-22 05:20:43 -03:00
5ed2a83c52 Docs: GridAtlasInfo tile-name check against texture-dictionary item names and hashes
The first version compared joaat hashes with the catalog's texture ids, which
are not name hashes. Re-run against dictionary item names (extension stripped)
and their joaat hashes: still no match, so the conclusion is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:20:03 +00:00
4f165b6f64 Docs: vehicle and tyre XML layouts in common.rpf 2026-11-22 05:19:15 -03:00
8e4b3e82ed Translator: preserve both dwords and 64-bit SCC for non-mask 64-bit scalar bitwise ops 2026-11-22 13:48:10 +05:30
78193fb931 gamedata_graph: follow parentPath inheritance inside its own document
A parentPath of the form ../Tag[@attr='value'] is resolved against the
siblings of the element that carries it (exact match) and reported under
parent_path_inheritance: resolved, ambiguous and unresolved sites, chain
depths and cycles. Existing counts and edges are unchanged. On common.rpf
all 40 sites resolve, depth 1-4, no cycles. Synthetic tests cover chains,
both quote styles, case, a non-matching form, a duplicate key, a cycle and
a locator whose parent list lacks the key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:17:53 +00:00
f239c61c8a Docs: the 40 parentPath locators resolve inside their own document
All 40 parentPath sites in common.rpf are XPath steps of the form
../Item[@key='K'] on CDoorInteractionDataList data sets, and every K is a
sibling item's key: single inheritance with depth up to 4 and no cycles. Only
the 3 parentFile sites need a file name. Corrects the gamedata.md sentence
that said the 40 cannot be resolved without the table of contents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:15:45 +00:00
9dd595001f Merge pull request #1201 from andretuta
# Conflicts:
#	docs/README.md
2026-11-22 03:14:30 -05:00
b4be7e7904 Merge pull request #1200 from Lucy 2026-11-22 03:14:29 -05:00
209f5e1f2a Merge pull request #1199 from quackottu 2026-11-22 03:14:28 -05:00
de4d3321a3 Merge pull request #1198 from Lucy 2026-11-22 03:14:28 -05:00
31a8f167f9 Merge pull request #1194 from Lucy 2026-11-22 03:14:27 -05:00
f13ee787c0 Merge pull request #1191 from Lucy 2026-11-22 03:14:26 -05:00