Shaders: bound RPF signature sampling by record count #1435
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1445"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by anakatt on 2026-11-24T16:07:22Z.
I changed the RPF signature sample to count records rather than distinct signatures. Previously, an archive dominated by one signature could be decompressed in full even with
--top 0.What is in it
Tested
Windows 11 Pro ARM64 10.0.26100.1742, UTM VM with 4 GiB RAM, x64 Rust 1.100.0 (
x86_64-pc-windows-msvc) under Windows emulation. No GPU is used by these checks.I tested a source archive of main
930e8b49c1c2ec683d22c724a398b39111cd0e56with the changed source/test files copied in, then committed those files as776055a9a831df1bd3d4aee525255814369c52e6. These were not clean-checkout smoke runs.Before the fix:
The CLI reported
FSSM 127, LATE 1instead of bounding its signature sample.After the fix:
The regression checks the bounded summary, listing a record beyond the sample, and the exact bytes extracted from that record.
Regression run
Not run. I do not have generated
xcl-smokeblocks from clean main and PR-head commits using the same title and duration. This remains a draft until the required regression runs are available.Not tested
Full workspace suite, retail archives, performance timings, and real-title smoke runs. I have not measured loading-time or gameplay improvements.
AI use
omp, openai-codex/gpt-6-astra: investigated the sampling condition, implemented the fix and regression, ran the Windows VM checks, and prepared this PR.
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T16:13:56Z.
Native Windows test report and archive benchmark for
776055aTested
776055a9a831df1bd3d4aee525255814369c52e6,cargo test --locked -p xcl --test rpf_e2e -- --test-threads=4passed all 3 tests. The same new test on base930e8b49c1c2ec683d22c724a398b39111cd0e56, with only its test code copied over and a separate Cargo target directory, failed as expected withFSSM 127, LATE 1.cargo build --workspace --lockedandcargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputpassed on the PR head. Cargo reported 752 passed, 0 failed, 41 ignored. Its pass count includes two GPU skips for lack of native wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.cargo build --locked --release -p xcl --bin xcland ranxcl rpf <synthetic archive> --full --top 0in six alternating pairs after one warm-up per version. The archive contained 8,192 records of 64 KiB uncompressed, all but the last with the same signature.FSSM 8191, LATE 1FSSM 64The PR also listed the final record with
--findand extracted it with--extract. All 65,536 extracted bytes matched the fixture.Not tested
mainatb7aa9f3has a conflict inREADME.md.AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:54:13Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:31:33Z.
Regression run of
776055a9on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 99 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-25 07:04:28 +00:00
upstream-sync referenced this pull request2026-11-25 12:04:57 +00:00
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:58Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:46:38Z.
Triage (#1607) – head
776055aNo open or merged PR makes the same change. In
rpf.rs::run,mainstill bounds the sample withby_magic.len() > 64(distinct signatures), so an archive with few signatures has every record inflated. Bounding it by record index matches the 'from a sample' output. The newrpf_e2etest fails without the fix (it would printLATE).Only the
PR descriptioncheck fails. TheShaders:prefix does not fit anxcl rpfchange. The PR conflicts withmain.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.