Skip to content

third_party/rpf9-explorer: pin ad41e794, the RbPlus 64 KiB 4 BPP tile order (ASSET-125) - #4638

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
lines9686-rgb:asset125-rpf9-bump
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
lines9686-rgb:asset125-rpf9-bump

Conversation

@lines9686-rgb

Copy link
Copy Markdown
Contributor

Item: ASSET-125 (claimed in #2516, #2516 (comment)).

breadbbbb/rpf9-explorer#15 merged, so this moves third_party/rpf9-explorer from e293917 to its merge commit ad41e794:

  • Core/TtpfReader.cs Patterns[2] uses the RDNA2/RbPlus (3, -3) order at bits 6..7 (GFX10_SW_64K_D_RBPLUS_PATINFO), as tools/ttpf_mips.py already does, so rpf9dump's 64 KiB 4 BPP (DXGI 28/29/87/91) exports and previews are no longer scrambled.
  • docs/textures.md "Next step" drops the Patterns[2] item and names the pin.

The pin also brings breadbbbb/rpf9-explorer#13, merged right before #15 (AwcRecovery/OpusPreview: 32 kHz Opus durations in 48 kHz frames), which #3823 (ASSET-113) was waiting for. Nothing else from upstream: #17 and later are not included, so the model and texture counts in the docs are unaffected.

Pin overlap: #4050 pins d1fd040 (e293917 + breadbbbb/rpf9-explorer#22), a sibling of ad41e794. Whichever of the two lands second needs a pin that has both; upstream 73e9400 contains both, along with the other upstream PRs since e293917. #4074 also moves the pin (to an unmerged branch) and edits the same textures.md paragraph.

Tested

Windows 11, .NET SDK 8.0.428, Python 3.12: dotnet build tools/rpf9dump -c Release (0 warnings), tests/test_rpf9dump_exit_codes.py, tests/Rpf9DumpDiagnostics, tests/test_ttpf_assets.py, tests/test_docs_links.py: all pass. The tiling change itself was checked synthetically on breadbbbb/rpf9-explorer#15 (196/196 surfaces byte-identical to tools/ttpf_mips.py). No game files. AI-assisted (Claude Code).

🤖 Generated with Claude Code

…er, ASSET-125)

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 ItsNotRexed#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>

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked 15435e54 on Windows 11.

  • git submodule update --init third_party/rpf9-explorer cloned and checked out exactly ad41e794f13c4e365aed048689747cfa361422c0, the pinned commit.
  • tests/test_docs_links.py -> 6 OK, tests/test_docs_table_rows.py -> 2 OK; git diff --check clean.

The docs changes are texture-count/tile-order text only; I cannot re-verify the RbPlus tile order without the package viewer, but the pointer and docs checks are consistent. No blocking issue.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 15435e5 merged with main 7b7d73f on WSL2 Ubuntu, Python 3.12.16: pass (docs plus a submodule pin, so no code test to run).

  • tests/test_docs_*.py: all 10 files OK.
  • Claims checked against breadbbbb/rpf9-explorer: ad41e794f13c4e365aed048689747cfa361422c0 exists ("Merge PR Fix RDNA2 wave masks and flat inputs #15: correct four-byte RbPlus tiling"), PR Fix RDNA2 wave masks and flat inputs #15 is merged, and Core/TtpfReader.cs Patterns[2] is [0,0,1,2,-1,-2,3,-3,...] at that commit versus [0,0,1,2,-1,-2,-3,3,...] at the old e2939175 pin, so bits 6..7 are now (3, -3) as the doc says. The compare shows 5 commits between the pins, touching Core/AwcRecovery.cs, Core/TtpfReader.cs and Tools/OpusPreview.cpp. I did not build or run rpf9dump with the new pin.
  • Other docs still say e293917; those are measurements made at that pin, so they are not wrong, just not re-measured.

@memorypressure

Copy link
Copy Markdown

Verified on Linux: the new pin is upstream rpf9-explorer merged PR #15 (correct four-byte RbPlus tiling) — confirmed against the API directly: merged=true, merge sha matching the pin — and main's recent restore-pin commit 41f4482 was an accidental-regression restore, not a rejection of this bump. The docs rewrite matches what tools/ttpf_mips.py:90 actually implements (the (3,-3) SW_64KB_D_RBPLUS_PATINFO swap), the docs-consistency tests pass, and the merge with current main is clean. The C# tiling itself can only be judged in the submodule repo; from this side the pin, docs and Python-parity claims all check out. No CI checks reported on the branch. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants