Upstream: 10 fixes taken from upstream's rewrite commits (stacked on #716) #767
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/767"
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?
Imported from fxceless/victory-fork. Originally posted by coderanonymus on 2026-11-25T06:52:38Z.
Stacked on #716, which is stacked on #653. This PR's own commits are the 11 after #716.
Rebased on main (
a26859f)Rebased with #653 and #716 onto
a26859f. The owner's two newest commits already do two of the pieces, so they're dropped here, together with the three commits that only supported them:a26859f, from #305);8dd30ab).A read-only review checked every remaining commit against the owner's two commits for duplicates and clashes, and found none. Heap constant buffers as raw views now meet the owner's byte-copy sync: every CBV record the sync mirrors becomes a buffer slot that
heap_buffersmakes and refreshes. Before, it was nulled. That's more correct, at a cost not yet measured.Clippy passes with and without
--all-featureson a clean build, Linux tests (274) pass, and so does the asset policy.Why
Upstream's maintainer landed large commits that re-implement parts of this fork's own work in upstream's way: title memory through a page table, FidelityFX, view copies, the shader pack. They can't be merged here. A read-only triage of each one still found specific fixes inside them that the fork lacks. This PR takes those pieces, each rewritten for the fork's design.
What
Each commit says which upstream commit it is "ported in part" from, keeps the upstream author, and has a Port notes paragraph.
Shaders
image_sample_d/_d_clon a cube):_clread its clamp but never applied it.s_min/s_maxnow set SCC from their compare (RDNA2: whether the first operand was chosen), not fromresult != 0.v_cmp_f/v_cmp_trulower to constants.v_movrel*) reach only what a proven upper bound on M0 allows (upstream'srange.rs). Programs that keep descriptor dwords or masks above a small indexed array are no longer refused.s_notof a ballot) is computed from its scalar op, not refused.image_gather4_lthrough a clamp-to-black-border sampler: a texel outside the view reads 0, as on the console. The fork clamped it to the edge texel, so meshlets at the screen edge culled against the wrong depth.GPU
Mine, from the stack's review
s_min/s_maxSCC andv_cmp_f/v_cmp_tru. Their checks now run.Left out
Two pieces were rejected after their repair round, and I didn't take them:
d71c388(a computed heap index landing on a texture slot). The port also sent constant buffer slots to a null view, so reads that work today would return zeros.a7fc47a. The code holds up, but it claimed a refusal it doesn't give. Getting this one right needs more work than one round.How it was made and reviewed
Ultracode workflow:
SHADER_HEAPSlock. The lock review found that the heap sync takesSHADER_HEAPSundersubmitted, then leaf locks only, so the order stays acyclic with #668. The two branches merge cleanly.Verification
Checked in a dedicated worktree with fresh target directories:
cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with--all-features, forx86_64-pc-windows-msvc: clean.emit/lower.rsis under its 512 KiB). formats, core, pipeline and game pass.No game data used; the game isn't named in the tree.
🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T06:52:48Z.
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.c15c1d4ℹ️ 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.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T06:52:50Z.
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
[PR #767] Upstream: 12 fixes taken from upstream's rewrite commits (stacked on #716)to [PR #767] Upstream: 10 fixes taken from upstream's rewrite commits (stacked on #716)View 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.