Complete BC2 BCPack decoding and fix terminal lane scheduling #2092
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2092
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2092"
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?
@wish131400 on GitHub · 2026-11-29 09:20 UTC · original
wish131400:fix/bcpack-complete-bc1-bc7→main· +14526 −343 · 14 files · 1 commits · merged 2026-11-30 14:12 UTCFixes #2085
What it changes
Current main rejects 99 of 1,076 independent synthetic BCPack cases: 25 BC1, 49 BC2 and 25 BC4. This patch reconstructs all 1,076 byte for byte, using the existing DirectStorage decoder entry point and without a developer SDK or calibration profile at runtime.
f9de61c5, correct the still-stale scalar test oracle, and check every dictionary index at its independent binary offset. The old test encoder's filler fragments are removed because finished lanes now stop asking for bytes.Adapted from Mandy #2567, revision
cb947eac0d1b46ac8a5938d06a17fe7bd95cfe12, while retaining the newer NVIDIA optimizations. The BC2 constants originate in the public MIT Xbox2Windows #3293. The existing binary tables are unchanged.docs/bcpack.mdrecords provenance and regression reproduction; third-party notices accompany the port. Research included implementation inspection and synthetic API queries; no strict clean-room claim is made, and no SDK binaries/private headers/disassembly are shipped. Implementation and review were AI-assisted with Codex.How it was tested
829188e969ffd2907e5867c5d9aca29bd91cb1b6: 977 exact matches, 99 rejected, zero differing successful outputs. Three existing format tests fail because the scalar BC7 oracle still skips a word.cargo test -p victory-formats -p victory-hle --locked -- --test-threads=1: passed, 84 format tests, 424 HLE unit tests and 2 HLE integration tests; 7/5 existing ignored tests respectively.cargo clippy -p victory-formats --all-targets --locked -- -D warnings: passed.cargo xtask policy --staged: passed, all 14 changed/new files. Importer--checkandgit diff --cached --check: passed.Broader checks have existing limitations, left visible here:
xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_itonce; the complete serial run above passed. That file is unchanged by this PR.-D warningsis blocked in unchanged main code: unusedPAIR_MEETINGS/analysis::lane_regions,while_immutable_conditionin shader lowering, and unusedunwind_copyin the loader.cargo xtask policyis blocked by the unchangedcrates/victory-loader/src/heap_sites/frame_users.rs(2,022 hex digits in a literal run). The staged patch passes independently.Checked for overlap