No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1405
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1405"
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?
@SantannaCarlos on GitHub · 2026-11-24 17:46 UTC · original
SantannaCarlos:fix/own-copy-same-submission→main· +1478 −152 · 5 files · 9 commits · openStacked on #334 (buffer states) and #1019 (views off an element): only the last two commits are new here,
e8902a3andad2025a(fixes from review). The merge brings #334 as it is (c99e429); the commits before it are #1019's.What
#1019 gives a view that starts off an element of its buffer's host copy a copy of just its bytes. That copy is brought up to date from title memory when the submission is prepared, so it does not see what the submission's shaders wrote in that range in the buffer's copy before the read; a view on an element of the same bytes does. In the world this is common: in a 10-minute run on an RTX 4070, 1,938 such ranges had bytes written by shaders in the 174 MB buffer's copy within the submission that read them (median 4.5 KB, about ten a frame). This was the known limit noted in #1019.
Not covered:
Tested
cargo clippy --workspace --all-targets -- -D warnings, with and without--all-features;cargo test --workspace(victory-gpu61 passed, 1 ignored);cargo xtask policy. New test: shader writes in a view's range, found by the copy-back of the copy it was cut from, mark it; writes next to the range, or in another copy, do not.main+ #493 + #876 + #439 (with #223, #233, #320) + #116 + #984 + #949 + #1020 + #1198 + #1019 + #334 + this, with a local tracing patch:e8902a3: no stop, 27 own copies marked and read through the GPU copy, no added cost (median 4.4 s a frame, against 5.8 s for the same tree without #334 and this; the tree is slow because of #1198);ad2025a, two runs: one with no stop (26 copies marked); one where the device was removed at 498 s, with no breadcrumbs in the report and aCS_ClearFeedbackSetupdispatch listed in flight. It did not come back in the repeat, and this stack has other ways to hang on this card, so I can't tie it to this change either way.What I could not show: a visible difference in the dumped targets. The captures fall on different moments of the scene between runs, so they do not compare.
c99e429) for the same-submission work 47ee4bd574@aycow on GitHub · 2026-11-24 18:13 UTC · original
Thanks for following up on #1019. I reviewed exact
e8902a3specifically againstf173d36(#185) and709647f(#387). The composition has conflicts, and two source-level edge cases stood out. These are review findings pending native reproduction.@SantannaCarlos on GitHub · 2026-11-24 18:24 UTC · original
@aycow both hold; thank you. Fixed in
ad2025aon this branch:buffer_state, where the command's own write wins.HostList::copy_buffermoves the source to the copy-source state and the view's copy to copy-destination, records the copy, and moves each back to the state the command has it in (BufferStates::around_copy); a first use records the copy's state for the prelude. New test: after the same command binds the source for writing, a copy from it still transitions it (write, copy source, write), and a read state is left as it is. Keeping the copy and its two transitions in one call should also make it one unit for #595 to track.cargo test --workspace(victory-gpu63 passed, 1 ignored), clippy with and without--all-features, and the asset policy pass. On the conflicts with #185 and #387: I haven't resolved those here; this stays on #334 and #1019 as they are.@aycow on GitHub · 2026-11-24 18:43 UTC · original · edited 2026-11-24 19:04 UTC
Thanks for the fixes in
ad2025a. The identical-range, distinct-source regression passed on AMD Radeon Graphics, RTX 5070 Laptop and WARP. An additional native fixture dispatches a UAV producer, copies the alias while the parent is already bound for the next dispatch, then reads the alias while writing the parent again. Both destination-state variants read 43 and wrote 44 on all three with full GBV and no warnings or errors. The previous sequence triggered WARP errors 527 and 538 because the copy source was still UAV.These results cover the case where the copy path is selected. First-use discovery, already-recorded lists and directly indexed descriptors still need separate controls. #185/#387 and #595 composition have source conflicts. #595 will also need the exact parent and cut read/write touches and native backing ownership through completion.
The author-preserving #1405/#387 composition is now independently tested against current #387
0899b7d. Both inline state variants, all 20 ordering checks, and all five shadow cases passed on AMD, NVIDIA, and WARP with full GBV. Both workspace Clippy configurations and asset policy passed. The test overlay retains the named test-device setup. The first unmarked parent-to-cut read within one native list still needs earlier producer tracking. #185 direct heaps and #595 fence ownership remain separate integration work.@Marvisak on GitHub · 2026-11-25 01:25 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/descriptor/host.rs,crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs,crates/victory-gpu/src/indirect.rs,crates/victory-gpu/src/shadow.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.