DirectStorage: unpack BCPack BC1, BC3, BC4, BC5, BC6H and BC7 streams #905
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!905
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/905/head"
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?
@brandostrong on GitHub · 2026-11-24 08:00 UTC · original
brandostrong:bcpack-full→main· +3263 −51 · 12 files · 1 commits · closed without mergingDirectStorage: unpack BCPack BC1, BC3, BC4, BC5, BC6H and BC7 streams
BCPack is the console's lossless stage between zlib and swizzle: 12 or 16 rANS lanes share one byte stream, each block is two references (to the last 256 blocks or a per-format dictionary) plus endpoint and index residuals, and the result is BCn blocks. XCL refused every BCPack request, so titles that stream textures through it never got those textures. This adds the entropy stage and the block rebuilds for every mode the format defines except BC2. It replaces the earlier BC1-only change, which is superseded here.
A stream carries no tables. The model frequencies, the 256 blocks a stream's history starts from, and BC1's 256 quadrant selectors are constants of the format, and the lane schedule is defined against them. The earlier BC1 attempt fitted those constants from sample chunks. It decoded most blocks and was wrong on a few - 0.017% of BC1 bytes against the reference, 5.7% for BC5, 35-75% for BC7, whose blocks almost all reference the unknown history. A wrong constant does not fail a request; it rebuilds plausible but wrong colours into whole 4x4 blocks, and the same stage feeds every mode. The fix is the format's exact tables and the decoder they belong to, not estimates: VIctory's
bcpack-tables.binand itsbcpack.rs, with XCL's hand-set lane widths replaced by the ones the model table is defined against. BC1 now decodes bit-for-bit with the reference on the chunks below. The BC7 dictionary tables follow VIctory PR #658: after the two index widths each entry repeats them and carries 16 + 15 indices, not 32. A unit test holds the shipped table to it (a 0-bit set is empty, pixel 0 is an anchor), and the parity reference was decoded with that fix applied.What is in it
crates/xcl/src/hle/bcpack/victory.rs: decoder ported from VIctory'sbcpack.rscrates/xcl/src/hle/bcpack/tables.rs: format constant tables, generated from VIctory'sbcpack-tables.binbyscripts/gen_bcpack_victory_tables.pycrates/xcl/src/hle/dstorage.rs: BCPack runs between zlib and swizzle; stats inreport.json; failures returnE_DECOMPRESSIONcrates/xcl/tests/bcpack_parity.rs: compares XCL against a reference decoder over retail chunks fromXCL_SAMPLE_BCPACK, passes without itTHIRD_PARTY.md: VIctoryThe change is one unit: the codec and the one call site that uses it. The decoder is 995 lines, the tables are generated and not counted, and the DirectStorage wiring is 92 lines added (248 with its tests); split apart, the first half would be code nothing calls. No game data is in the tree - retail streams for the queue and parity tests come from
XCL_SAMPLE_BCPACK.Tested
cd03bd9:cargo test --workspace -- --test-threads=4(722 passed, 0 failed, 41 ignored; skipped: 2 GPU wave32 tests, no wave64 hardware)cargo test -p xcl --lib hle::dstorage::tests::(14 passed, 0 failed)Regression run
main:
PR:
Frame counts from two runs of this title measure which screen the 90 s window lands on, not pacing: the intro UI idles for arbitrary lengths (one run sat on it for 80 s at 0 presents). Inside one scene, this head holds 27-32 presents / 2 s on the last samples, with 412 BCPack requests unpacked and 0 failed; a 512 MB coherent window (fresh data root) is what made an earlier run look slow.
Not tested
AI use
@vladbondarenko97 on GitHub · 2026-11-24 08:21 UTC · original
First retail-title validation: BC1, BC5 and BC7 requests unpack
Built this PR at
c8e10056on an RTX 3080 Ti against the retail 1.0.2.1 package and ran it in session 1. The title now reaches the point where it streams its texture tables, and the decoder produces output:That BC1 source size,
39541, is the exact request that fails withE_DECOMPRESSIONon main (xcl#878's example), so the change is doing what it says on the title that matters.Context of the run, and the parts that are ours rather than yours:
0x8000_0003attitle+0x4dcbc9d, page-offset test, lands on the enqueue's "packet dropped" path — written up in #723); without it the title ends about a minute in and never gets far enough to request BCPack.XCL_KEYS="<sec>:<key>,..."scripted pad overlay (mirroring VIctory'sVICTORY_KEYS) because host-level input injection is blocked here (UIPI), and the frontend needs input to progress.I could not yet check the end-of-run
dstorage.bcpack_unpackedcounters (the report is written at exit; this run was still going when I looked), and the world load is next on the list now that the frontend advances.Two questions, if you have a moment: is there a known-good BC1 stream you compare against for the fitted tables, and should a consumer expect the unpacked BCn to be swizzled as the console wants (the log shows
swizzle=0on these requests)?AI-assisted investigation (Claude Code); all values are from our own retail run, and the title package is unmodified.
@dcastell1 on GitHub · 2026-11-24 08:27 UTC · original
Two tests fail on this tree on Windows, both from the same change of expectation:
Both still expect the BCPack refusal (
E_DECOMPRESSION) that this PR removes, so they need the same update the other BCPack rows got — the decoder returnsOknow. The rest of the change is green here: 20 tests thatmainignores now run (21 ignored against 41 onmain), and nothing else in the workspace changes verdict.Environment: Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build,
main@beaa245plus this PR applied withpatch -p1(clean, no fuzz). Tree restored afterwards; no game data — the fixtures are synthetic.AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@ryosen0 on GitHub · 2026-11-24 08:28 UTC · original
Retail smoke pair for the empty Regression run section, on RTX 3060 Ti 8 GB (Ryzen 7 9800X3D, driver 32.0.16.1742, Windows 11, release) — the title whose 128 refused BCPack requests per run were the standing wall in its world load (#273):
main
1c87b1d:this PR
d19a3d3:The part that matters beyond the smoke: a 150 s scripted press-walk into the loading phase (presses at 25/35/45/55/65/80/95/110/125/140 s,
XCL_NETWORK=0 XCL_ACTIVITY=1), the phase where main logs 128 BCPack refusals (BC1 8 / BC5 100 / BC7 20) every run:BCPack BC7: first request unpacked (51012 to 65536 bytes),BC5 … (19515 to 65536),BC1 … (39541 to 65536)at t≈48 s — the exact requests main refuses, now decodedTests on this head:
cargo test --release -p xcl --lib bcpack -- --test-threads=4→ 8 passed / 0 failed.The world itself still does not finish loading within my 150 s window on this card — the load has other walls after the textures (this is the phase where #891's waits and the sparse-tile churn live) — but the texture-refusal wall this PR targets is measurably gone on a second host, with no pacing cost.
AI use: GPT-6.2 Astra (API model selector) in DSH built both commits, ran the smokes, the walk and the tests, and drafted this comment; the human contributor reviewed the numbers before posting.
@brandostrong on GitHub · 2026-11-24 08:34 UTC · original
Both confirmed; fixed in d19a3d3.
BC7 dictionary offset. The shipped tables had the same layout as VIctory main, so the parity oracle shared the bug. Regenerated from
bcpack-tables.binwith VIctory PR #658: the two repeated width bytes are skipped, then 16 + 15 signed indices with the last Rust slot zero. A unit test checks every entry (a 0-bit set holds no indices, pixel 0 is an anchor). The parity references were re-decoded with the #658 decoder, and all 126 chunks still match byte-for-byte.Parity verdict. The test now asserts
identical == casesand fails on any mismatch. Reproduced your case with two BC1 streams paired with deliberately wrong references: it passed at 0 matches before, and fails 0 vs 1 after the change.Regression run is still open: an
xcl-smokeblock on main1c87b1dand one on the head, plus an A/B of decode on/off, since the earlier launch showed a frame-rate drop once textures decode.@brandostrong on GitHub · 2026-11-24 08:41 UTC · original
Confirmed - both expectations predate the decoder and our bcpack filter skipped them. Fixed in 290f43a: BC6H single-stage and zlib + BCPack now expect
Ok(()); BC2 keeps an explicitE_DECOMPRESSIONcheck in both paths; invalid intermediate sizes stillE_DESTINATION_SIZE.cargo test -p xcl --lib hle::dstorage::tests::is 14/14, and the full--librun is 680 passed, 0 failed, 21 ignored.@brandostrong on GitHub · 2026-11-24 08:41 UTC · original
Thanks for the retail run - the 39541-byte BC1 request is the one the PR is for.
On the BC1 reference: the tables are no longer fitted. The model frequencies, history and BC1 quadrant selectors come from VIctory's
bcpack-tables.binand the decoder is VIctory's, not an approximation. The parity harness decodes 126 retail chunks across BC1/3/4/5/6H/7 and compares byte-for-byte with VIctory's output; it reads streams and references fromXCL_SAMPLE_BCPACK(a directory of.bcN+.vicN), so no game data is in the tree.On swizzle: the decoder emits the blocks in the order the destination expects and applies no swizzle. Hardware swizzle is a separate request field - XCL refuses a non-zero mode, and the requests you see carry
swizzle=0, so the buffer holds what the title asked for.@brandostrong on GitHub · 2026-11-24 08:41 UTC · original
Thanks - this is exactly the phase the PR targets, and the refused BC1/BC5/BC7 requests are the ones a user sees as missing textures.
One heads-up: the head moved to 290f43a after your run (BC7 dictionary tables corrected per VIctory #658, plus two BCPack test expectations). The description check requires the
xcl-smokeblocks to name the current head, so they need remaking at 290f43a; the main block can stay at1c87b1dor move to077ce40.Your 60 fps result also matters: it contradicts a 4-6 fps observation on our host at the old 4833c4b head. If 290f43a also holds 60, that drop was profile/cache-specific and I will treat yours as the data point. A rerun of the 90 s pair at 290f43a would settle both.
@milas6669 on GitHub · 2026-11-24 08:42 UTC · original
Test report on
d19a3d3(PR head) merged ontomain077ce40(clean merge, release build).Tested
XCL_NETWORK=0,XCL_FRAME_DUMP=120, 4095 MB coherent window, warm caches.cargo test -p xcl --lib bcpack -- --test-threads=4: 8 passed, 0 failed. I did not run the whole suite ortests/bcpack_parity.rs(it needs sample data I do not have).BCPack BC1,BC5,BC7andBC6H: first request unpacked, and 0BCPack ... unsupported/EnqueueRequest: refusedlines.main1ec4c98without the PR (130 s run, same machine): 4BCPack ... mode N unsupportedlines (BC1 mode 1, BC5 mode 5, BC7 mode 7 and one more) and 1 refused request.Not tested
AI use
@ettehn on GitHub · 2026-11-24 08:04 UTC · original · edited 2026-11-24 08:42 UTC
Resolved on
290f43a. On a clean checkout of this head on native Windows, all 14 DirectStorage unit tests passed, including the two BC6H cases below. The single-block synthetic BC7 parity check also passed (16 of 16 bytes identical). This retest covered those two test targets.Windows retest at
d19a3d3. The corrected tables match the regenerated output, the synthetic BC7 reference passes, and deliberately mismatched references now fail the parity test. Both earlier findings are resolved.Two DirectStorage tests still expect BC6H requests to be rejected. To reproduce, run
cargo test -p xcl --lib hle::dstorage::tests:: -- --test-threads=1on Windows (12 passed, 2 failed). Inrequests_are_checked_like_the_consoleandmulti_stage_intermediate_size_validation_and_zlib, valid BC6H requests now returnOk(()). I changed those expectations locally and kept explicit BC2 rejection checks for both single-stage and zlib + BCPack requests. Invalid intermediate sizes still expectE_DESTINATION_SIZE. The same command then passed all 14 tests with no production changes. The unmodified head also had four D3D12 test failures in my workspace run. I haven't established their cause.Two reproducible findings on 4833c4b63fbefe5cd5d5293e53457c3fcafe2c14.
BC7 dictionary offset. The generator starts the signed index arrays at byte 52 of the 116-byte entry. The layout in Marvisak/VIctory#658 puts two additional bytes there, then 16 signed indices at byte 54 and 15 at byte 86. In a synthetic generator test the first anchor came out as 2 instead of 1, and the last index of set 0 (7) landed in the zero-width second set. In this PR's checked-in tables, 233 of 255 entries have nonzero indices in that zero-width set. Skipping bytes 52–53, reading 31 i16 values, and appending a zero for the unused Rust array slot made all 255 synthetic entries match. The checked-in tables would need regeneration as well.
The parity test can pass with zero matches. On native Windows I ran bcpack_parity with three synthetic cases: two copies of a 256-byte BC1 stream filled with 0x11, deliberately paired with different eight-byte references (all zero and all 0xff), plus one empty stream. The test printed one decode error and 15 differing bytes across the two decoded cases, then reported 1 passed (exit 0). Its final assertion checks only cases > 0. Adding assert_eq!(identical, cases) after that assertion made the same run fail as expected, 0 vs 3. This checks the test verdict; I did not rerun the 126 reported retail cases.
Single-block regression (no game files). Call
decode(7, &[0x01; 256], 16). The checked-in table produces80 37 a8 a0 02 05 1c 50 c0 01 05 04 c4 80 f3 20. With the corrected generator and regenerated table it produces80 37 a8 a0 02 05 1c 50 c0 01 05 04 c0 b0 cc 3c, byte-identical to VIctory's corrected reference. For fill bytes 1 through 63 all streams decoded, the first block changed in 32, and all 63 corrected blocks matched the reference. The table is unchanged at c8e1005.OpenAI Codex (GPT-6.2 Astra) assisted with verification.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@brandostrong on GitHub · 2026-11-24 08:45 UTC · original
Thanks - the BC6H unpack is useful, that mode had no retail confirmation yet.
Two notes. The head moved to 290f43a: the BC7 dictionary tables were corrected against VIctory #658, so BC7 output on that build differs from d19a3d3 (BC1/3/4/5/6H are unchanged). A rerun at 290f43a would cover the mode you saw.
On correctness of the unpacked blocks, that is what the parity test covers: 126 retail chunks across BC1/3/4/5/6H/7 decoded byte-for-byte against VIctory's decoder, 0 differing of 22,253,568. Your loading-screen comparison and that test ask different questions - the dump says the loading screen does not use these textures, which matches main showing refusals without a visible break there.
@AlexLopezDevelop on GitHub · 2026-11-24 08:52 UTC · original
Tested
d19a3d3on NVIDIA RTX 2080 Ti (Turing, driver 621.24, 32-wide waves) + Intel i9-9900K, Windows 11, 32 GB, own retail 1.0.2.1 package,cargo build --release -p xcl, walked through the first-run menus by hand: pass for BCPack.report.json→dstorageafter the run:bcpack_refusedis empty. Onmain(09940bb) the same walk loggedBCPack BC7/BC5/BC1: mode N unsupported … E_DECOMPRESSIONand failed DirectStorage requests (0x89240030); with this PR the log has the three "first request unpacked" lines and no DirectStorage refusal or failure.The run ended at about 454 s in the title's own fatal-error routine (
+0x23cf683, write at 0, right after the first-run setup), the stop in #846. So that stop happens with every BCPack request served too.Regression run of
mainon the same machine (unattended, so it stays before the menus and makes no BCPack request):Not tested: the full
cargo testsuite on this branch; image correctness of the unpacked textures (the frame rate on this card while shaders compile, about 2-3 fps, kept me from looking closely).AI-assisted (Claude Code, Claude Opus 5.5).
@brandostrong on GitHub · 2026-11-24 09:04 UTC · original
@ryosen0 the head moved to 44953c2 (BC7 dictionary tables follow VIctory #658, and a BCPack destination is now size-checked against its mode's block size). Could you rerun the 90 s pair on 44953c2? Your main block at
1c87b1dstill stands; it is the PR-side block that needs the current commit. Same-Seconds 90and title.On our host the PR-side runs sit at 7-8 fps in the menu against 60 on main, with DirectStorage idle in the steady state and the first BCPack request arriving at t=43 s, so the drop is not decode; your 60 fps at this head is the evidence that it does not generalize.
@ClosetPie107 on GitHub · 2026-11-24 09:09 UTC · original
First AMD / Linux run, on the current head
44953c2: every BCPack request unpacks, and the loading-screen artwork draws instead of a black screen.Tested
experimental-11.0-20261112), vkd3d-proton v3.1 + #257's patch (-Db_ndebug=true, dxil-spirv53aac418), DXVKv3.1.1-209, DXC 1.9.2609.5. Rust 1.96.0,x86_64-pc-windows-gnu, release.run.shinside a network namespace (no network), withXCL_NETWORK=0 XCL_COHERENT_MB=512 VKD3D_CONFIG=ignore_shared_fence. I walked the first-run menus by hand with an 8BitDo pad, one run each.main077ce40against077ce40+ this PR (fast-forward to44953c2).077ce4044953c2E_DECOMPRESSION)first request unpacked#101/ the title's stop at+0x23cf683The stop after loading is the "GPU Loc Sig" one from #505 (30–45 s after the first
#101), on both trees. This PR doesn't affect it, and Windows has the same stop. No device removal, no XCL fault.Not tested: the unit tests or the whole suite under Wine on this head, more than one run per tree, the
xcl-smokepair, Windows.AI use: T3 Code (Claude Opus 5.5) built both trees, ran the game and wrote this comment from the logs. The runs are real, on the hardware above, and I checked the report before posting.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@brandostrong on GitHub · 2026-11-24 09:21 UTC · original
Final:
cd03bd9, rebased on main077ce40.Fixed since review: BC7 tables per VIctory #658; parity test fails on any mismatch or unreadable sample path; destination size checked per mode's block at enqueue (BC2 still rejected); stale DirectStorage expectations corrected.
Verified on
cd03bd9: workspace 722 passed / 0 failed / 41 ignored (2 wave32 skipped), bcpack 8/8, DirectStorage 14/14, parity 126/126 chunks with 0 differing bytes.Smoke: main 2287 frames, PR 1881 (82%, inside the 80% rule); both 0 crashes, 0 removals. PR decoded 1754 requests / 178 MB, 0 failed.
The earlier 7 fps was a 512 MB coherent window from a cold data root; 4095 MB gives 27-32 presents / 2 s, matching @ryosen0 at this head, so the rerun is no longer needed. @milas6669 BC6H confirmed; correctness is the parity line.
CI waits on maintainer approval; otherwise ready.
@dcastell1 on GitHub · 2026-11-24 09:25 UTC · original
Follow-up on the current head: the two failures are gone.
On
main@077ce40(baseline 716 passed, 0 failed, 41 ignored on this box) with this PR atcd03bd9ddapplied clean:requests_are_checked_like_the_consoleandmulti_stage_intermediate_size_validation_and_zlibnow expect theOkthe decoder returns, so nothing to chase. Six more passing tests than main here, and still 20 tests that main ignores now run.Environment unchanged (Windows 11 10.0.26300, RTX 5090, driver 621.24, Rust 1.100.0 MSVC, debug). AI-assisted (opencode).
@Xeltax on GitHub · 2026-11-24 08:54 UTC · original · edited 2026-11-24 09:26 UTC
NVIDIA test report for
290f43a(the current head): two world-loading runs merged ontomain077ce40, and a smoke pair at the head itself.Tested
XCL_NETWORK=0 XCL_ACTIVITY=1, A throughXCL_PRESS_ATevery 4 s from 20 s, first-run setup already done.BCPack. Every BCPack request is now unpacked:
report.json'sbcpack_refusedis empty andbcpack_unpackedhasfailed: 0. BC7, BC5 and BC1 were first unpacked at ~23.5 s, BC6H at ~58.8 s. The figures below are fromreport.jsondstorage:main077ce40290f43aon077ce40)+0x23cf683(#505)A second failure that the refusals used to hide. Run 1 has 1994 failed requests, 1992 of them in one 2 s window at 64 s. They fail with
0x89240009(E_ACCESS_VIOLATION), e.g.65536 bytes from G:\.\data\ttdb\maps\ttdb_maps_4_7.ttpfand…\weapons\ttdb_weapons.ttpf.bcpack_unpacked.failedonly counts decode failures, so these requests may well have unpacked fine and then failed afterwards.return Err(E_ACCESS_VIOLATION)indstorage.rs(not pushed anywhere). It had a single failure (32768 bytes ofttdb_terrain_4_7.ttpf, 71.95 s), and it came from thewrite_physical_pages(...)branch of the destination-physical-pages path.Regression run (60 s at the menus, no input, so no BCPack requests are made):
main:
PR:
The menus run at 30 fps on both builds here. During the loading, presents per 2 s stay in the same range: 0–37 on
main, 0–54 with the PR. I saw no frame-rate drop from this PR.Not tested
tests/bcpack_parity.rs(no sample data), and image correctness: the world never renders before the #505 abort.AI use
report.json, and wrote this report.Update: the burst in run 1 matches the race that #549 fixes: a title fills a destination page-array entry after
EnqueueRequest, and the worker reaches the request first. It is not something this PR introduces; BCPack requests only reach that path now that they are unpacked.@brandostrong on GitHub · 2026-11-24 09:34 UTC · original
For the following commenters, before follow-up. In your first line, in bold. Is this an improvement, neutral, or regression. And why? Is the issue scope, is it entirely the wrong fix, or something else?
@SlopTart on GitHub · 2026-11-24 09:34 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
cd03bd9onto main09940bb, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 710 passed, 12 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). BCPack unpack tests green. One caveat: in this lane the threads=4 harness hung once with no output for 21+ minutes and had to be killed; a full threads=1 rerun completes clean (676 passed, 4 failed) and the two dstorage tests that failed in the hung run pass in isolation. Single hang incident, flagging rather than blaming.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@m335671 on GitHub · 2026-11-24 10:04 UTC · original
Improvement: on the final head every BCPack request unpacks and the loading-screen artwork draws on an RTX 4070. The title's watchdog crash of #846 (
+0x23cf683, "GPU Loc Sig") is unchanged, which is out of this PR's scope.Tested
cd03bd9(head, onmain077ce40).cargo test --workspace --no-fail-fast -- --test-threads=4: 722 passed, 0 failed, 41 ignored; SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.XCL_NETWORK=0, A pressed byXCL_PRESS_A_ATevery 4 s from 20 s,XCL_FRAME_DUMP=90, first-run setup already done in earlier runs.report.json→dstorage:bcpack_refusedempty.The frame dumps show the loading-screen character artwork drawn with correct colours; on
main077ce40the same title logged 256 BCPack refusals (BC1 115, BC5 107, BC7 33, BC6H 1). The title's own crash log reportsGame State: Game Runningat 1m05 with 561 streaming requests in flight. Then the null write at+0x23cf683at ~101 s, 1420 frames presented; amainrun on this machine (menus walked by hand, no script) hit the same crash at ~104 s with 1391 frames.Not tested
scripts/smoke.ps1pair: the two runs above were not made under the same conditions, so they are not a regression check.XCL_SAMPLE_BCPACKnot set); AMD; anything past the watchdog crash.AI use: Claude Code (Claude Opus 5.5) ran the build, the tests and the title on my machine, read the logs, wrote this report and posted it at my request.
@zohaiblazuli on GitHub · 2026-11-24 10:35 UTC · original
Improvement: on
cd03bd9merged onto today'smain9aec53d, every BCPack request unpacks (178, 0 failed, 0 refused) on an RTX 3060, and the world load keeps reading after the point wheremainstops. The load does not finish within 300 s on either build, so this run cannot say whether it completes.Tested
main9aec53dwith this PR's headcd03bd9merged (2e2de39, clean merge).cargo test --workspace -- --test-threads=4: 730 passed, 0 failed, 41 ignored (for comparison,9aec53dplus a one-assertion change with no new tests: 724 passed, 0 failed, 41 ignored). SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).XCL_NETWORK=0 XCL_RUN_SECONDS=300 XCL_ACTIVITY=1 XCL_FRAME_DUMP=300,XCL_PRESS_A_ATevery 10 s from 15 s to 295 s.main9aec53d9aec53d+cd03bd951012 → 65536BC7,19515 → 65536BC5,39541 → 65536BC1).main: intro artwork at t ≈ 103 s instead of ≈ 70 s, first BCPack request at 160 s instead of 127 s. I did not look into why; it was one run of each.Not tested
tests/bcpack_parity.rswithXCL_SAMPLE_BCPACK(I have no reference samples).9aec53d).AI use: Claude Code (Claude Opus 5.5) built the trees, ran the tests and both runs, read the logs,
report.jsonand frame dumps, and wrote this report. The numbers come from those runs.@ivall on GitHub · 2026-11-24 10:39 UTC · original
Merged in
67a3735– thanks, and thanks to everyone who reviewed and ran it. Your commit went in as it is, except itsHANDOFF.mdedit (that file is the maintainer's notes). Two commits on top:8add9a3– provenance: VIctory's author allowed its use in XCL under GPL-2.0-only;THIRD_PARTY.mdand the decoder's header say so, with the project's URL.Request::checkis the enqueue check again instead of a test-only wrapper ofcheck_with_bc1. A README row for DirectStorage / BCPack;scripts/test.ps1listsXCL_SAMPLE_BCPACK.10915eb– a test that a stream decodes without game data: the 14 synthetic fixtures of #208 (made by an encoder written from the format notes, all six modes, up to 64 KiB) go through the lane stage and give their symbols; with 7 bytes per schedule round instead of 8 it fails. The 8-bit model 11 is checked against the table printed in US 11,234,023.Also checked: the 128 rANS models of
bcpack-tables.binare number for number those of Microsoft's silicon-rans sample (MIT); 72,000 random streams in all six modes (release and debug) decode or fail without a panic.Tested on the merged tree:
cargo test --workspace --no-fail-fast -- --test-threads=4: 735 passed, 0 failed, 41 ignored, no SKIPPED. Retail title, 90 s with scripted presses, againstmainthe same way: BCPack refusals BC1 2115 / BC5 108 / BC6H 1 / BC7 189 → none; unpacked BC1 2096, BC5 111, BC6H 1, BC7 187, 0 failed; no crash, no device removal; peak process commit 29.0 GB onmain, 29.7 GB with the PR.Pull request closed