formats: BC2 joins the randomized BCPack sweeps #604
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!604
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:bcpack-bc2-sweep"
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?
Contributor role (optional)
What it changes
The problem on main: nothing. This is a tests-only change for the BCPack sweeps (no production line is edited).
What it pins: BC2 was the only supported BCPack format with no entry in the randomized sweep tests (
crates/darner-formats/src/bcpack.rs, around thecheck_layout!/sweep area at:3239), though BC2 is the format whose endpoints are not taken from the shipped table file — its 64-entry BC2 colour table is generated in code (bcpack_bc2_tables.rs). A regression in that generator or in the BC2 lane schedule would have been caught by no test at all.This change adds BC2 to the same randomized sweeps the other formats use, in both the plain and the golden-file variants, with synthetic blocks only.
How it was tested
1f640dc(one commit onc8258f9).cargo test --locked -p darner-formats --lib -- bcpack— 17 passed, 3 ignored (the sweeps and goldens).cargo clippy --locked -p darner-formats --all-targets -- -D warningspasses.lanes_striprefuse a 15-lane schedule: the new sweep fails; with the old BC2check_layout!line removed the same mutant passes — i.e. before this change the sweep never reached a 15-lane schedule.decode_bc2panic on entry: the sweep fails.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: not run to completion here; the pre-existingdarner-gputest deadlock (#224) anddarner-shaderwaterfall fixture failure (#227) make the whole-workspace run non-green on this machine.darner-formats' suite is green.Checklist
main.docs/asset-policy.md(cargo xtask policy: 576 files ok).Checked for overlap
crates/darner-formats/src/bcpack.rsorbcpack_goldens.rs, and no open or closed issue mentions the BC2 sweep.[pr-tests] formats: BC2 joins the randomized BCPack sweepsto formats: BC2 joins the randomized BCPack sweepsView 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.