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>
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>
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>
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.
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>
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>
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>
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.
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>
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.
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>
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>
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>
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>
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
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>
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.
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>
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>
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>