Upload fills: stop false trips of the fill-ahead latch; quiet depth U… #859

Open
turbinedogbla-creator wants to merge 32 commits from upstream-pr/860 into main
turbinedogbla-creator commented 2026-11-25 10:58:08 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by turbinedogbla-creator on 2026-11-25T10:58:08Z.


…AV log

fill_ahead compared a landing's shader bytes with title memory as it is now, so a title rewrite after the fill counted as a miss and made every fill wait for the rest of the run (about 100 ms a frame on the submitting thread). Fills now keep a fingerprint of the bytes they read; a fill whose bytes the title rewrote since is not compared. A real miss holds back only the 64 KiB pieces it touched; past 8 such pieces every fill waits as before. Adds a unit test (Windows) for the three cases.

The "unordered access view of a depth texture" line is logged once per view instead of on every creation (up to 512 lines, a few a frame), and drops the four record words past the texture part of the union, which are uninitialised title stack bytes.

Fix the doc of VICTORY_CARD_ROOM_FOR_BUFFERS: it is on by default.

Claude-Session: https://claude.ai/code/session_01McYwNpi6MZ72qHprqeeyRX

<!-- greyfinch-sync:fxceless/victory-fork:issue:6602915782 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/860). Originally posted by [turbinedogbla-creator](https://github.com/turbinedogbla-creator) on 2026-11-25T10:58:08Z. --- …AV log fill_ahead compared a landing's shader bytes with title memory as it is now, so a title rewrite after the fill counted as a miss and made every fill wait for the rest of the run (about 100 ms a frame on the submitting thread). Fills now keep a fingerprint of the bytes they read; a fill whose bytes the title rewrote since is not compared. A real miss holds back only the 64 KiB pieces it touched; past 8 such pieces every fill waits as before. Adds a unit test (Windows) for the three cases. The "unordered access view of a depth texture" line is logged once per view instead of on every creation (up to 512 lines, a few a frame), and drops the four record words past the texture part of the union, which are uninitialised title stack bytes. Fix the doc of VICTORY_CARD_ROOM_FOR_BUFFERS: it is on by default. Claude-Session: https://claude.ai/code/session_01McYwNpi6MZ72qHprqeeyRX
MamaLeVrai commented 2026-11-25 13:06:00 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T12:23:25Z.


Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head ce304e5 into main f85101b in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins, depth_written, a sort; PR #841 fixes them), also with --all-features; this PR adds none. cargo test --workspace --locked: run 1: stopped at indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields (the one that fails on main itself most runs here (PR #849 and #847 fix its assertion)); run 2: stopped at indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields (the one that fails on main itself most runs here (PR #849 and #847 fix its assertion)) (main alone: 555 passed, 0 failed, 11 ignored). The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7162307427 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/860#issuecomment-7162307427). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-25T12:23:25Z. --- Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `ce304e5` into `main` `f85101b` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins`, `depth_written`, a sort; PR #841 fixes them), also with `--all-features`; this PR adds none. `cargo test --workspace --locked`: run 1: stopped at `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields` (the one that fails on `main` itself most runs here (PR #849 and #847 fix its assertion)); run 2: stopped at `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields` (the one that fails on `main` itself most runs here (PR #849 and #847 fix its assertion)) (`main` alone: 555 passed, 0 failed, 11 ignored). The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/860:upstream-pr/860'
git switch 'upstream-pr/860'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/860'
git switch 'upstream-pr/860'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/860'
git switch 'upstream-pr/860'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/860'
git switch 'main'
git merge --squash 'upstream-pr/860'
git switch 'main'
git merge --ff-only 'upstream-pr/860'
git switch 'main'
git merge 'upstream-pr/860'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!859
No description provided.