Review nits on #4035: the '?FPR' check still gives the data start for any RPF header, but +12 is a
measured trailer size only on RPF9, where it is a multiple of 16 in all 22 archives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The pool goes through pool_workers.process_workers (61 at most on Windows) and the window count
follows it, so --jobs above the cap no longer fails at pool creation or re-reads extra overlaps.
- A key whose placements carry no position is counted (keys_without_a_placement_position) instead
of ending the run in min() over nothing; inner-item Pos values that are not three finite numbers
(empty, false, too short, past float range) are dropped and counted (malformed_positions).
- The interior-box distance uses the same 1e-6 m face tolerance as the room test (EPS), so a point
on a rotated interior face counts as inside in both measures.
- A names file that is not an InteriorNames table, --start outside the data area (checked before
any worker starts), a negative --start and --limit below 1 each give one line and exit 2.
Full levels.rpf v1.0.2.1 (--jobs 15): summary identical before and after, both new counters 0,
docs/world.md counts unchanged. tests/test_world_interior_names.py: 27 OK (was 20); the 8 new
tests all fail on d90c1ac.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The doc left matching them to the data/ttdb pools as the next check. Against all 1,026,833 chunks of the
57 pools (whole-content SHA-1 as stored and inflated, plus the first 64 bytes): 1 stream (4 KiB) is
identical to a pool chunk, 3 large ones share their first 212-582 KB with a 4 MiB chunk and then diverge,
3 share only a short common leading pattern, and 114 match nothing. Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On an RX 9070 XT (gfx1201) `lds_fuzz.py --oracle hw` stopped with "the assembler rejected
every program in a chunk: ... s_barrier", and programs with a ds_cmpst were skipped because
ds_cmpstore's operand order was only measured on gfx1150.
- asm.sync_lines: GFX12 has no s_barrier, so a barrier is `s_barrier_signal -1` then
`s_barrier_wait -1`, and the LDS wait is `s_wait_dscnt 0` instead of the legacy
`s_waitcnt lgkmcnt(0)` encoding. lds_fuzz's hardware kernels go through it.
- asm.ds_line swaps ds_cmpstore[_rtn]_b32's data operands on GFX12 as on GFX11. Measured on
gfx1201: with 7 in the dword, data v1 = 9, v2 = 7 stores 9 and v1 = 7, v2 = 9 keeps 7, for
the rtn and the non-returning form (gfx1036's ds_cmpst does the opposite).
- Measured on the way: a wave64 ds_bpermute_b32 reaches all 64 lanes on GFX12, where RDNA2
and gfx1150 keep each 32-lane half separate (every lane asking for lane (l + 32) mod 64:
gfx1201 returns lane l ^ 32, gfx1036 lane l). The model describes RDNA2, so on gfx12xx a
wave64 program with a ds_bpermute is skipped with that reason; under
--perturb bpermute_wave64_cross all of them match.
RX 9070 XT, AMD 26.11.2, --programs 1000, seeds 1 and 2: wave32 1000/1000; wave64 537 and 506
match, 0 mismatch, the rest skipped for the bpermute reason. --perturb bpermute_wave64_cross:
wave64 1000/1000. --perturb cmpst_swap: 275 of 1000 wave32 programs mismatch. gfx1036
unchanged: 1000/1000 in both wave sizes and both seeds.
AI-assisted (Claude Code).
The first 10 streams are the whole first nested pack (9FPR tag); the other
121 BLAS of the interior lie in 31 other nested packs. Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured over all 269,106 instance descriptors of core_bvh4.rpf: the key is
two uniform populations (below 2^55 and full 64-bit) that follow the BLAS,
is not a hash of any drawable name (name set validated against 228,610 of
228,681 archetype keys), not an entity id or archetype key, and not shared
with the other descriptor streams. What it hashes stays Open.
Counts only; no keys, names or game bytes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
x16 takes the per-dword bound, NUM_RECORDS >= 2^31 is unsigned, NUM_RECORDS * stride does not wrap at 2^32 and
V# dword1[31:30] changes nothing: 22 cases on native RDNA2 through tools/hw_oracle, wave32 = wave64.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first 10 streams of core_bvh4.rpf cover 10 of the interior's 242 entities.
Matching every BVH stream of core_bvh4.rpf and shared_minigame000_bvh4.rpf
against the interior's drawables, at all four LODs, finds a BLAS for 124 of its
143 archetypes (220 entities), all in core_bvh4.rpf: 23 built from the first
LOD and 101 from the second, which rpf9dump models does not export. One BLAS
per drawable, not per entity; the 115 archetypes past the first 10 streams lie
in a band of streams 231,012 to 261,585. 16 exported archetypes have none, 11
of them as the shader rule predicts, and one shader hash is both kept and left
out. Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in docs/design.md only: v2's rows (main's with the Typed buffer loads sentence) kept, with
this branch's "Others (code 0 and 78 up) give 0".
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CreateCommittedResource refused D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS on
every resource. On an RTX 4070 Laptop (621.24) and WARP the host accepts it
on buffers and textures with ALLOW_UNORDERED_ACCESS, refuses it without,
and keeps it in GetHeapProperties. Match that.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The doc already promised the no-SDK path — drop the pair --emit-only
produced on another machine into the work directory — but main() called
assemble() unconditionally, so a machine without spirv-as exited before
the prebuilt files could be used. shaders_into() now reuses an existing
pair only when spirv-as is absent; fresh assembly always wins when it is
on PATH, so a stale pair cannot shadow the sources. shdann's report on
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Hanioe2 asked for one update covering the non-AMD hosts. The paragraph now says
that llvmpipe and the Apple M2 follow the spec's nearest rule and read level 0 at
LOD_BIAS +0.5 (llvmpipe switches to level 1 at 129/256, for LOD_BIAS and MIN_LOD
alike), while the RTX 5070 reads level 1 and switches at exactly 128/256, so the
NVIDIA sentence is no longer "not measured". The AMD text and the row counts are
unchanged.
AI-assisted.
Remove dead and invalid instructions identified in docs/isa_coverage.md:
- s_and_b32_mask, s_or_b32_mask (invalid instructions not in RDNA2)
along with unused op.endswith('_mask') check.
- v_subrev_u16, v_and_b16, v_or_b16, v_xor_b16 (dead Vega/GFX9 spellings).
Update docs/isa_coverage.md, docs/design.md, tests/test_isa_coverage.py,
and tests/semantic/test_valu_int16.py accordingly.
tools/valu_int_diff.py generated v_subrev_u16 from its OPS table and
modelled it, so with the translator's support gone the fuzzer stopped with
"harness error: v_subrev_u16" (and --self-test with it); the opcode is
dropped from the table and the model there too.
Conflicts: tools/rdna2spirv.py (main's x_round state next to this branch's fmt_enc_fn, and the
function types of both: both kept), docs/design.md (main's rows, our Typed buffer loads sentence
re-applied), tests/test_shader_checks.py (TOTAL: main's 13 plus cs_fmt_all = 14, and both mock
branches kept; 75 tests pass).
Main's typed-buffer work that overlaps (aa2988cc: byte size of the format from one table, SHADER-429:
DST_SEL=1 on out-of-bounds typed loads) merged without conflict and takes this branch's formats from
Gen.FORMATS. Ten tests in test_mutations, test_cmp_class_f64, test_loop_ballot_barrier and
test_vcmp16_opsel fail on origin/main itself, with and without this branch.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Prefix setup, the emulator flag and WINEDLLOVERRIDES in one place, with
the measured result on Proton 11.0: 127 passed, 20 skipped, seven
host-comparison failures against vkd3d-proton (two of them a crash in
d3d12core.dll when the host device is created).
CreateCommittedResource refused every TEXTURE1D with ALLOW_RENDER_TARGET or
ALLOW_DEPTH_STENCIL ("1D texture cannot be an attachment"), although the PC
runtime creates them: on an RX 6750 XT the AMD adapter and WARP both accept
64 color formats as 1D render targets and 20 as 1D depth-stencils. The 1D
RTV/DSV code already on main was unreachable.
Accepting them also needs a valid attachment view: VulkanBackend::view made
every attachment view VK_IMAGE_VIEW_TYPE_2D_ARRAY, which a VK_IMAGE_TYPE_1D
image can't take (VUID-VkImageViewCreateInfo-subResourceRange-01021). That
already hit rectangle clears of 1D UAV textures on main, whose UAV images
get color-attachment usage. ResourceBinding now records a 1D image, and its
attachment views are 1D arrays. A driver without the 1D attachment image
still refuses through check_image_support.
d3d12_texture1d_target_test compares creation with the host adapter and
WARP, and reads back clears through 1D and 1D-array RTVs and DSVs (whole and
rectangles, mips, slice ranges) and a 1D UAV rectangle clear against WARP.
d3d12_typeless_families_test runs its draws on a 1D target too.
d3d12_vulkan_device_test expected the old refusal.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015z45kpgzff6KvVjAnLtc4h
docs/related_projects.md said americas-recomp is GPL-2.0-only and no code may be copied. Its REUSE.toml on
xbox-series (f1c25d72, 2026-11-22) now lists 88 files under MIT, each with every author's agreement
(realdody/americas-recomp#179, still open): 35 at the top of tools/xbox/, 30 in tools/xbox/platform/, one each
under msvc/ and platform/xgr/, the 20 tools/tests/test_xbox_*.py tests and docs/xbox/BVH_CONTAINER.md.
Everything else stays GPL-2.0-only. The section states those facts and keeps the rule explicit: no code is
copied, MIT-listed or not, until the maintainer decides on reuse. Facts read from REUSE.toml, LICENSE, README
and issue #179 on xbox-series, no code.
AI-assisted (Claude Code, Claude Fable 5.1).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GDgoLQVYG7p8mvxkwBroVz
@Vonsek's cs_xl64_9100373886 mismatch (seed 91001) fails only on an RTX 5080
with Windows 32.0.16.1692 (616.92). The same SPIR-V matches the model on an
RTX 3060 616.64 (mine), RTX 5060 Ti 621.14 (@etcetera-yt), RTX 5070 Ti 621.24
(@Kam471) and an RTX 5080 with Linux 580.65.06 (@tedin7). The row names the
fix (621.14 or newer) and @tedin7's related Linux wave32 permlane cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/psocache_extract.py walks an RPF9 archive's stream table in order,
inflates each stream to learn its extent and stops at the first stream whose
output starts with the cache magic. It joins the following contiguous streams
until the header's declared total is reached, writes the file inside the
temporary directory and validates it with psocache_inspect. A --budget and
--max-streams bound the search; a folder is scanned in sorted order and the
report carries the archive index and the archive-internal stream offset only.
psocache_inspect.py gains --meta (with --entry N and --limit N): it reports
the chunk-record order, the per-kind 0x41 fields, the 0x42 slot bytes and the
0x41-kind to 0x42-middle-byte correlation over the records whose counts match.
The 0x43 value is never printed.
docs/pso_cache.md records the decoded shape with a confidence per claim and
the remaining unknowns; docs/README.md names the new tool.
tests/test_psocache_extract.py builds synthetic RPF9 archives and covers the
contiguous split, folder scan, budget, stream limit, truncated chain and an
output path outside the temporary directory. The inspect test now covers the
meta decode, an entry listing and the CLI flags.
An SCC reader after s_addk_i32 or s_cmpk_* reads that instruction's flag, not an earlier lane-mask
SOP's, so it is not a subgroup vote (found by @shdann on #3982). The corpus counts are unchanged
(1,127 wave32 PS; vote 1,127 shaders, 84,150 instructions). Adds @AC-Storm-YT's AMD 26.11.2 stage
lists and live fragment widths (gfx1036 64-wide like the RX 6800, RX 9070 XT exact) to the row.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The "Which stages can be required" row in d3d12_vulkan.md said the AMD Windows driver reports
FRAGMENT | COMPUTE | TASK | MESH, from a Radeon 880M (RDNA3.5). On an RX 6800 (RDNA2, gfx1030) with the
same 26.11.2 release (Windows driver 32.0.21045.29003) it reports COMPUTE only, sizes 32..64, default 64,
measured 2026-11-22. The row is now per GPU, with the 880M kept, the RX 6800 measurement, and
@AC-Storm-YT's 9800X3D iGPU (RDNA2: COMPUTE only) and RX 9070 XT (RDNA4: all four) from #313.
Measured on the RX 6800: no size can be requested for pixel or mesh shaders, and at the default a probe
pixel shader counts 64 live invocations per subgroup (SPIR-V 1.5 and 1.6); ms_w64x_ballot passes natively.
In ps_bitmask_perm lanes 32-63 (2,048 of 4,096 pixels) read v_mbcnt_lo = 32; its check judges lanes 0-31
only. d3d12_subgroup_test, testing.md (tier C pixel fixtures skip here too) and the known gaps say the same.
tools/wave32_pixel_scan.py counts the wave32 pixel shaders with lane-crossing or width-dependent
instructions, by family (counts only; test: tests/test_wave32_pixel_scan.py). Control: 12,101 PS, 1,127
wave32, as in design.md. 1,010 have v_readlane/v_writelane/v_readfirstlane, 146 v_mbcnt, 105 s_bcnt1/s_ff1
of a lane mask, and all 1,127 an EXEC/VCC branch or mask SCC vote.
Co-Authored-By: Claude Opus <noreply@anthropic.com>
@jeremygold02's formula, recomputed here on all 932 records (910 + 22);
the value never equals the serialized record length, so the walk still
finds the next record. Runtime use unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Row 376 was CPU-checked only: mask writes, the cleared inactive-lane bits,
V_CMPX's AND into EXEC and the constant predicates ignoring their sources are
all now measured natively on a Radeon RX 7900 XTX with EXEC and VCC preset, so
an untouched mask or an uncleared bit is visible. The run also shows that in
wave32 the instruction writes only the low 32-bit mask register, while the
wave64 pair takes both halves.
PresentX presents with sync interval 0 until SetFrameIntervalX and
ScheduleFrameEventX are both done, but the pacer queued each of those
presents for its own vblank as soon as the interval was set. Blank
presents of a loading screen made the first WaitFrameEventX wait one
period for each of them (1000 presents: 1000 periods).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
breadbbbb/rpf9-explorer#15 merged: Core/TtpfReader.cs Patterns[2] now uses the
RDNA2/RbPlus (3, -3) order at bits 6..7 (GFX10_SW_64K_D_RBPLUS_PATINFO), as
tools/ttpf_mips.py already does. The pin also brings #13, merged just before it
(32 kHz Opus durations in 48 kHz frames). docs/textures.md "Next step" drops the
Patterns[2] item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>