shader: the exhaustive mul-form sweep is a runbook step, not the gate #619
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!619
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:oracle64-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:
oracle64::legacy_mul_forms_are_exactproves the host forms ofemit::cost::Rewrite::LegacyMulFormsagainst this model'sv_mul_legacy_f32bit for bit, and it does so exhaustively:That is about 30 billion checks. In a debug build — which is what
cargo testruns — it takes over half an hour, and it is most of this crate's suite:cargo test -p darner-shader --libmeasured 2444 s on this machine in a gate run earlier today, with this test running for almost all of it. A test that costs more than the rest of the workspace is a gate-time defect even though its content is right.This change keeps the exhaustive pass and moves it behind
#[ignore], with the run command in the reason — the shape AGENTS.md describes for a measurement (cargo test --release -p darner-shader legacy_mul_forms_are_exact -- --ignored). A bounded deterministic sweep of the same properties runs by default: every 8192th float for the squares, every 131072nd for each of the same constants, plus the ends of the range and the NaN and infinity encodings, through the same per-pair assertion. The constants and the assertion are now two helpers, so both passes check exactly the same thing.How it was tested
bf5302a(one commit onc8258f9).cargo test --locked -p darner-shader --lib— 568 passed, 0 failed, 17 ignored, in 648 s on this machine. The same crate's suite took 2444 s earlier today on the same machine (my gate log onc8258f9; that run also had the pre-existingemit::waterfall_testsfailure, which has since been fixed by a merge). The difference is this test: the exhaustive pass is now the 17th ignored test, and the default sweep runs in 0.20 s.cargo test --locked -p darner-shader --lib -- oracle64::— 3 passed, 1 ignored.cargo clippy --locked -p darner-shader --all-targets -- -D warningspasses (the ignored test still compiles, so the exhaustive pass is not dead code).assert_eq!removed), the sweep fails; and the exhaustive test, run with--ignoredon a release build, still fails on a deliberately brokenlegacy_mul— its content is unchanged.cargo testpays for.cargo test -p darner-shader --libon this machine, same suite, same hardware. No fps or gameplay figure is implied or given.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: still not green on this machine, but for the first time this crate is not the reason —darner-gpu's pre-existing order-dependent failures and deadlock (#224, #150) remain.darner-shaderis green in 648 s.#[ignore]reason.Checklist
main.docs/asset-policy.md(cargo xtask policy: 576 files ok).Checked for overlap
crates/darner-shader/src/oracle64.rs(checked against the file list of all 189 open pull requests), and no open or closed issue mentionslegacy_mul_forms_are_exactor the oracle.An independent Windows result for the exhaustive runbook step. With Rust 1.98.1 and
RUSTFLAGS=-C target-cpu=native, the complete existing sweep passed in 42.04 s:cargo test --release --locked --offline -p darner-shader --lib oracle64::legacy_mul_forms_are_exact -- --exactThis used
6d80b4bfrom #620, where the oracle is identical toc8258f95. The same sweep was the only shader test still running when I stopped the debug workspace run. This exercises the full original oracle through the release path.[pr-tests] shader: the exhaustive mul-form sweep is a runbook step, not the gateto shader: the exhaustive mul-form sweep is a runbook step, not the gateView 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.