Up-copy check: what is known of copies that are gone is let go #119
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!119
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-119"
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?
@DiosET3RN0 on GitHub · 2026-11-27 18:24 UTC · original
DiosET3RN0:upcheck-prune-known→main· +35 −1 · 1 files · 1 commits · closed without mergingWhat
With
VICTORY_UPCOPY_CHECK,KNOWNinhost/upcheck.rskeeps an entry percopy ever declared or fetched and never lets one go, so it grows for as long
as the check runs.
How
The look at rest takes its snapshot of
carded_copies()first and keeps inKNOWNonly those ids (forget_gone), before anything in the look that canfail.
Why it is safe:
Shadow::id: "A number no othercopy has had").
at_restruns with the submission lock held and nothing in the air, sonothing declares or fetches while the look runs.
One consequence: a copy that is alive but not on the card at the moment of a
look loses what was declared of it.
Diagnostics only: nothing changes unless
VICTORY_UPCOPY_CHECKis set.1 file, +35/−1. Same change as avatarmanz/VIctory-7900XTX#369.
Tests
New
what_is_known_of_a_copy_that_is_gone_is_let_go, on a map of its own (nodevice needed).
cargo test -p victory-gpu --lib --locked host::upcheck: 2 passed, 10ignored (the relay tests that want processes of their own; not run here).
cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: 39errors on
mainand 39 on this branch, none inupcheck.rs(they aremain's own, inport.rs,queue.rs,texture.rsand others).Windows 11, Rust 1.98.1. No game run.
AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
@1tsethan on GitHub · 2026-11-27 23:00 UTC · original
Independent Windows validation of PR #119.
Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu host::upcheck -- --nocapture --test-threads=1Exit: 0.
Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics a_result_caught_in_between_is_put_right -- --ignored --nocapture --test-threads=1Exit: 101.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics the_check_finds_an_undeclared_write_undone -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics writes_through_picked_views_come_back -- --ignored --nocapture --test-threads=1Exit: 101.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4,VICTORY_PICKED_WRITES=1,VICTORY_PICKED_MB=1Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics each_submission_reads_its_own_copy_on_the_card -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics each_submission_reads_its_own_copy_in_pc_memory -- --ignored --nocapture --test-threads=1Exit: 101.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics copies_stand_where_the_list_has_them_on_the_card -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics copies_stand_where_the_list_has_them_mixed -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics copies_stand_where_the_list_has_them_in_pc_memory -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics copy_draw_copy_draw -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Tested commit:
2e7e626eeb51a0482f29fec2fb16aa75259b849b.cargo test --locked -p victory-gpu --features diagnostics declared_writes_beside_the_titles_own_stay -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Parent-commit comparison:
Tested commit:
29d8dbf7d9892ceb8bec378a9dbc3c4f2931b745.cargo test --locked -p victory-gpu --features diagnostics a_result_caught_in_between_is_put_right -- --ignored --nocapture --test-threads=1Exit: 101.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Parent-commit comparison:
Tested commit:
29d8dbf7d9892ceb8bec378a9dbc3c4f2931b745.cargo test --locked -p victory-gpu --features diagnostics writes_through_picked_views_come_back -- --ignored --nocapture --test-threads=1Exit: 101.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4,VICTORY_PICKED_WRITES=1,VICTORY_PICKED_MB=1Parent-commit comparison:
Tested commit:
29d8dbf7d9892ceb8bec378a9dbc3c4f2931b745.cargo test --locked -p victory-gpu --features diagnostics each_submission_reads_its_own_copy_in_pc_memory -- --ignored --nocapture --test-threads=1Exit: 101.
Test-specific environment:
VICTORY_RELAY=2,VICTORY_RELAY_COPY=1,VICTORY_UPCOPY_CHECK=1,VICTORY_CARD_BUFFERS_MIN_MB=4Configuration finding: the ignore attributes alone were insufficient on this host. Initial 4 MiB card-copy fixtures failed setup under the default 16 MiB placement threshold; lowering to 64 KiB also incorrectly moved a PC-memory control onto the card. The final runs above use a diagnostics build,
VICTORY_CARD_BUFFERS_MIN_MB=4to preserve both fixture classes, andVICTORY_UPCOPY_CHECK=1as specified in the shared test-module comment. Each ignored test gets a separate process, plus any PICKED settings from its ignore attribute. Parent-commit results are included for tests that still failed. These outcomes should not be attributed to the pruning change without further investigation.Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.
@cloph-dsp on GitHub · 2026-11-28 01:07 UTC · original
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
2e7e626eeb51a0482f29fec2fb16aa75259b849b, base (PR parent)29d8dbf7d9892ceb8bec378a9dbc3c4f2931b745.cargo test --locked -p victory-gpu --lib -- host::upcheck::tests::what_is_known_of_a_copy_that_is_gone_is_let_go --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 455 filtered, exit 0.git grep -Ffor the test name on the PR parent returned no hits (test is new on this PR);git diff --check 29d8dbf7 HEADclean (1 file, +35/-1).CARGO_TARGET_DIRandCARGO_BUILD_JOBS=2.AI-assisted (Hy4 flash).
@trustno1-coder on GitHub · 2026-11-28 02:49 UTC · original
Merged into main (
8fc2254) and shipped in v2026.11.27.10. The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!Pull request closed