Upstream: 31 conflicting fixes ported by hand (stacked on #653) #716
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!716
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-716"
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?
@coderanonymus on GitHub · 2026-11-25 05:27 UTC · original
coderanonymus:upstream-ports→main· +12072 −1413 · 99 files · 149 commits · openStacked on #653, which brings over the 113 upstream fixes that apply cleanly. Please merge that one first; this PR's own commits are the 34 after it.
Rebased on main (
a26859f)Rebased with #653 onto
a26859f. The port of 4ab20fc (indirect budget charged in record order) is dropped.a26859frewrote the same clamp shader, and I won't merge two rewrites of it without a run. Everything else applied. Clippy passes with and without--all-featureson a clean build, Linux tests (263) pass, and so does the asset policy.Why
#653 left out the upstream commits that conflict with the fork. Most of those are fixes inside code the fork rewrote. This PR ports them by hand, so the fork has them without a full upstream merge.
What
cherry picked fromorported from).f821cb9(parallel library loads), f47ebd8 (cache invalidations as no-ops), 1e923ad (WAVE_OPS forlane_bit), 4e60ea3 (indirect drop before clamp), 42363ab and ccfb029 (shader tests skip without a GPU). The fork has each in its own form; the reviewers checked each claim.emit/lower.rsreached 525,703 bytes, past its 512 KiB limit, sorepository_passes_policyfailed. Its test module moves toemit/lower/tests.rs. The move is byte-for-byte, apart from one level of indentation (checked with diff). Upstream has started splittingemit/lower/the same way.lane_bitthen tests the low dword in both host waves.atom()now refuses an opaque mask there, and a constant one unless its two dwords are equal. The portedv_cndmask_b32change refuses its own paths the same way. Theatom()hole was already onmain, for example a compare ANDed with a constant feeding a select. Test:a_constant_select_mask_on_host_halves_is_refused, with five cases, all of which translated (wrongly) or reached the wrong path before.How it was made and reviewed
Ultracode workflow:
v_cndmask_b32constant masks: the half-wave miscompile above.atom()hole, fixed above, and two small slips, fixed in the last commit. It found no other interactions between ports.Some of these ports may overlap open fork PRs, judged by title only: #165 (
Staging::detile), #325 (frame waits), #97 (DirectStorage page 0; d09f3aa itself was left out for that reason).Verification
cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with--all-features, forx86_64-pc-windows-msvc(cross-checked from Linux): clean on the stacked branch.No game data used; the game isn't named in the tree.
Ported (upstream sha, author)
f5cb5ffCapture startup breakpoint diagnostics (Peter Bonanni)a3acc87Check the required startup archive before executing Series 1.0.2.1 (Peter Bonanni)691236dGPU: align appended input-element offsets like D3D12 (JFIREonFIRE)🤖 Generated with Claude Code
`victory run GTA6.exe`, run from the game folder, gives an exe path with an empty parent, and that empty folder was mounted as G:. An empty path cannot be made absolute, so the root stayed empty and G:\x64\a.rpf became \x64\a.rpf: the root of the current drive. The title then found none of its files. An empty root is now the current directory, which is what an empty folder means everywhere else (`Path::new("").join("x")` is `x` in the current directory). Passing a path with a folder in it is unaffected. (cherry picked from commit 01ae55a3ba04c39a0e8851cc00da16af7a49adbd)..in the not-yet-existing part of a path ad40d81e34The device-removed report matched a breadcrumb node to a submitted list by comparing `as_raw()` of the list with the node's `pCommandList`. On an RTX 4070 no node ever matched, even without the debug layer: every list was reported as `None`. With device-removed data on, each host list is now named ("victory host list <n>") when it is made, and a node is also matched by the name the runtime copied (`pCommandListDebugNameW`). The pointer is still compared first, against every interface pointer our live list answers with (its own, IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList). The node's pointer is only compared, never dereferenced: a node may name a list that is long released. With the debug layer on (`VICTORY_D3D12_DEBUG=1`) the nodes still do not match; that case is left open. Port notes: the fork's make_list keeps its lazy prelude (the list's prelude is made on first need), so only the id and the name are added after it; the new helpers sit after the fork's Chunk type, next to its Scratch, and the tests join the fork's host tests. The report's two pointer comparisons are the same code on the fork and are replaced as upstream does. (cherry picked from commit 65269650fca8b6c93e089374f3e4db677446ce5d) Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <[email protected]>A run on an RTX 4070 with the debug layer on showed why a list's name did not match a node: the runtime appends its own note to the name we gave, as in "victory host list 158 (debug layer indirect)". The name now matches exactly or followed by " (", and never as the start of another number ("victory host list 1580"). Both name fields of the node are read, as before. That makes the sentinel list and the matching by position of the previous commit unnecessary, so they are removed, together with the extra private data keys it set: lists are named with SetName again. The warning that logs the last node's pointer and names when no node matches a list stays. Tests: the name with the note matches in the wide and the ANSI field, a longer number and a name without the " (" do not; with the match for the exact name disabled or loosened to a prefix, the tests fail. Port notes: the sentinel list, the matching by position and the private data keys this commit removes upstream were never ported to the fork (see the port of 8a358e3), so only the match of the name followed by " (" and its tests are added. One assert of the new test is wrapped as rustfmt would. The fork's code now has the same additions and removals as upstream's three commits together. Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <[email protected]>@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 05:27 UTC · original
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
We couldn’t complete this review. Comment
@codex reviewto try again.ef4e8a9ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 05:27 UTC · original
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
@JRamos1993 on GitHub · 2026-11-25 06:28 UTC · original
Offline check on the retail shader pack: no program gained or lost, but 17,346 programs' DXIL changes. So this changes code in most of the title's shaders, and needs an in-game look before it lands.
Setup: RTX 5090, Windows 11.
victory translate --validate --listover the title's full shader pack (26,084 programs),main310c6ebagainst this head (with #653 under it), with a local DXIL hash on each validated line.mainA sample of 3 changed programs,
dxc -dumpbinwith SSA numbers normalized:and/select/icmp, and in one, 20dx.op.isHelperLanecalls.I have not checked what the changes do in game.
AI use: Claude Code with Claude Opus 5.5 ran the pack, compared the dumps and wrote this. Nothing from the title is in it.
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.