Upstream: the 113 fixes merged since ffe310e that apply to the fork #653
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!653
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-653"
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 04:06 UTC · original
coderanonymus:upstream-clean-fixes→main· +8382 −516 · 85 files · 115 commits · openStacked on #642, which fixes the clippy failure on
main. That fix is the bottom commit here, so CI can get past clippy to the tests.Rebased on main (
a26859f)Rebased onto
a26859f, the owner's newest commit. One conflict: upstream'sv_cvt_off_f32_i4arm sits next to the fork'sv_cvt_f32_f64arm inlower.rs, and both are kept. Clippy passes with and without--all-featureson a clean build, Linux tests (255) pass, and so does the asset policy.Why
Upstream merged about 150 community PRs on 2026-11-24/25, after
ffe310e, the upstream commit this fork is based on. None of them are in the fork yet. Many fix things the fork also runs: XMA rings, XAsync, saves, the loader, PE parsing, sampler creation, descriptor search, shader lowering.A full merge of upstream conflicts in 45 files, mostly where upstream rewrote parts of the fork's own work. This PR brings over the part that doesn't conflict: 113 upstream commits that apply cleanly and still work with the fork's code. That shrinks a later full sync.
What
(cherry picked from commit …)line.victoryapp 10, formats 8, README 6, loader 5, PE 3, core 2, docs/xtask/pipeline 1 each.descriptor/host.rs: the fork caps the dynamic-slot search at the ring's length. That cap cut off exactly then - 1slots that upstream's wraparound fix (c1c3281) adds, so the fix did nothing here and its new test (072fde0) would fail. The cap is lifted. Theenoughgate stays.host.rs: aftera4974e4,VICTORY_GPU_TIMING=0means off, but the fork'slate_stage()still treated any value as on. It disabled late waits and the relay while timing itself was off. It now reads the switch the same waytiming()does.4e17478.Left out
ir.rsbuildsgfx10::Instructionliterals, which the new private field breaks.628b95d(SHADER_HEAPSheld across mirror): it removesshader_slot, which the fork's late-texture path indescriptor.rsstill uses. It needs a hand port.console_insnhandles those instructions beforeemulate_amd_onlyruns, so upstream's emulation would never run. Its new asm test would fail on Intel CPUs: the fork's loop emulation leavesraxat the limit, not at the line after the last pass, and sets no flags.Review
Ultracode-reviewed: four area reviewers went through the 81 picks that touch files the fork also changed, looking for semantic conflicts, and a skeptic checked each finding. Three findings were confirmed (the two adaptations above and the clzero drop). One low finding stays:
host-pipelines.tmpoutside the new lock. This is not the mapped-file device loss, and it's no worse than before.Some picks may duplicate open fork PRs. I matched by title only:
a7636dd)b9ff219)936e5e5)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.image::teststhat parse the test binary fail on Linux only, because that binary is ELF there. They fail the same way onmain.No game data used.
Included (113, upstream sha)
d01b170XAsync: end the call that finished, not whatever call the block holds now (Duff)b1bdd89Census: report directory traversal failures (Bloxive)b9ff219XTaskQueue: terminating a queue cancels its delayed callbacks too (Duff)3c7d845Kernel: a title image's file name that fits clears the last error (Maraco91)11ca3ceMedia: a share is refused however it is spelled (Maraco91)e57e76afix(pe): validate section raw data bounds (Diego)5cff000XAsync: a new block where a result was left behind begins a call (Maraco91)e3bef08XStore: a store id without an installed package is an invalid argument (marquezini)c6959acHLE: load a host DLL outside the module cache's lock (Duff)d549b63HLE: a '>' in a quoted manifest attribute does not end its tag (Duff)e6ebec9Shader info: show stage I/O even when instruction decoding fails (FIocker)936e5e5XGameUi: a text entry's limit is the console's (marquezini)c000581Kernel: GetModuleFileName of a title image into a null buffer (marquezini)e6fe8ecGPU: fix CreateSamplerX mip-none base level, LOD range, bias clamp, and invalid enum values (nathanbzrr)2c22e2bXStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot (nathanbzrr)a3f89edCensus: deduplicate PE imports without hint (nathanbzrr)75fe6c0HLE: require two hex digits in percent escapes (Enzo Souza Duarte)b956320GPU: handle depth/stencil copy footprints (broccolize)65062e1xmem: report allocations the host refuses (LF2000 Builder)81b81dfShaders: reuse lane guards for unchanged EXEC within a block (Devin)e950e81xtask: count \x escapes and 0x hex arrays as encoded runs in the policy check (LF2000 Builder)a4974e4GPU: VICTORY_* switches set to 0 are off (KoLolX3)988fd9atranslate: refuse a VICTORY_EMIT_DUMP directory inside the repo (LF2000 Builder)43e2ca9Show on-disk file size in victory inspect (Thomas Askharoun)e34cb53GPU: keep finite (min_lod, min_lod) in CreateSamplerX when mip filter is none (nathanbzrr)7216ab7HLE: implement the RPC runtime's GUID calls (Nixitov)a32eacdfix(pipeline): retry collisions when creating cache staging files (DocBlack89)aaacc2ddocs(architecture): list BCPack as implemented in victory-formats (给伊莉雅补魔)64b80c3Formats: share immutable texture swizzle tables (TG0000)131944dPE: add synthetic unit tests for implib.rs and layout.rs (给伊莉雅补魔)0be58e6GPU: add synthetic unit tests for query.rs and signature.rs (给伊莉雅补魔)d0dd9fcfix(pe): keep every name for a shared export ordinal (quaternion)ca362a4fix(hle): read manifest fields past inline XML comments (quaternion)71e8866fix(hle): honor the requested executable on relaunch (quaternion)eb8067ffix(hle): keep apostrophes intact when splitting relaunch args (quaternion)..in the not-yet-existing part of a path (nino-exe)246eceaHLE: test that XGSuggestSwizzleMode picks linear for a 1D texture (Luiz Neves)534e1ddCLI: add AVX2 pre-flight CPU check before executing titles (David Palacios)e3c9dd0GPU: guard zero/overflowing stride in expand_rects and add primitive.rs unit tests (给伊莉雅补魔)ef0c3e9GPU: validate null args in create_deserializer to prevent d3d12 AV and add root.rs tests (给伊莉雅补魔)42961e8GPU: log the TDR settings, and warn when a GPU hang would freeze the PC (bvtterbroot)a7847a5HLE: constrain the title before suspending it (Giuseppe Rainone)098a26aREADME: how to install Rust on Windows (#1087) (Eduardo Bertozzi)44ce067XAsync: canceling a call that already completed leaves it alone, as documented (BastienRdz)142ec8dDeduplicate image paths in victory census (DoubleD17)64a33ecXNetworking: wire UDP port change callbacks and UTF-16 security queries (ashrafsdrop)4f54c47HLE: complete XPackage progress callback unregistration (EatCodeSleep2)32eb934docs: explain Windows shader-test validator prerequisite (Omeya Sawant)97c8783GPU: keep A8_UNORM out of the R8 typeless family (AnoHunted)2b13ae4HLE clears the result of blocked address lookups (BaggyALPHA)a7636ddHLE: allow an explicit maximum title window size (fluffyflattershy-afk)6f36cdfGPU: interpolate normalized rectangle vertex attributes (Luiz Otavio Mello de Campos)e9cb14arun: stop with a clear message when the title's own DLLs are missing (AgneyaK)9145d9dHLE: show title windows through a stand-in that always reads its messages (Vax)532cb7cDiagnostics: VICTORY_POKE writes title bytes twice a second (Marvis)224e786GPU tests: the frame pacing test tolerates a busy host (Marvis)70564aeREADME: status of 2026-11-24 (Marvis)b8dbcbaXGameSave: a stray or unreadable version folder never costs the save (moe-miau)Conflicting, not included (64)
f5cb5ffCapture startup breakpoint diagnosticsa3acc87Check the required startup archive before executing Series 1.0.2.1691236dGPU: align appended input-element offsets like D3D12f821cb9GPU: pipelines of different names load from the library at the same time0b35b7fShaders and GPU: FidelityFX on host and console paths, 64-bit image atomics, the BVH intersea7fc47aShaders: a phi edge is live only if a lane can take it to a read13091f6Shaders: pixel and mesh I/O with reused registers, 16-bit packing and signature rows27c3dc9Shaders and GPU: title memory at raw addresses through a page table8af0472Shaders: lane masks spilled and combined in compute programs4051149GPU: null views for title buffer views that are empty or run past their copy328eec1Shader tests: instruction semantics and control flow against the console's float mode75677cbShaders: buffer sizes read from descriptors, and size-only waterfall loops0f63757GPU: root views of programs that use title memory go through the page table77053a0Shaders: accuracy fixes for discards, f16 rounding, denormals, med3 and signed zeros4f57f46Shaders: cube samples with gradients take their level from the gradientsc75fdbaGPU: views the shaders pick from the heap, and one change journal for title memoryd71c388GPU and shaders: bounded root views, and a guard against texture descriptors read as buffers683ad7aGPU and shaders: rectangle lists through a geometry shader, table constants read in place7389303Game formats: effects, techniques and passes of the shader database; shader-info --effects286e33fGame formats: the shader pack; shader-info lists packsc47b529Shader warm-up (translate --cache), a cache keyed by the translator, pipeline queue fixes819f622translate: progress counts finished shaders, not ones handed oute0034c2Shaders: register-relative moves reach only what their index can13bbd6fGPU: one host texture per texture memory, and writable twins for depth textures86a5ed6GPU: views off their buffer's elements get their own copy; heap records copied as bytes are6d021feGPU: world frame costbacb06aGPU: a heap slot holds its view's own copy9c58a1cPipeline pre-build from the shader pack (translate --cache --pipelines); mesh pipelines load7000573Diagnostics: title memory peeks, slot states, small buffers and 1D/3D read-back in listed fr🤖 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 ad40d81e34@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 04:06 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.257bc31ℹ️ 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 04:06 UTC · original
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
@deepdev237 on GitHub · 2026-11-25 04:37 UTC · original · edited 2026-11-25 05:11 UTC
Full test environment
x86_64-pc-windows-msvccargo build --profile diag -p victory --features diagnostics(diag= release + debug info)main310c6eb6c16822ab95076aad61fce19bba86bb98levels.rpf,audio.rpf,pack/story000/story000.rpf,navmeshes.rpfand sixdata/ttdb/*.ttpf), so failures that depend on those bytes are not emulator bugs.First Windows + GPU test run of this PR: everything passes.
Head
257bc31, merged alone ontomain310c6eb(merge commit, no other PRs). Command:cargo test --workspace --profile diag --no-fail-fast, run on real hardware, not WARP: AMD Radeon RX 9060 XT (RDNA4, driver 32.0.32015.7029), Ryzen 9 5950X, 24 GB RAM, Windows 11 Pro build 26300, rustc 1.98.1,x86_64-pc-windows-msvc.Build: clean (
Finished diag profile in 2m 02swith-j 4).victory(unit)victorytests/census.rsvictory-corevictory-formatsvictory-gamevictory-gpu(includes the tests that need a real D3D12 device)victory-hlevictory-loader(unit +no_dll_planting,load_probe,title_dlls)victory-pevictory-pipelinevictory-shader(includes the hardware shader tests, 40 s)xtaskThat includes the four
victory-peimage::teststhat parse the test binary, which you could only see fail on Linux (ELF). On Windows they pass, and so does the new descriptor wraparound test from c1c3281/072fde0 with your lifted cap.Not done yet: a game run with this PR. My integration build (
310c6ebplus about 120 open PRs) conflicts with it in several places, so I have not run the title with it. I'll add the result here if I do.Exact state tested
257bc31e64aafd1a79a5d0527d36104075935288, merged withgit merge --no-ffontomain310c6eb6c16822ab95076aad61fce19bba86bb98in a clean worktree (116 commits ahead ofmainafter the merge).cargo test -j 4 --workspace --profile diag --no-run, thencargo test -j 4 --workspace --profile diag --no-fail-fast. 693 individual test results (682 passed + 11 ignored). The build printed no warnings.victory-gpu's 158 here, against 186 on my integration branch, is because the integration carries about 120 other PRs with tests of their own.pr653-build.logandpr653-test.login https://gist.github.com/deepdev237/785e05b02d0dcece7aac1303f7fe4ba8@JRamos1993 on GitHub · 2026-11-25 05:27 UTC · original
Offline check on the retail shader pack: this PR changes no emitted shader.
Setup: RTX 5090, Windows 11.
victory translate --validate --listover the title's full shader pack (26,084 programs), formain310c6eband for this head257bc31. I added a local DXIL hash on each validated line to compare the output byte for byte. Two runs of the same build give identical hashes, and the hash does catch real changes (2119b0e→310c6ebchanges the DXIL of 8,514 programs).main310c6eb257bc31The batch tool's summary counters (IR instructions, structured and guarded instructions, descriptors, I/O) are identical too. So for this title, the 23 upstream shader commits here neither fix nor break anything in translation. Runtime-only paths (pipeline creation, samplers on the host, HLE) are not covered by this check.
AI use: Claude Code with Claude Opus 5.5 ran both builds over the pack 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.