darner-gpu: pin the --only-buffers predicates #587
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!587
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:replay-chosen-test"
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 (no production line is edited).
What it pins:
chosen(crates/darner-gpu/src/replay/play.rs, around:286) decides which buffers--buffers vram|sysmemmoves to the PC's memory, and so which bytes of a replay differ from the recorded run: a filter that is wrong measures a frame that is not the recorded one. Its language is documented indocs/replay.md:72(name=,min=,max=,seen=,id=a..b, or!and one of them) and the function had no test at all, though three of its rules are easy to break by accident: a filter with no=is a name filter,!negates only its own filter while the filters stay ANDed, andid=a..bis a half-open Rust range rather than the inclusive one the..notation suggests.This change adds one test that pins those rules for the records a capture carries, including an empty filter and a filter that names nothing.
How it was tested
dbc16d1(one commit onc8258f9).cargo test --locked -p darner-gpu --lib -- replay— passes (the new test among them).cargo clippy --locked -p darner-gpu --all-targets -- -D warningspasses.=name rule) one at a time and watching the corresponding case fail.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;darner-gpuhas the pre-existing order-dependent failures and the #224 deadlock, which is why the whole-workspace run is not green on this machine. The crate'sreplaytests pass.seen=andmin=/max=numeric bounds are pinned at their edges only.Checklist
main.docs/asset-policy.md. (cargo xtask policy: 576 files ok.)Checked for overlap
crates/darner-gpu/src/replay/play.rstoo; this change only adds a test block. No open or closed issue mentionschosenor--only-buffers.[pr-tests] darner-gpu: pin the --only-buffers predicatesto darner-gpu: pin the --only-buffers predicatesView 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.