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>
#973 clamps the explicit-gather LOD to the S# bounds and records that, at exactly 0.5 with bounds [0,1],
native OpImageGather Lod (VK_AMD_texture_gather_bias_lod) selected mip 1 on Radeon Graphics 26.10.1 while
the emulation's RoundEven selected mip 0. image_gather4_l(_o) now picks the mip as Floor(clamp(LOD) + 0.5):
ties go up like the native draw, and every non-tie LOD selects the same mip as before. The [0, levels-1]
clamp is unchanged.
Tests: 232 gather sites in the 16 corpus shaders that use image_gather4_l/_o now emit FAdd+Floor instead of
RoundEven and still assemble and pass spirv-val (16/16 translated, 16/16 valid, 946 fetches unchanged); a
200-shader corpus slice is 200/200 translated and valid before and after; the full suite passes (3498 passed,
61 skipped). The 0.5 rule is the Radeon measurement; the guest's own gfx1013 tie behaviour is still not
hardware-verified.
Found by joaat over common engine words; the member table gives offsets 0xB0
and 0x158.
AI-assisted (Claude).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gamedata_xml.py lists the OceanSimPresets root without describing it. Adds
its element tree with counts (10 regional presets with Location/Direction and
3 four-point octave curves each, four WavefrontShape curves) and the link to
the timecycle's water_ocean_beaufort_scale (26 documents, 676 values, 0-10).
What is measured and what is a hypothesis are kept apart. Structure and
counts only.
AI-assisted (Claude). Measured on my own copy (1.0.2.1); docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rpf9dump exports both raw. On a 3,000-model sample (27,435 shaders) the mask
is 0xFF00 | 1 << (bucket & 0x7F) in every shader, bit 7 of the bucket is a
separate flag, and the bucket values 0-6 follow GTA V's drawable bucket list
(opaque, alpha, decal, cutout, no splash, no water, water), checked against
model-name tokens. Counts only.
AI-assisted (Claude). Measured on my own copy (1.0.2.1); docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A PS whose only attribute is attr30 put %bary at Location 31, which Khronos
validation rejects on drivers with 128 fragment input components (found by
@Vonsek on #804). The lowest location no attribute uses is always available
and is 0 there. The corpus is unchanged: the 321 fallback shaders keep
locations 1-5, since their attributes are dense. New semantic test for the
sparse case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SSJXX67xeoorUsLJ2f9zms
The 321 pixel shaders that read the raw barycentric pair are translated to
BuiltIn BaryCoordKHR, so they can't run on a device without the extension
(NVIDIA Pascal, for one). With --bary-fallback the pair comes from an
ordinary vec3 input one location past the shader's attributes; the module
needs neither the capability nor the extension, and the index records the
location as bary_fallback_input. tools/bary_fallback_gs.py writes the
pass-through geometry shader that fills it: Position and the PS's inputs
copied unchanged, plus (1,0,0), (0,1,0), (0,0,1) at the three vertices,
whose perspective interpolation is the BaryCoordKHR value.
- LEONIDA_BARY_FALLBACK=1 for build.py, check.py and run_gpu_tests.py
(like LEONIDA_W64_EMULATE): translate with the flag, build
<name>.bary_gs.spv, draw those shaders through it.
- vk_harness: VKH_GS_HELPER=1 keeps VKH_SUBGROUP_SIZE on the fragment
stage when the GS only feeds the pixel shader under test.
- tests/semantic/test_bary_fallback.py and the ps_bary fixture.
- docs/design.md contract row and index key, docs/testing.md section.
GTX 1060 (Pascal): ps_bary 4096/4096 exact, ps_uniform_branch and
ps_scc_mask32 pass with the fallback (SKIP without it). Pixel-shader corpus:
12,101/12,101 translate and pass spirv-val with and without the flag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SSJXX67xeoorUsLJ2f9zms
Follow-up to #936 (merged as b0f891c): documents the four instance-list
structs with their schema-named members, the InstanceList array format, and
the full run of tools/instance_lists.py over levels.rpf, story000.rpf and
shared_minigame000.rpf (237,318 map resources, 26.5 million prop and 225.5
million grass instances). Counts only.
AI-assisted (Claude). Measured on my own copy (1.0.2.1); docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/anim_clips.py groups the stream walk of anim_index.py into RAGE
resources via the page map at the +0x08 pointer, finds the clip
dictionaries (system-only, 1 or 2 pages) and decodes dictionary -> clips
-> packs -> animations -> sequences -> channels. Channel types 0-5, 7, 8
and the GTA VI type 10 (second-order delta coding) are decoded. Output is
counts and per-dictionary rows only; --decode prints one dictionary's
values to stdout for local use.
docs/animation.md gets a "Keyframe decoding" section with the layouts and
the measured full-archive counts, and the statements it makes stale are
updated: 0x98e1750c is joaat32("bonerotation"), the 2/3 packed streams
are second system pages of 0DRP resources, and keyframes are decoded for
the clip dictionaries. tests/test_anim_clips.py builds synthetic
resources, including a type-10 encoder for a round trip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An integer image-view minimum is permitted by Vulkan and was observed on Intel. Check an effective integer minimum separately and report both view groups before returning a mismatch.
nvidia-smi reports a 16,384 MiB BAR1 aperture, so Resizable BAR was on.
Say so, and that the ReBAR rows are absent where the benchmark skips that
placement (review on #1033).
AI-assisted
scan_archive() stepped three bytes past a KB2 signature and went on looking
for zlib headers inside the video body, so a stream embedded in a video was
reported with its names and the video's bytes were counted as zero padding or
unread. It now applies rpf9_carve.py's header test (length at +4, width and
height at +0x14) and skips a plausible video whole, counted in the new
bink2_files and bink2_bytes summary keys.
The inflate loop was bounded by the file size, not by the scan window, so a
stream crossing the end of a --limit window was still reported with a stored
size larger than the span. It is bounded by the window now, as in
rpf9_carve.py.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The GPU tools picked a device with the shared ranker but never applied the
name filter the D3D12 tests have used since #861. Filter candidates through
vulkan_device_wanted in vk_device_pick.h, report a filter that matches nothing
instead of dereferencing a null device, and cover the filter cases in the
picker test. docs/testing.md no longer says the tools ignore it.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
vk_descriptor_bench at dcd8ecf on Windows 11 (25H2, 26200.9974), NVIDIA
621.01: 1k/10k/100k live entries in device-local, host-visible and ReBAR
memory, median of 12 process medians with the same round order as
descriptor_lookup_apple.md. Adds a row to docs/README.md.
AI-assisted