Upstream: the 113 fixes merged since ffe310e that apply to the fork #653

Open
github-bot wants to merge 115 commits from github-bot/gh-653 into main AGit
Owner

@⁠coderanonymus on GitHub · 2026-11-25 04:06 UTC · original
coderanonymus:upstream-clean-fixes → main · +8382 −516 · 85 files · 115 commits · open

Stacked 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's v_cvt_off_f32_i4 arm sits next to the fork's v_cvt_f32_f64 arm in lower.rs, and both are kept. Clippy passes with and without --all-features on 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

  • 113 upstream commits, cherry-picked in order. Each keeps its author and has a (cherry picked from commit …) line.
    • By area: HLE 33, shaders 23, GPU 20, the victory app 10, formats 8, README 6, loader 5, PE 3, core 2, docs/xtask/pipeline 1 each.
  • One commit on top, "Picks from upstream: fit them to the fork".
    • descriptor/host.rs: the fork caps the dynamic-slot search at the ring's length. That cap cut off exactly the n - 1 slots that upstream's wraparound fix (c1c3281) adds, so the fix did nothing here and its new test (072fde0) would fail. The cap is lifted. The enough gate stays.
    • host.rs: after a4974e4, VICTORY_GPU_TIMING=0 means off, but the fork's late_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 way timing() does.
    • Four comments from the picks named the game. They now say "the title", as in 4e17478.

Left out

  • 64 commits that conflict, listed below. Most are upstream's versions of this fork's own work (page tables, FidelityFX, view copies, the shader pack), plus fixes inside code the fork rewrote.
  • Dropped although they apply:
    • 146dfef (opcode name resolved at decode): the fork's ir.rs builds gfx10::Instruction literals, which the new private field breaks.
    • 645391b (normalized buffer ends): its test needs a helper from c430b1d, which conflicts.
    • 628b95d (SHADER_HEAPS held across mirror): it removes shader_slot, which the fork's late-texture path in descriptor.rs still uses. It needs a hand port.
    • 0de9efc and 514927d (clzero loops, rdpru, their tests): the fork's console_insn handles those instructions before emulate_amd_only runs, so upstream's emulation would never run. Its new asm test would fail on Intel CPUs: the fork's loop emulation leaves rax at 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:

  • be824d9 (pipeline library atomic writes) protects only the early list on this fork. The fork's mapped library save still writes a fixed host-pipelines.tmp outside 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:

Verification

  • cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with --all-features, for x86_64-pc-windows-msvc (cross-checked from Linux): clean.
  • Tests on Linux:
    • victory-shader 186, formats 39, core 13, pipeline 7, game 3, xtask 6: all pass.
    • victory-pe: 32 pass. Its 4 image::tests that parse the test binary fail on Linux only, because that binary is ELF there. They fail the same way on main.
  • Not run: the Windows tests, the GPU tests, or the game. This PR's CI will be the first Windows test run.

No game data used.

Included (113, upstream sha)
  • ba42db6 xma: start the frame after a continuation at the next packet that has frames (tedin7)
  • d01b170 XAsync: end the call that finished, not whatever call the block holds now (Duff)
  • b1bdd89 Census: report directory traversal failures (Bloxive)
  • b9ff219 XTaskQueue: terminating a queue cancels its delayed callbacks too (Duff)
  • 01ae55a Files: a title run by its file name alone gets its own folder as G: (Duff)
  • 4eb0898 XMA: build the inverse transform's rotations once per subframe size (TG0000)
  • d4d1822 XMA: noise tests, and end a frame at its data instead of looping forever (AnoHunted)
  • 3c7d845 Kernel: a title image's file name that fits clears the last error (Maraco91)
  • 985d8d4 Audio: an XMA loop's skip is of its first frame, not of its last (Maraco91)
  • 11ca3ce Media: a share is refused however it is spelled (Maraco91)
  • e57e76a fix(pe): validate section raw data bounds (Diego)
  • acdcc41 Loader: suspend a thread before reading its TEB; skip bad dump times (Manuel Pérez)
  • 5cff000 XAsync: a new block where a result was left behind begins a call (Maraco91)
  • 1054fe8 Audio: an XMA read block past the ring's end wraps instead of filling forever (AnoHunted)
  • 92f2c60 GPU: every object answers for IUnknown (Maraco91)
  • e3bef08 XStore: a store id without an installed package is an invalid argument (marquezini)
  • c6959ac HLE: load a host DLL outside the module cache's lock (Duff)
  • 93a24b7 fix(formats): reject overlapping texture depth slices (Pedro Fortunato)
  • d549b63 HLE: a '>' in a quoted manifest attribute does not end its tag (Duff)
  • e6ebec9 Shader info: show stage I/O even when instruction decoding fails (FIocker)
  • 936e5e5 XGameUi: a text entry's limit is the console's (marquezini)
  • c000581 Kernel: GetModuleFileName of a title image into a null buffer (marquezini)
  • 7d04943 Shaders: a signed 64-bit operand sign-extends its 32-bit literal (Duff)
  • e6fe8ec GPU: fix CreateSamplerX mip-none base level, LOD range, bias clamp, and invalid enum values (nathanbzrr)
  • 2c22e2b XStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot (nathanbzrr)
  • a3f89ed Census: deduplicate PE imports without hint (nathanbzrr)
  • 75fe6c0 HLE: require two hex digits in percent escapes (Enzo Souza Duarte)
  • b956320 GPU: handle depth/stencil copy footprints (broccolize)
  • 65062e1 xmem: report allocations the host refuses (LF2000 Builder)
  • 7a5d85e Audio: an XMA write block past the ring's end wraps before the first write (AnoHunted)
  • b796c8b GPU: clear DXGI outputs on out-of-range enumeration (broccolize)
  • 81b81df Shaders: reuse lane guards for unchanged EXEC within a block (Devin)
  • e950e81 xtask: count \x escapes and 0x hex arrays as encoded runs in the policy check (LF2000 Builder)
  • a4974e4 GPU: VICTORY_* switches set to 0 are off (KoLolX3)
  • 6325df7 Shaders: print only the operands an instruction has in SP3 text (LF2000 Builder)
  • 988fd9a translate: refuse a VICTORY_EMIT_DUMP directory inside the repo (LF2000 Builder)
  • 350f91c Formats: reject multisampled linear texture layouts (AlanQiang0418)
  • 43e2ca9 Show on-disk file size in victory inspect (Thomas Askharoun)
  • e34cb53 GPU: keep finite (min_lod, min_lod) in CreateSamplerX when mip filter is none (nathanbzrr)
  • efe102e Handle unsupported display deferrals in the HLE test (EatCodeSleep2)
  • 7216ab7 HLE: implement the RPC runtime's GUID calls (Nixitov)
  • a32eacd fix(pipeline): retry collisions when creating cache staging files (DocBlack89)
  • aaacc2d docs(architecture): list BCPack as implemented in victory-formats (给伊莉雅补魔)
  • 64b80c3 Formats: share immutable texture swizzle tables (TG0000)
  • 121412b loader(crash): verify unwind against known caller frames when RtlCaptureStackBackTrace returns empty (给伊莉雅补魔)
  • 3e98bd7 GPU: seek directly to private data on final release (TG0000)
  • 6d174ae List successfully emitted shaders in offline translation scans (Aws)
  • c1c3281 GPU: extend dynamic descriptor wraparound scan to prevent false exhaustion (pushkarreddyy)
  • 3d71ad1 Shaders: s_atc_probe's immediate is not a register (CaravelaLabs)
  • 072fde0 Exercise a free run straddling the cursor on the actual host heap (swarm)
  • 131944d PE: add synthetic unit tests for implib.rs and layout.rs (给伊莉雅补魔)
  • 0be58e6 GPU: add synthetic unit tests for query.rs and signature.rs (给伊莉雅补魔)
  • d0dd9fc fix(pe): keep every name for a shared export ordinal (quaternion)
  • 1aac20a fix(loader): stage prepared images in per-writer files (quaternion)
  • ca362a4 fix(hle): read manifest fields past inline XML comments (quaternion)
  • 71e8866 fix(hle): honor the requested executable on relaunch (quaternion)
  • eb8067f fix(hle): keep apostrophes intact when splitting relaunch args (quaternion)
  • 52f0a09 policy: resolve a .. in the not-yet-existing part of a path (nino-exe)
  • fd44561 Config: ignore an empty VICTORY_CONFIG (Enzo Souza Duarte)
  • 60d2cf9 Loader: a clwb in the last bytes of a page is emulated instead of faulting (BastienRdz)
  • 246ecea HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture (Luiz Neves)
  • 45ed8e3 Shaders: hardware test for v_cvt_f16_u16 and v_cvt_f16_i16 (Luiz Neves)
  • 8d67fa5 Shaders: keep the v_cvt_f16_u16/i16 test to integers f16 holds exactly (Luiz Neves)
  • 534e1dd CLI: add AVX2 pre-flight CPU check before executing titles (David Palacios)
  • 03a6f22 XMA: gather frame payloads one byte at a time (heromike405-arch)
  • 259ba31 Shaders: negative-zero ordering test for the f16 min/max forms (Luiz Neves)
  • 8610ffb Shaders: hardware test for the integer v_min3/v_max3/v_med3 (Luiz Neves)
  • e3c9dd0 GPU: guard zero/overflowing stride in expand_rects and add primitive.rs unit tests (给伊莉雅补魔)
  • ef0c3e9 GPU: validate null args in create_deserializer to prevent d3d12 AV and add root.rs tests (给伊莉雅补魔)
  • 41b2472 Shaders: name the pick function type in the integer min3/max3/med3 test (Luiz Neves)
  • 42961e8 GPU: log the TDR settings, and warn when a GPU hang would freeze the PC (bvtterbroot)
  • a7847a5 HLE: constrain the title before suspending it (Giuseppe Rainone)
  • 098a26a README: how to install Rust on Windows (#1087) (Eduardo Bertozzi)
  • 44ce067 XAsync: canceling a call that already completed leaves it alone, as documented (BastienRdz)
  • 47c00d5 GPU diagnostics: create missing capture output directories (Blitz Studios)
  • 142ec8d Deduplicate image paths in victory census (DoubleD17)
  • 344704e Shaders: lower v_mul_hi_u32_u24 and v_mul_hi_i32_i24 (Rareuncommon)
  • 643fc6d HLE: avoid misaligned f32 output slice in XApu (divyeshganta)
  • 64a33ec XNetworking: wire UDP port change callbacks and UTF-16 security queries (ashrafsdrop)
  • 4f54c47 HLE: complete XPackage progress callback unregistration (EatCodeSleep2)
  • 1ed26e5 Shaders: fold conditional branches to their fallthrough (EatCodeSleep2)
  • 32eb934 docs: explain Windows shader-test validator prerequisite (Omeya Sawant)
  • 5c44562 Shaders: compress replaced phi chains in remove_trivial_phis (fuzeofficial)
  • 97c8783 GPU: keep A8_UNORM out of the R8 typeless family (AnoHunted)
  • 78c1267 Shaders: lower v_cvt_off_f32_i4 (AnoHunted)
  • e45bacd Shaders: preserve mip point filtering in anisotropic static samplers (mgunes1311-lab)
  • 4e155a3 Shaders: do not parse VS inputs when reading mesh shader stage I/O (mgunes1311-lab)
  • 2b13ae4 HLE clears the result of blocked address lookups (BaggyALPHA)
  • 23fc8a5 Shaders: gate anisotropic point-mip host filters (mgunes1311-lab)
  • 7dfa86f GPU: honor anisotropic point-mip device support (mgunes1311-lab)
  • c3a04e2 Shaders: lower scalar quadmask instructions (Luiz Otavio Mello de Campos)
  • e3fe5bf Test scalar quadmask lowering on D3D12 (Luiz Otavio Mello de Campos)
  • a7636dd HLE: allow an explicit maximum title window size (fluffyflattershy-afk)
  • 6f36cdf GPU: interpolate normalized rectangle vertex attributes (Luiz Otavio Mello de Campos)
  • be3202d Shaders: fold empty loop latches containing only dead phis (Tex)
  • 711d651 Shaders: precompute MD5 round constants and avoid per-block Vec in md5_block (Tex)
  • 2286e03 Shaders: key immediate sampler slots by descriptor words and comparison mode (给伊莉雅补魔)
  • 9ccb83c HLE: guard dialog commands before initialization (Calvix2k)
  • 274f698 Loader: guard clwb_loop shortcut against u64 overflow and wraparound (Tex)
  • f078008 Formats: test texture layouts against addrlib's own sizes and addresses (Vyacheslav Venglovsky)
  • bbdc3ca GPU: fences answer for ID3D12Fence1 as documented (BastienRdz)
  • 3f6910a CLI: propagate the title entry point exit status (Aws)
  • e9cb14a run: stop with a clear message when the title's own DLLs are missing (AgneyaK)
  • be824d9 GPU: serialize pipeline library atomic writes with unique temp files (HailLucifer666)
  • eb7cc2d flush a kept save blob that had to be copied (imjustprism)
  • 9145d9d HLE: show title windows through a stand-in that always reads its messages (Vax)
  • 6493dd9 Shader tests: require a device readback in every waterfall test (zhaibingye)
  • 8d3a025 gpu(list): log initial pipeline bound on reset/reset_x for parity with create_list (给伊莉雅补魔)
  • 40f30be Shaders: GFX10 FLAT offsets ignore bit 11 (davutsimsekk)
  • 532cb7c Diagnostics: VICTORY_POKE writes title bytes twice a second (Marvis)
  • 224e786 GPU tests: the frame pacing test tolerates a busy host (Marvis)
  • 70564ae README: status of 2026-11-24 (Marvis)
  • b8dbcba XGameSave: a stray or unreadable version folder never costs the save (moe-miau)
Conflicting, not included (64)
  • f5cb5ff Capture startup breakpoint diagnostics
  • a3acc87 Check the required startup archive before executing Series 1.0.2.1
  • e5b7159 Shaders: walk a lane-mask diagram once in vars and given
  • 810f442 GPU: a frame wait takes its tick before it sleeps
  • 64484b4 Input: apply VICTORY_KEYS to a connected host pad too
  • 7f00a62 Crash reports: name the host's CPU and Windows build
  • b58d198 GPU: copy into title memory without asking for its region first
  • 3f5eff5 input: with no device, previous and next readings walk every device in time order
  • 705a2f6 Inline uniform micro-tile runs in texture copies
  • 691236d GPU: align appended input-element offsets like D3D12
  • 12eba49 Shaders: fix whole-wave EXEC inline constant sign-extension and prefix lane validation
  • 6526965 GPU: find a list in the DRED breadcrumbs by its name, not only its pointer
  • 8a358e3 GPU: find the lists in the DRED breadcrumbs by position when the debug layer hides them
  • 52d528b GPU: match a breadcrumb node's name followed by the debug layer's note; drop the position fa
  • 882664e GPU: keep the frame wait's tick for the diagnostics log
  • c430b1d Shaders: tbuffer_load_format_d16 loads pack two 16-bit channels per VGPR
  • f821cb9 GPU: pipelines of different names load from the library at the same time
  • f47ebd8 feat(shader): lower buffer cache invalidations as no-ops
  • f177aae Shaders: cap BDD memo table and bail out early on overflow
  • 5d6889e Shaders: lower v_sad_u8, v_sad_hi_u8, v_sad_u16, v_sad_u32 and v_msad_u8
  • 67c4f53 victory-shader: resolve Structured::other and constant masks in v_cndmask_b32
  • 59035de GPU: grow per-list upload scratch on demand
  • 100de0e Shader tests: a skipped device says why it was skipped
  • e52777a GPU list: bind initial pipeline state in create_list and create_list_x
  • 1e923ad Shaders: set WAVE_OPS feature flag when lane_bit emits waveGetLaneIndex
  • 4ab20fc GPU: the indirect budget is charged in record order and no longer wraps
  • f096774 GPU: throttle failed swap-chain creation and resize
  • 4fc9d70 GPU: keep Staging::detile inside the staging buffer and harden committed()
  • c0228d9 victory-shader: mask mesh primitive vertex indices to 9 bits (drop edge flags)
  • d09f3aa DirectStorage: read a page list naming page 0 again before failing its request
  • 0b35b7f Shaders and GPU: FidelityFX on host and console paths, 64-bit image atomics, the BVH interse
  • a7fc47a Shaders: a phi edge is live only if a lane can take it to a read
  • 13091f6 Shaders: pixel and mesh I/O with reused registers, 16-bit packing and signature rows
  • 27c3dc9 Shaders and GPU: title memory at raw addresses through a page table
  • 8af0472 Shaders: lane masks spilled and combined in compute programs
  • 4051149 GPU: null views for title buffer views that are empty or run past their copy
  • 328eec1 Shader tests: instruction semantics and control flow against the console's float mode
  • 75677cb Shaders: buffer sizes read from descriptors, and size-only waterfall loops
  • 0f63757 GPU: root views of programs that use title memory go through the page table
  • 77053a0 Shaders: accuracy fixes for discards, f16 rounding, denormals, med3 and signed zeros
  • 4f57f46 Shaders: cube samples with gradients take their level from the gradients
  • c75fdba GPU: views the shaders pick from the heap, and one change journal for title memory
  • d71c388 GPU and shaders: bounded root views, and a guard against texture descriptors read as buffers
  • 683ad7a GPU and shaders: rectangle lists through a geometry shader, table constants read in place
  • 7389303 Game formats: effects, techniques and passes of the shader database; shader-info --effects
  • 286e33f Game formats: the shader pack; shader-info lists packs
  • c47b529 Shader warm-up (translate --cache), a cache keyed by the translator, pipeline queue fixes
  • 819f622 translate: progress counts finished shaders, not ones handed out
  • e0034c2 Shaders: register-relative moves reach only what their index can
  • 13bbd6f GPU: one host texture per texture memory, and writable twins for depth textures
  • 86a5ed6 GPU: views off their buffer's elements get their own copy; heap records copied as bytes are
  • 6d021fe GPU: world frame cost
  • bacb06a GPU: a heap slot holds its view's own copy
  • 9c58a1c Pipeline pre-build from the shader pack (translate --cache --pipelines); mesh pipelines load
  • 7000573 Diagnostics: title memory peeks, slot states, small buffers and 1D/3D read-back in listed fr
  • 13185f5 GPU: GetDeviceRemovedReason reports the host device's state instead of E_NOTIMPL
  • e29391f Shaders: honor op_sel, omod and clamp on v_interp_p2_f16
  • 0601955 Shaders: a helper lane's v_readfirstlane reads its own value
  • ed0dbfd GPU: copy title writes under ranges a submission's shaders write
  • 4e60ea3 victory-gpu: drop an indirect call before its clamp, not after
  • 42363ab Tests: hardware-only shader checks skip on a machine without a GPU
  • ccfb029 Tests: a machine with no GPU has no hardware adapter to check shaders on
  • cd94d35 GPU: shaders mark the pages they write through views; copy-backs compare only those
  • 940d32f GPU: a marked page's copy-back does not save the page for its own copy

🤖 Generated with Claude Code

**@⁠coderanonymus** on GitHub · 2026-11-25 04:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/653) `coderanonymus:upstream-clean-fixes` → `main` · +8382 −516 · 85 files · 115 commits · open Stacked 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's `v_cvt_off_f32_i4` arm sits next to the fork's `v_cvt_f32_f64` arm in `lower.rs`, and both are kept. Clippy passes with and without `--all-features` on 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 - **113 upstream commits, cherry-picked in order.** Each keeps its author and has a `(cherry picked from commit …)` line. - By area: HLE 33, shaders 23, GPU 20, the `victory` app 10, formats 8, README 6, loader 5, PE 3, core 2, docs/xtask/pipeline 1 each. - **One commit on top, "Picks from upstream: fit them to the fork".** - `descriptor/host.rs`: the fork caps the dynamic-slot search at the ring's length. That cap cut off exactly the `n - 1` slots that upstream's wraparound fix (c1c3281) adds, so the fix did nothing here and its new test (072fde0) would fail. The cap is lifted. The `enough` gate stays. - `host.rs`: after a4974e4, `VICTORY_GPU_TIMING=0` means off, but the fork's `late_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 way `timing()` does. - Four comments from the picks named the game. They now say "the title", as in 4e17478. ## Left out - **64 commits that conflict**, listed below. Most are upstream's versions of this fork's own work (page tables, FidelityFX, view copies, the shader pack), plus fixes inside code the fork rewrote. - **Dropped although they apply:** - 146dfef (opcode name resolved at decode): the fork's `ir.rs` builds `gfx10::Instruction` literals, which the new private field breaks. - 645391b (normalized buffer ends): its test needs a helper from c430b1d, which conflicts. - 628b95d (`SHADER_HEAPS` held across mirror): it removes `shader_slot`, which the fork's late-texture path in `descriptor.rs` still uses. It needs a hand port. - 0de9efc and 514927d (clzero loops, rdpru, their tests): the fork's `console_insn` handles those instructions before `emulate_amd_only` runs, so upstream's emulation would never run. Its new asm test would fail on Intel CPUs: the fork's loop emulation leaves `rax` at 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: - be824d9 (pipeline library atomic writes) protects only the early list on this fork. The fork's mapped library save still writes a fixed `host-pipelines.tmp` outside 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: - #634 (fd44561) - #164 (be824d9) - #251 (a7636dd) - #276 (2286e03) - #278 (8610ffb) - #324 (b9ff219) - #331 (936e5e5) - #586 (acdcc41) ## Verification - `cargo clippy --workspace --all-targets --locked -- -D warnings`, and the same with `--all-features`, for `x86_64-pc-windows-msvc` (cross-checked from Linux): clean. - Tests on Linux: - victory-shader 186, formats 39, core 13, pipeline 7, game 3, xtask 6: all pass. - victory-pe: 32 pass. Its 4 `image::tests` that parse the test binary fail on Linux only, because that binary is ELF there. They fail the same way on `main`. - **Not run:** the Windows tests, the GPU tests, or the game. This PR's CI will be the first Windows test run. No game data used. <details><summary>Included (113, upstream sha)</summary> - ba42db6 xma: start the frame after a continuation at the next packet that has frames (tedin7) - d01b170 XAsync: end the call that finished, not whatever call the block holds now (Duff) - b1bdd89 Census: report directory traversal failures (Bloxive) - b9ff219 XTaskQueue: terminating a queue cancels its delayed callbacks too (Duff) - 01ae55a Files: a title run by its file name alone gets its own folder as G: (Duff) - 4eb0898 XMA: build the inverse transform's rotations once per subframe size (TG0000) - d4d1822 XMA: noise tests, and end a frame at its data instead of looping forever (AnoHunted) - 3c7d845 Kernel: a title image's file name that fits clears the last error (Maraco91) - 985d8d4 Audio: an XMA loop's skip is of its first frame, not of its last (Maraco91) - 11ca3ce Media: a share is refused however it is spelled (Maraco91) - e57e76a fix(pe): validate section raw data bounds (Diego) - acdcc41 Loader: suspend a thread before reading its TEB; skip bad dump times (Manuel Pérez) - 5cff000 XAsync: a new block where a result was left behind begins a call (Maraco91) - 1054fe8 Audio: an XMA read block past the ring's end wraps instead of filling forever (AnoHunted) - 92f2c60 GPU: every object answers for IUnknown (Maraco91) - e3bef08 XStore: a store id without an installed package is an invalid argument (marquezini) - c6959ac HLE: load a host DLL outside the module cache's lock (Duff) - 93a24b7 fix(formats): reject overlapping texture depth slices (Pedro Fortunato) - d549b63 HLE: a '>' in a quoted manifest attribute does not end its tag (Duff) - e6ebec9 Shader info: show stage I/O even when instruction decoding fails (FIocker) - 936e5e5 XGameUi: a text entry's limit is the console's (marquezini) - c000581 Kernel: GetModuleFileName of a title image into a null buffer (marquezini) - 7d04943 Shaders: a signed 64-bit operand sign-extends its 32-bit literal (Duff) - e6fe8ec GPU: fix CreateSamplerX mip-none base level, LOD range, bias clamp, and invalid enum values (nathanbzrr) - 2c22e2b XStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot (nathanbzrr) - a3f89ed Census: deduplicate PE imports without hint (nathanbzrr) - 75fe6c0 HLE: require two hex digits in percent escapes (Enzo Souza Duarte) - b956320 GPU: handle depth/stencil copy footprints (broccolize) - 65062e1 xmem: report allocations the host refuses (LF2000 Builder) - 7a5d85e Audio: an XMA write block past the ring's end wraps before the first write (AnoHunted) - b796c8b GPU: clear DXGI outputs on out-of-range enumeration (broccolize) - 81b81df Shaders: reuse lane guards for unchanged EXEC within a block (Devin) - e950e81 xtask: count \x escapes and 0x hex arrays as encoded runs in the policy check (LF2000 Builder) - a4974e4 GPU: VICTORY_* switches set to 0 are off (KoLolX3) - 6325df7 Shaders: print only the operands an instruction has in SP3 text (LF2000 Builder) - 988fd9a translate: refuse a VICTORY_EMIT_DUMP directory inside the repo (LF2000 Builder) - 350f91c Formats: reject multisampled linear texture layouts (AlanQiang0418) - 43e2ca9 Show on-disk file size in victory inspect (Thomas Askharoun) - e34cb53 GPU: keep finite (min_lod, min_lod) in CreateSamplerX when mip filter is none (nathanbzrr) - efe102e Handle unsupported display deferrals in the HLE test (EatCodeSleep2) - 7216ab7 HLE: implement the RPC runtime's GUID calls (Nixitov) - a32eacd fix(pipeline): retry collisions when creating cache staging files (DocBlack89) - aaacc2d docs(architecture): list BCPack as implemented in victory-formats (给伊莉雅补魔) - 64b80c3 Formats: share immutable texture swizzle tables (TG0000) - 121412b loader(crash): verify unwind against known caller frames when RtlCaptureStackBackTrace returns empty (给伊莉雅补魔) - 3e98bd7 GPU: seek directly to private data on final release (TG0000) - 6d174ae List successfully emitted shaders in offline translation scans (Aws) - c1c3281 GPU: extend dynamic descriptor wraparound scan to prevent false exhaustion (pushkarreddyy) - 3d71ad1 Shaders: s_atc_probe's immediate is not a register (CaravelaLabs) - 072fde0 Exercise a free run straddling the cursor on the actual host heap (swarm) - 131944d PE: add synthetic unit tests for implib.rs and layout.rs (给伊莉雅补魔) - 0be58e6 GPU: add synthetic unit tests for query.rs and signature.rs (给伊莉雅补魔) - d0dd9fc fix(pe): keep every name for a shared export ordinal (quaternion) - 1aac20a fix(loader): stage prepared images in per-writer files (quaternion) - ca362a4 fix(hle): read manifest fields past inline XML comments (quaternion) - 71e8866 fix(hle): honor the requested executable on relaunch (quaternion) - eb8067f fix(hle): keep apostrophes intact when splitting relaunch args (quaternion) - 52f0a09 policy: resolve a `..` in the not-yet-existing part of a path (nino-exe) - fd44561 Config: ignore an empty VICTORY_CONFIG (Enzo Souza Duarte) - 60d2cf9 Loader: a clwb in the last bytes of a page is emulated instead of faulting (BastienRdz) - 246ecea HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture (Luiz Neves) - 45ed8e3 Shaders: hardware test for v_cvt_f16_u16 and v_cvt_f16_i16 (Luiz Neves) - 8d67fa5 Shaders: keep the v_cvt_f16_u16/i16 test to integers f16 holds exactly (Luiz Neves) - 534e1dd CLI: add AVX2 pre-flight CPU check before executing titles (David Palacios) - 03a6f22 XMA: gather frame payloads one byte at a time (heromike405-arch) - 259ba31 Shaders: negative-zero ordering test for the f16 min/max forms (Luiz Neves) - 8610ffb Shaders: hardware test for the integer v_min3/v_max3/v_med3 (Luiz Neves) - e3c9dd0 GPU: guard zero/overflowing stride in expand_rects and add primitive.rs unit tests (给伊莉雅补魔) - ef0c3e9 GPU: validate null args in create_deserializer to prevent d3d12 AV and add root.rs tests (给伊莉雅补魔) - 41b2472 Shaders: name the pick function type in the integer min3/max3/med3 test (Luiz Neves) - 42961e8 GPU: log the TDR settings, and warn when a GPU hang would freeze the PC (bvtterbroot) - a7847a5 HLE: constrain the title before suspending it (Giuseppe Rainone) - 098a26a README: how to install Rust on Windows (#1087) (Eduardo Bertozzi) - 44ce067 XAsync: canceling a call that already completed leaves it alone, as documented (BastienRdz) - 47c00d5 GPU diagnostics: create missing capture output directories (Blitz Studios) - 142ec8d Deduplicate image paths in victory census (DoubleD17) - 344704e Shaders: lower v_mul_hi_u32_u24 and v_mul_hi_i32_i24 (Rareuncommon) - 643fc6d HLE: avoid misaligned f32 output slice in XApu (divyeshganta) - 64a33ec XNetworking: wire UDP port change callbacks and UTF-16 security queries (ashrafsdrop) - 4f54c47 HLE: complete XPackage progress callback unregistration (EatCodeSleep2) - 1ed26e5 Shaders: fold conditional branches to their fallthrough (EatCodeSleep2) - 32eb934 docs: explain Windows shader-test validator prerequisite (Omeya Sawant) - 5c44562 Shaders: compress replaced phi chains in remove_trivial_phis (fuzeofficial) - 97c8783 GPU: keep A8_UNORM out of the R8 typeless family (AnoHunted) - 78c1267 Shaders: lower v_cvt_off_f32_i4 (AnoHunted) - e45bacd Shaders: preserve mip point filtering in anisotropic static samplers (mgunes1311-lab) - 4e155a3 Shaders: do not parse VS inputs when reading mesh shader stage I/O (mgunes1311-lab) - 2b13ae4 HLE clears the result of blocked address lookups (BaggyALPHA) - 23fc8a5 Shaders: gate anisotropic point-mip host filters (mgunes1311-lab) - 7dfa86f GPU: honor anisotropic point-mip device support (mgunes1311-lab) - c3a04e2 Shaders: lower scalar quadmask instructions (Luiz Otavio Mello de Campos) - e3fe5bf Test scalar quadmask lowering on D3D12 (Luiz Otavio Mello de Campos) - a7636dd HLE: allow an explicit maximum title window size (fluffyflattershy-afk) - 6f36cdf GPU: interpolate normalized rectangle vertex attributes (Luiz Otavio Mello de Campos) - be3202d Shaders: fold empty loop latches containing only dead phis (Tex) - 711d651 Shaders: precompute MD5 round constants and avoid per-block Vec in md5_block (Tex) - 2286e03 Shaders: key immediate sampler slots by descriptor words and comparison mode (给伊莉雅补魔) - 9ccb83c HLE: guard dialog commands before initialization (Calvix2k) - 274f698 Loader: guard clwb_loop shortcut against u64 overflow and wraparound (Tex) - f078008 Formats: test texture layouts against addrlib's own sizes and addresses (Vyacheslav Venglovsky) - bbdc3ca GPU: fences answer for ID3D12Fence1 as documented (BastienRdz) - 3f6910a CLI: propagate the title entry point exit status (Aws) - e9cb14a run: stop with a clear message when the title's own DLLs are missing (AgneyaK) - be824d9 GPU: serialize pipeline library atomic writes with unique temp files (HailLucifer666) - eb7cc2d flush a kept save blob that had to be copied (imjustprism) - 9145d9d HLE: show title windows through a stand-in that always reads its messages (Vax) - 6493dd9 Shader tests: require a device readback in every waterfall test (zhaibingye) - 8d3a025 gpu(list): log initial pipeline bound on reset/reset_x for parity with create_list (给伊莉雅补魔) - 40f30be Shaders: GFX10 FLAT offsets ignore bit 11 (davutsimsekk) - 532cb7c Diagnostics: VICTORY_POKE writes title bytes twice a second (Marvis) - 224e786 GPU tests: the frame pacing test tolerates a busy host (Marvis) - 70564ae README: status of 2026-11-24 (Marvis) - b8dbcba XGameSave: a stray or unreadable version folder never costs the save (moe-miau) </details> <details><summary>Conflicting, not included (64)</summary> - f5cb5ff Capture startup breakpoint diagnostics - a3acc87 Check the required startup archive before executing Series 1.0.2.1 - e5b7159 Shaders: walk a lane-mask diagram once in vars and given - 810f442 GPU: a frame wait takes its tick before it sleeps - 64484b4 Input: apply VICTORY_KEYS to a connected host pad too - 7f00a62 Crash reports: name the host's CPU and Windows build - b58d198 GPU: copy into title memory without asking for its region first - 3f5eff5 input: with no device, previous and next readings walk every device in time order - 705a2f6 Inline uniform micro-tile runs in texture copies - 691236d GPU: align appended input-element offsets like D3D12 - 12eba49 Shaders: fix whole-wave EXEC inline constant sign-extension and prefix lane validation - 6526965 GPU: find a list in the DRED breadcrumbs by its name, not only its pointer - 8a358e3 GPU: find the lists in the DRED breadcrumbs by position when the debug layer hides them - 52d528b GPU: match a breadcrumb node's name followed by the debug layer's note; drop the position fa - 882664e GPU: keep the frame wait's tick for the diagnostics log - c430b1d Shaders: tbuffer_load_format_d16 loads pack two 16-bit channels per VGPR - f821cb9 GPU: pipelines of different names load from the library at the same time - f47ebd8 feat(shader): lower buffer cache invalidations as no-ops - f177aae Shaders: cap BDD memo table and bail out early on overflow - 5d6889e Shaders: lower v_sad_u8, v_sad_hi_u8, v_sad_u16, v_sad_u32 and v_msad_u8 - 67c4f53 victory-shader: resolve Structured::other and constant masks in v_cndmask_b32 - 59035de GPU: grow per-list upload scratch on demand - 100de0e Shader tests: a skipped device says why it was skipped - e52777a GPU list: bind initial pipeline state in create_list and create_list_x - 1e923ad Shaders: set WAVE_OPS feature flag when lane_bit emits waveGetLaneIndex - 4ab20fc GPU: the indirect budget is charged in record order and no longer wraps - f096774 GPU: throttle failed swap-chain creation and resize - 4fc9d70 GPU: keep Staging::detile inside the staging buffer and harden committed() - c0228d9 victory-shader: mask mesh primitive vertex indices to 9 bits (drop edge flags) - d09f3aa DirectStorage: read a page list naming page 0 again before failing its request - 0b35b7f Shaders and GPU: FidelityFX on host and console paths, 64-bit image atomics, the BVH interse - a7fc47a Shaders: a phi edge is live only if a lane can take it to a read - 13091f6 Shaders: pixel and mesh I/O with reused registers, 16-bit packing and signature rows - 27c3dc9 Shaders and GPU: title memory at raw addresses through a page table - 8af0472 Shaders: lane masks spilled and combined in compute programs - 4051149 GPU: null views for title buffer views that are empty or run past their copy - 328eec1 Shader tests: instruction semantics and control flow against the console's float mode - 75677cb Shaders: buffer sizes read from descriptors, and size-only waterfall loops - 0f63757 GPU: root views of programs that use title memory go through the page table - 77053a0 Shaders: accuracy fixes for discards, f16 rounding, denormals, med3 and signed zeros - 4f57f46 Shaders: cube samples with gradients take their level from the gradients - c75fdba GPU: views the shaders pick from the heap, and one change journal for title memory - d71c388 GPU and shaders: bounded root views, and a guard against texture descriptors read as buffers - 683ad7a GPU and shaders: rectangle lists through a geometry shader, table constants read in place - 7389303 Game formats: effects, techniques and passes of the shader database; shader-info --effects - 286e33f Game formats: the shader pack; shader-info lists packs - c47b529 Shader warm-up (translate --cache), a cache keyed by the translator, pipeline queue fixes - 819f622 translate: progress counts finished shaders, not ones handed out - e0034c2 Shaders: register-relative moves reach only what their index can - 13bbd6f GPU: one host texture per texture memory, and writable twins for depth textures - 86a5ed6 GPU: views off their buffer's elements get their own copy; heap records copied as bytes are - 6d021fe GPU: world frame cost - bacb06a GPU: a heap slot holds its view's own copy - 9c58a1c Pipeline pre-build from the shader pack (translate --cache --pipelines); mesh pipelines load - 7000573 Diagnostics: title memory peeks, slot states, small buffers and 1D/3D read-back in listed fr - 13185f5 GPU: GetDeviceRemovedReason reports the host device's state instead of E_NOTIMPL - e29391f Shaders: honor op_sel, omod and clamp on v_interp_p2_f16 - 0601955 Shaders: a helper lane's v_readfirstlane reads its own value - ed0dbfd GPU: copy title writes under ranges a submission's shaders write - 4e60ea3 victory-gpu: drop an indirect call before its clamp, not after - 42363ab Tests: hardware-only shader checks skip on a machine without a GPU - ccfb029 Tests: a machine with no GPU has no hardware adapter to check shaders on - cd94d35 GPU: shaders mark the pages they write through views; copy-backs compare only those - 940d32f GPU: a marked page's copy-back does not save the page for its own copy </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- indirect.rs: the timing rig kept the written depth view it never reads
  after setup; drop the field.
- draw.rs: the scissor census sorts by a reversed key.
- resource.rs: placed_filler_twins is read only by the diagnostics
  build's copystat; allow it to be dead without the feature, as
  shadow and pipeline do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A frame that ends in a packet where no frame begins (the tail of a frame that crossed packets, then padding) left the next frame pointing into that padding, which ended the stream early. Now the next frame is found by following each packet's skip to the next packet with frames.

(cherry picked from commit ba42db643c15c1b7fb17ba40464dddda36c1db60)
Our own completions looked their call up again by block address: after a
provider's DoWork returned, after a cancel, after a failed begin, and when
queued DoWork ran. A provider usually ends its call itself (XAsyncComplete
from DoWork or Cancel), and once it has, the title may begin a new call on
the same block, from its completion routine or from a thread that polls
the status. The lookup then found that new call:

- the old call's DoWork result (S_OK, size 0) or cancel (E_ABORT) ended
  the new call before it had done anything, ran its cleanup and fired the
  completion routine a second time;
- DoWork still queued for a canceled call ran the new call's DoWork.

Each queued DoWork now carries the call that scheduled it and runs only
while that call is still the block's, and DoWork, cancel and begin
complete that call. A call that is already over ignores a second
complete, so nothing reaches the next call. XAsyncComplete itself still
goes by block, as providers name their call by its block.

(cherry picked from commit d01b17070d)
Fail when a requested scan root cannot be opened. Report traversal errors below a readable root alongside the other skipped inputs.

(cherry picked from commit b1bdd8994a)
A callback submitted with a delay waited on a thread of its own and was
delivered when the delay ran out, whether or not the queue had been
terminated meanwhile. XTaskQueueTerminate only canceled what was already
in the ports, so a pending delayed callback was not canceled: it ran
later as live work (canceled = false), after the termination callback,
by which time a title may have freed what the callback uses.

The queue now keeps its delayed callbacks in a list until their delay
runs out. Terminate cancels them along with the queued ones, before it
calls the termination callback, and a delay that runs out after that
finds nothing to deliver. A submit racing Terminate checks `terminated`
under the list's lock, so the callback is either canceled or refused.

(cherry picked from commit b9ff219826)
`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)
imdct_half worked out every pre- and post-rotation with sin_cos on each
call (n of them per subframe) and ran its FFT on two fresh Vecs. The
rotations, the bit-reversed order and the butterfly rotations now come
from a table built once for 128, 256 and 512 samples; the work buffers
live on the stack. Every value is computed with the same expression (the
butterflies with the same running product), so the output is bit for
bit what it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 4eb0898b3cbd6d0bbbffad540aca5d7e3531ac58)
Decoder::decode took the caller's bit count as the end of the frame. Past
the data the bit reader returns zeros, and a stereo tile header reading
only zeros gives the subframe to no channel, so it never moves on; with a
count beyond the data it never overreads either, and looped for good.
Clamp the end to the bits the data holds. A frame from read_frame always
holds its bits, so its decoding does not change.

Add deterministic noise tests (xorshift64, fixed seeds, as BCPack's):
buffers of noise packets, streams of noise frames with clean and damaged
headers, frames in mono and stereo at each sample rate, bit counts past the
data, and read_frame and packet at any offset. Every walk is bounded and
every decode must give one frame of samples. The bit-count test hangs
without the fix; the others pass on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d4d1822049fed053c6188ea0b016b0976a71bf41)
GetModuleFileNameA/W on the host clears the thread's last error when
the name fits, and code tells a truncated name from a whole one by it
(grow the buffer while the last error is ERROR_INSUFFICIENT_BUFFER; or
fail if it is, also when the name filled the buffer exactly). Our
answer for a title image set the error when the name was cut and left
it alone otherwise, so after one call with too small a buffer, or
after any earlier call on the thread that left 122, a whole name still
read as truncated.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 3c7d845b3b)
When a frame ended a loop, decode cut it at the loop's end subframe, set
the loop's skip (the subframes of the loop's first frame that lie before
the loop) and then took that skip out of the frame in hand: the loop's
last. So the head of the last frame was dropped instead, and the first
frame played from its start, with the audio before the loop in it. The
number of samples came out the same; the seam did not.

The pending skip is still applied to the frame in hand, and the loop's
skip is set after it, for the frame decoded next.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 985d8d4b025384b5f13a3177ef906c8b6cce6840)
The source resolver's rule (local files only) knew a share as `\..`,
`//..` or `file://server/..`. The host knows more spellings: any two
leading separators (`/\server\share`), the object manager's prefix
(`\??\UNC\server\share`), and a `file:` URL with no host whose path
starts with two separators (`file:////server/share`,
`file:\server\share`, also percent-encoded). Those fell through as
relative paths or drive-less local files and went to the host's
resolver unchanged.

They are refused now, naming the server. Paths with one leading
separator, a drive after the slashes or the prefix, and the path of a
URL that names this machine pass as before.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 11ca3ce492)
(cherry picked from commit e57e76a7b4)
Stack dumps (VICTORY_STACKS, diagnostics builds) read another thread's
TEB right after NtQueryInformationThread and suspended it only later: a
thread exiting in between frees its TEB, and the read faults. The
thread is now suspended first and resumed on every way out.

The dump times went through Duration::from_secs_f64, which panics on
`inf` or `1e20`, killing the dump thread (the crash hook logs it as a
crash). They are parsed by `schedule` now, which leaves out NaN and
times no Duration holds. 1 new test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit acdcc41687be2ecd2bf2efc43ab7449329483382)
Calls are filed by their block's address, and a call that succeeded with
a result stays filed until XAsyncGetResult takes it. XAsyncBegin refused
any block whose address had a call filed. So when a title never took a
result and freed the block, the next block it was given at that address
could not begin a call: E_INVALIDARG, every time, with the old call's
provider never cleaned up.

A zeroed block is a new one: the block of a result left behind holds the
result's size, so it never reads zero. XAsyncBegin now ends a finished
call filed under the address of a zeroed block (its provider gets its
cleanup) and begins the new one. A call still in flight keeps its
address, and a block still holding a result is refused as before.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 5cff0007a5)
The decoder fills an XMA voice's output ring until the write block
(word 0, bits 27-31) comes round to the title's read block (word 9,
bits 0-4). The write block wraps modulo the ring size (word 0, bits
22-26), and so does a read block moved on by command 18, but a read block
the title set up at or past the ring's end was compared as it was: no
write block ever equalled it. With a stream that loops forever the pass
never ended, holding that voice's lock, so the title's next command on
the voice (advance, disable) waited for good, and releasing the context
arrays did too.

Take the read block modulo the ring size as well, as the write side
already does. A test sets up read block 6 on a ring of four with an
endless loop and requires the pass to end within seconds, with blocks 0
and 1 filled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 1054fe87de08038e887d6f7c6f44e5b07ac7a9f9)
No graphics object's interface list holds IUnknown, so QueryInterface
for it (and every call that hands out an object by interface id) said
E_NOINTERFACE and returned null. COM code asks for it to compare two
pointers for identity, to keep an object as a plain reference, or to
pass it on to an API that takes any object.

object::is, which all of those go through, now also matches IUnknown.
The DXGI device answers with the D3D12 device, which it already stands
for: one pointer whichever of the object's interfaces is asked.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 92f2c60c8159e34a47570aa81f3d25624cc6db5c)
XStoreQueryPackageIdentifier documents E_INVALIDARG for a store id that
has no installed package. We returned XPackage's 0x89245208 instead.

(cherry picked from commit e3bef08985)
host::module held the module cache's lock while it called
LoadLibraryExA. Loading a DLL that is not loaded yet takes the OS
loader lock, and title code runs under that lock too (a title DLL's
thread attach, TLS callbacks run as threads start), where it can need
the cache: any first use of a host! function, or a late-bound title
DLL. One thread holding the cache and waiting for the loader lock,
another holding the loader lock and waiting for the cache: the process
hangs, and cannot even exit, as ExitProcess needs the loader lock too.

The cache is now looked up, then unlocked for the load, then locked
again to keep the handle; a thread that loaded the same DLL meanwhile
got the same module, which stays loaded.

(cherry picked from commit c6959acba3)
(cherry picked from commit 93a24b7cdaeb0e7f132f711e9cbd9ba405b0f639)
The MicrosoftGame.config reader ended a tag at its first '>', but XML
allows '>' unescaped inside an attribute value. A value with one
(DefaultDisplayName="A > B") cut the tag short: its '/>' was never
seen, so the element stayed open and every element after it was read
as its child. Game/TitleId and the storage quota were then not found,
and the title ran as id 00000000 with no storage quota, its saves and
temporary files in that folder, without a warning.

A tag now ends at the first '>' outside quotes.

(cherry picked from commit d549b6397e)
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e6ebec9ccf)
XGameUiShowTextEntryAsync documents a 1024-character maximum on console,
1024 for a maxTextLength of 0, and 1024 for the Password scope whatever
the title asks. 0 meant no limit here, larger limits were kept and the
scope was ignored.

(cherry picked from commit 936e5e51c9)
A slice may not start at null, even an empty one, so asking for a title
image's name with (NULL, 0) was undefined behaviour; a debug build
aborted the process. A null buffer is now no buffer: nothing is written,
0 is returned and the last error is ERROR_INSUFFICIENT_BUFFER.

(cherry picked from commit c000581df2)
A literal is 32 bits; in a 64-bit operand the hardware sign-extends it
when the operand is signed (i64) and zero-extends it otherwise (LLVM's
AMDGPU operand rules). Every literal was zero-extended, so
v_cmp_lt_i64 v[1:2], -100 compared with 4294967196, and so did the
other i64 compares, v_ashrrev_i64 and s_ashr_i64.

Literals of operands of i64 instructions are now sign-extended, in the
vector and the scalar paths.

(cherry picked from commit 7d049431de9b12873d801de2b8a54ab4007fcde9)
(cherry picked from commit e6fe8ecbf8)
(cherry picked from commit 2c22e2b2d2)
(cherry picked from commit a3f89eda54)
(cherry picked from commit 75fe6c02b2)
(cherry picked from commit b956320125)
A refused XMemVirtualAlloc or XMemAllocDefault handed the title a null in
silence, and the title then writes at null plus an offset, which reads
like a title bug. In #289 the faulting write is at 0x217800, the
request's length 0x2173a0 rounded up to 2 KiB, so the base it built on
was most likely such a null.

At the commit limit, XMemVirtualAlloc now writes the same crashes.log
report the physical-page commit writes since #51 (the shared part is
`commit_refused`); other refusals, and a host heap out of memory, are
warnings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 65062e133c)
The write block (context word 0, bits 27-31) was used as it is for the first
block of a pass, so one at or past the ring size (bits 22-26) was written
past the ring's end, possibly into another APU allocation, before it wrapped
with (write + 1) % size. Take it modulo the ring first, as the read block is
taken, and as advance_read does.

(cherry picked from commit 7a5d85e6a2867081ed54515ce7f33bae3fcb643d)
(cherry picked from commit b796c8b8b80cfa4506f254474ab9fd7260bfd8e6)
An instruction guard depends on its EXEC and the reachability of its block. Keep the most recent result, including an elided guard, rather than repeating the same BDD queries for consecutive vector instructions. Scalar instructions still bypass guard selection.

Cover EXEC changes across and within a branch with a synthetic shader. Add a CPU-only guard_runs benchmark for unmasked, short, and long masked runs.

(cherry picked from commit 81b81df351)
The run check split on every byte that is not alphanumeric or +/=, so
b"\x4d\x5a..." broke into 3-character pieces and an xxd -i style
[0x4d, 0x5a, ...] array into 4-character pieces. Either form of up to
about 100 KB of copied bytes passed the check and the pre-commit hook.

Also count the hex digits of \x escapes and 0x literals that have only
commas, whitespace or backslashes between them, and flag the file when
that passes the same 512 limit. The largest such run in the tree is 36
digits. Decimal arrays are still not caught.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e950e81756)
Six diagnostic switches (VICTORY_D3D12_DEBUG, _GBV, _DRED, _WARP,
VICTORY_GPU_TIMING and VICTORY_DUMP_TARGETS) were on whenever their
variable existed, so VICTORY_D3D12_WARP=0 still selected the software
adapter. They now go through one helper that reads a value other than 0
as on and an unset variable or 0 as off; every other value keeps the
meaning it had. The README says so above its switch table.

(cherry picked from commit a4974e4c21)
The disassembly text showed operands that some instructions lack, and
dropped VOP3P negation that applies to one half only:

- s_memtime, s_memrealtime and s_get_waveid_in_workgroup printed the
  unused SMEM base and offset.
- A global or scratch access with no SGPR base printed `null`, not `off`.
- A MUBUF load with lds printed the unused vdata as a destination.
- VOP1 SDWA printed src1_sel, though VOP1 has no second source.
- VOP3P ops other than v_fma_mix with only neg_lo or only neg_hi set on
  a source printed as if the source were not negated. These now get
  LLVM's neg_lo:[..] and neg_hi:[..] suffixes; a source negated in both
  halves keeps `-src`.

Expected operands come from llvm-mc -mcpu=gfx1030 (gfx1010 for
s_get_waveid_in_workgroup). Only the text changes; translation reads
Fields and is unaffected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 6325df752c5638365c3e5a2b2f827ba0f3f145cb)
translate writes emitted DXIL and validator reports to the
VICTORY_EMIT_DUMP directory. Both are derived from the game's shaders,
but the directory was never checked against the source tree. With
VICTORY_EMIT_DUMP=. run from the checkout, the .txt reports land in the
repo, and git and cargo xtask policy both let them through.

Check the directory once at the start of translate::run, as Config
already does for the cache and data directories.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 988fd9a647)
(cherry picked from commit 350f91c23a9402b2a556a84c208a80030910ae3f)
(cherry picked from commit 43e2ca9de2)
(cherry picked from commit e34cb5396a)
(cherry picked from commit efe102edac86f365a9951f3c92228413cbee8e46)
(cherry picked from commit 7216ab7113)
Preserve stale staging files left by interrupted writers and retry a bounded number of atomic create_new attempts. Propagate unrelated I/O errors immediately. Add deterministic CPU regressions. AI-assisted.

(cherry picked from commit a32eacdd5e)
(cherry picked from commit aaacc2dcfe)
Co-Authored-By: GPT 6.2 Sol <[email protected]>
(cherry picked from commit 64b80c3109)
(cherry picked from commit 121412bec21b0790d04d56399f49e2d140652864)
Co-Authored-By: GPT 6.2 Sol <[email protected]>
(cherry picked from commit 3e98bd7e0ce79762162ac958e3ab67cc85de00c9)
(cherry picked from commit 6d174aeeeb93669ab9f43ff01b24963933433af8)
(cherry picked from commit c1c32819e90155967ad03f076a94b62fbf44a403)
SDATA on s_atc_probe and s_atc_probe_buffer is a 7-bit immediate, the buffer resource is four dwords, and GLC/DLC are not operands of either.

(cherry picked from commit 3d71ad1a6547836ac1dbd19bfab2d759c965d307)
(cherry picked from commit 072fde01acd3d4f6b7d0aa3dd61b559154c1047b)
(cherry picked from commit 131944d02d)
(cherry picked from commit 0be58e62d2)
The PE-specific export table stores one name per address-table slot, so when two names alias one ordinal the earlier name is silently dropped from ImageInfo and from victory inspect --exports. Use the generic Object::exports iterator instead, which yields every named export and then ordinal-only entries, and map its target and flags back to our representation. Add a synthetic PE regression with two names for one ordinal plus a separate export.

(cherry picked from commit d0dd9fc5c0)
write_if_changed used a shared <hash>.tmp file, so two concurrent cold launches of the same image could truncate each other's staging bytes or fail the rename after the other had published. Move publication into a portable module that stages under a unique pid/sequence name and removes it on failure. Two hermetic tests cover concurrent publishers and a failed rename.

(cherry picked from commit 1aac20aa8fd97237053c985b942225d54c0194a7)
elements() took field text up to the next '<', so a generator comment before the value made TitleId, StoreId or SizeMB empty. Skip comments while gathering the text. Add a regression with comments inside all three fields.

(cherry picked from commit ca362a4247)
runtime stores an absolute image path while relaunch_args searched raw CLI arguments for exact text, so a relative launch argument made XLaunchNewGame silently rerun the old title. Normalize the argument the same way runtime does before replacing it. Also split the title's quoted config args into proper arguments instead of split_whitespace. Add a regression covering a relative startup path, a different target and quoted/empty args.

(cherry picked from commit 71e88665c4)
Windows command lines quote only with double quotes. split_args treated an apostrophe as a quote too, so -name=O'Brien swallowed the following argument. Only toggle on ", and add the apostrophe case to the relaunch test (review note on #455).

(cherry picked from commit eb8067f2ea)
`resolve` canonicalizes the longest existing prefix and re-appends the rest, but it walks up with
`Path::file_name()`, which is None for a trailing `..`. A path such as `<tmp>/a/../b` (nothing exists yet) hit the
`_` arm and returned PolicyError::Io, so a cache_dir or data_dir with a `..` in a directory that does not exist yet
was rejected, and `normalize`'s `..` handling for the missing tail was never reached.

A trailing `..` is now kept in `rest` so `normalize` resolves it lexically.

Test: resolves_dot_dot_in_a_path_that_does_not_exist_yet (fails before, passes after). cargo test -p victory-core,
cargo fmt --check and cargo clippy --tests are clean.

(cherry picked from commit 52f0a099ede8aa4d5bde61a0c46963a77a4378ba)
(cherry picked from commit fd44561ea1180aff5380285527fb8cac8195f4e8)
emulate_amd_only copies only the bytes left in the faulting page and
gated clwb_len on n >= 15 because clwb_len took a fixed [u8; 15]. A
4- to 10-byte clwb starting in the last 14 bytes of a page (or falling
back from a clwb_loop that straddles the page end) was therefore
skipped, leaving pre-Ice Lake Intel CPUs with an unhandled
STATUS_ILLEGAL_INSTRUCTION.

Change clwb_len to take &[u8], bounds-checking each byte read and
returning Some(len) only when len <= code.len(), and drop the n >= 15
guard in emulate_amd_only.

Fixes #924.

Co-Authored-By: Gemini 4 Neon <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 60d2cf9cbcf5a2abc773d5de10c3c892e77d3340)
(cherry picked from commit 246ecea963)
(cherry picked from commit 45ed8e3242f49ac164943fce5f42cc2546f61239)
(cherry picked from commit 8d67fa5b00eb6714c5ac71e9d01172cc6cdbcf08)
(cherry picked from commit 534e1dd74c)
Read complete payload bytes directly inside an XMA2 packet. Keep the bit reader for packet headers, interleaved stream skips and the final partial byte. Add coverage for all eight alignments at packet boundaries and EOF. On Windows x86-64, 36,720 synthetic reads matched the previous implementation, including returned bytes and the next frame position. A release microbenchmark of read_frame measured 1009 to 168 ns for 128-byte frames and 7977 to 1062 ns for 1 KiB frames (median of nine runs).

(cherry picked from commit 03a6f22906b4372ec08d003e9103997659647b0f)
(cherry picked from commit 259ba31e28ca4ceb379682d6383c3b6f75bad014)
(cherry picked from commit 8610ffb85baedbc7b8c4c9de1222b0911e00e589)
(cherry picked from commit e3c9dd0d53)
(cherry picked from commit ef0c3e9449)
(cherry picked from commit 41b2472e134c8f402cacc011001dec1a8ca294e4)
With TdrLevel 0 Windows never resets a hung GPU: a slow or hung world
frame freezes the whole desktop, and the runtime never sees a device
removal it could report (#1054). With 1 the timeout is a blue screen.
Both are set by hand, often to keep slow frames from being reset, and
reports of "the PC froze" do not say so.

When the host device is made on a hardware adapter, read TdrLevel,
TdrDelay and TdrDdiDelay from HKLM\SYSTEM\CurrentControlSet\Control\
GraphicsDrivers, log them ("default" where a value is not set), and warn
for TdrLevel 0 or 1 with what to set instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 42961e8e57)
Closing the window never suspended Grand Theft Auto VI: its suspend
routine waits for a state that only its constrained-change routine
starts, and RegisterAppConstrainedChangeNotification bound to the host's
version, which never calls it. Every close ended in the one-second
deadline.

Register constrained-change routines here and run them (constrained)
before the suspend routines (quiesced), as the console does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit a7847a5201)
Getting started names Rust (pinned in rust-toolchain.toml) without saying
how to get it. Add rustup through winget or rustup.rs, that the pinned
toolchain then comes on the first cargo command, and the MSVC C++ build
tools the Windows target needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 098a26aad5)
Microsoft's XAsyncCancel reference says: "If the XAsyncCancel function
is invoked for an asynchronous call that has already completed, nothing
happens."

A call that completed successfully with a nonempty result stays in
CALLS until the title reads the result via XAsyncGetResult, so
XAsyncCancel still found it and invoked the provider with OP_CANCEL
before XAsyncComplete returned early on call.done.

Check call.done under its lock in XAsyncCancel and return immediately
when the call is already complete, dropping the lock before invoking
the provider.

Co-Authored-By: Gemini 4 Neon <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 44ce06784b)
(cherry picked from commit 47c00d5ea6ef8095adbe9681ea2f549ae4d7b8e6)
(cherry picked from commit 142ec8dd45)
The high dword of the 48-bit product whose low dword v_mul_u32_u24 and v_mul_i32_i24 already give: the low
24 bits of each operand, zero- or sign-extended, through the existing mul_hi.

The test module gets lowers_valu, a one-thread compute program with root constants in v1..v4 and a buffer
store of v0 (built with lower_with), so a vector instruction can be checked for lowering without a GPU.

AI-assisted (Claude Code).

(cherry picked from commit 344704e02850eb227fe61d4fd54e6657c17ea68d)
(cherry picked from commit 643fc6dfecffbd06de7313897b7d4bc4ffef6564)
(cherry picked from commit 64a33ec757)
(cherry picked from commit 4f54c47755)
(cherry picked from commit 1ed26e50d860f328cd42c640bc12486f65603995)
(cherry picked from commit 32eb934959)
(cherry picked from commit 5c44562868df4c33cce60488132d83cf5ff02f30)
DXGI's R8 typeless family is R8_UNORM/UINT/SNORM/SINT (formats 61..=64). The
family() table folded A8_UNORM (65) into R8_TYPELESS (60), so an R8 view of an
A8 host texture passed the family(view) != family(own) check in fits() and was
silently rewritten to A8's format. A8 cannot be cast to R8 in D3D12, so such a
view must be rejected instead. Drop 65 from the range; it now maps to itself.

(cherry picked from commit 97c8783f4a)
The opcode was registered but fell through to the integer path and failed
to lower. It converts the low four bits of src0 as a signed 4-bit integer
and divides by 16, ignoring the upper bits. Sign-extend the nibble, convert
to f32 and multiply by 1/16; all sixteen results are exact.

The test runs every nibble value plus values with junk in the upper bits
and compares the f32 bit patterns.

(cherry picked from commit 78c12677e54f3aa901c089059e170ccf6a57ae78)
(cherry picked from commit e45bacd12fd320077a5dfcd421361a51efcd8a3c)
(cherry picked from commit 4e155a36ad728e1a21e7253ff4097af06582a45f)
(cherry picked from commit 2b13ae4192)
Query OPTIONS19 in the shader host and retain the previous linear-mip approximation when anisotropic point-mip filtering is unavailable. Preserve comparison/min/max reduction and LOD bounds. Add tests for supported and unsupported capabilities, all reduction modes, and unrelated filters.

Validated with 4 sampler tests, 123 all-feature shader tests (1 benchmark ignored), shader/GPU all-target/all-feature Clippy with warnings denied, and asset policy. No in-game validation claimed.

(cherry picked from commit 23fc8a55e803b5721076f59f27c019441af1f2bd)
Apply the same OPTIONS19 capability check and filter fallback in the production GPU pipeline as in the shader host. Unsupported or older runtimes retain the prior linear-mip approximation instead of receiving an unsupported static-sampler filter.

Validated together with the shader-side changes: 123 all-feature shader tests passed (1 benchmark ignored), shader/GPU all-target/all-feature Clippy with warnings denied, and asset policy.

(cherry picked from commit 7dfa86fa39ec77ff12df9b44f4e0bd436442d236)
Reduce each group of four bits to one bit and preserve the scalar condition code.

(cherry picked from commit c3a04e2e4164523f38ffceec23509a0ba4316856)
Check both mask widths, the condition code and the zeroed upper destination.

(cherry picked from commit e3fe5bf94f848c2a6ca36900c2dfa70342083109)
(cherry picked from commit a7636dd7b1)
Handle scalar and two-channel UNORM inputs and signed normalized inputs.

(cherry picked from commit 6f36cdf982)
(cherry picked from commit be3202de393b71c9385f74b587256b01b48f7f63)
(cherry picked from commit 711d651ccab7673e5ab4365bd692294e954c845f)
(cherry picked from commit 2286e038cc606809869a7d7d577c470d059bc268)
(cherry picked from commit 9ccb83c00a9b0ee5121e4a9b2f6c0ee223630c84)
(cherry picked from commit 274f6988c9779b0612186c3448123e5e157d56e4)
The layouts follow AMD's addrlib, but the tests only checked them
against themselves (every element on its own address) and a few
hand-worked offsets. Two tests now pin them to addrlib itself
(Mesa src/amd/addrlib at ed09d38, Navi 21 settings):

- layouts_match_addrlib: 21 descriptions over every mode Layout::offset
  addresses (linear, 256 B, 4 KiB and 64 KiB S and D; 1-16 byte
  elements, block compression, arrays, mip tails, 2D and 3D), each
  with addrlib's surface size, first tail mip and a hash of the
  address of every element.
- deep_volumes_keep_their_chain_in_each_slabs_tail: a 16x16x64 volume
  whose chain is all in the tail (addrlib's mipChainInTail), with
  explicit addresses: each 16-slice slab has its own tail block, and
  mip 1's 32 slices span two of them.

Over a wider sweep (about 20,000 descriptions, every mip count for
volumes up to 256 deep) main matches addrlib exactly in size, tail and
every address compared. A tail-entry rule that also requires a mip's depth to
fit one slab changes 5,456 of 14,780 volume layouts (5,087 grow, by
up to 5x) and moves their addresses; both tests fail with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f078008b112343b6e68c8ca72b884073064320c1)
fence.rs already implements ID3D12Fence1::GetCreationFlags at slot 11
(0x58), but FENCE_IIDS only listed ID3D12Fence and PAGEABLE_IIDS, so
CreateFence and QueryInterface rejected ID3D12Fence1 with E_NOINTERFACE.

Add ID3D12Fence1 (433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a) to FENCE_IIDS
and add a unit test covering creation, QueryInterface, and
GetCreationFlags.

Co-Authored-By: Gemini 4 Neon <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit bbdc3ca7249948b7624ba65f4282615caef895b8)
(cherry picked from commit 3f6910ac3201f8c5a59e65e55420f5e74f2e494e)
A package copied without the DLLs that ship beside the executable leaves
every import from them unbound, and the title stops at its first call into
one: Grand Theft Auto VI 1.0.2.1 at +0x2237178 during System Init (#930,
#1553, #8), with nothing saying why.

After mapping the title DLLs, name the main image's static imports that
must come from the title's folder (neither the host nor our runtime serves
them) but were not mapped from it. Print them; when executing with the
default trap policy, stop before running title code. With
`--unimplemented zero` the title still runs (stubs were asked for).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e9cb14ad3e)
save() releases LAST and library locks before calling write_atomically(), which always wrote to the same fixed host-pipelines.tmp path. Concurrent worker saves and shutdown save(true) can truncate or unlink each other's temp file on Windows.

- Serialize write_atomically() with a mutex and unique per-call temp filename (.tmp-<pid>-<n>), cleaning up the temp file on rename failure.
- Add a 4-thread concurrent write_atomically stress test.

(cherry picked from commit be824d9d218320c71f2623ed4b14045210785db5)
(cherry picked from commit eb7cc2d43711e806bbd8578d4ef75bde30326c20)
A title makes its window on one of its own threads and reads its messages
only when that thread reaches its PeekMessage loop. In slow frames and
loads that is seconds apart, so the system shows the busy cursor over the
window and a click turns it into a "Not responding" ghost.

A top-level title window is now made message-only (it can never be shown),
and a stand-in window with the title's text, style, icon and fitted size is
made on a thread of ours that does nothing but pump its messages. The
title's ShowWindow shows the stand-in, its window text follows, closing the
stand-in suspends and ends the title as before, the keyboard window menu is
still refused, and the stand-in goes when the title's window does. Frames
are presented to the process's visible window, now the stand-in; input is
unaffected, since titles read it through GameInput, not window messages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 9145d9d3da)
(cherry picked from commit 6493dd93100cd8a8f1e20138a4b3f85b477f9c9b)
(cherry picked from commit 8d3a025df199e6e26ccb404d4cf0f172fdde8b1c)
(cherry picked from commit 40f30be0b52ff0866fbdafb7944bb595ceae4e98)
A title that ends itself when its main loop has not ticked for a while
runs on through slower frames.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 532cb7cdfe)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 224e7869f0)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit 70564ae08c)
Recovery took any name `v<digits>` as a version, so a leftover `v01`
next to a committed `v1` parsed as version 1, and the cleanup rebuilt
the name as `v1` and deleted the committed save (#870). A correctly
named but unreadable newer entry (an empty `v2`, a file, a broken
manifest) did the same: `v1` was pruned as older, the read failed, and
the next update committed a fresh `v1` holding only the changed blobs,
which the following read pruned again.

Now only `v<N>` exactly as `commit` writes it is a version. `current`
takes the newest version whose manifest reads, removes only versions
below it, and leaves unreadable newer entries alone. An update goes
above the highest version name present, so a stray entry neither hides
the save nor blocks writes. With no readable version at all, reads and
updates still fail and nothing is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b8dbcba260)
- descriptor/host.rs: the fork's cap on the dynamic-slot search was the
  ring's length, which cut off the n - 1 slots upstream's wraparound fix
  adds; the cap is lifted (the 'enough' gate stays), so a free run across
  the cursor is found, as upstream's new test expects.
- host.rs: late_stage() reads VICTORY_GPU_TIMING the way timing() now
  does, so VICTORY_GPU_TIMING=0 no longer turns off late waits and the
  relay while timing itself is off.
- The title is not named in the tree: four comments from the picks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:48:16 +00:00
Author
Owner

@⁠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.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T04:06:32.431489Z
We couldn’t complete this review. Comment @codex review to try again.
257bc31 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

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](https://github.com/fxceless/victory-fork/pull/653#issuecomment-7152536756) <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"257bc31e64aafd1a79a5d0527d36104075935288","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-25T04:06:32.431489Z">2026-11-25T04:06:32.431489Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `257bc31` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 04:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/653#issuecomment-7152537140) You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage).
Author
Owner

@⁠deepdev237 on GitHub · 2026-11-25 04:37 UTC · original · edited 2026-11-25 05:11 UTC

🤖 AI-generated. This comment was written by Claude Opus 5.5 (Anthropic, model claude-opus-5-5), running as an autonomous agent in Claude Code. The AI did the work it reports: it merged the branches, built, ran the commands, tests and game runs, and read the logs. A person asked for this testing; this text was not reviewed by them before posting. Please verify anything you rely on.

Full test environment
  • OS: Windows 11 Pro, version 10.0.26300 (build 26300)
  • CPU: AMD Ryzen 9 5950X, 16 cores / 32 threads
  • RAM: 24 GB DDR4 at 2666 MT/s; page file 32 GiB on the system drive, Windows commit limit 55.92 GiB
  • GPU: AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32015.7029 (dated 2026-10-18); D3D12 reports host wave lanes min 32 / max 64; DXGI local video memory budget 15,419 MB; mesh shaders and shader model 6.6 available
  • Also installed: a virtual display adapter (Parsec Virtual Display Adapter 0.45). VIctory ran on the RX 9060 XT.
  • Toolchain: rustc 1.98.1 (48a229cea 2026-09-01), cargo 1.98.1 (797e8a9bc 2026-08-05), LLVM 22.1.8, host x86_64-pc-windows-msvc
  • Build: cargo build --profile diag -p victory --features diagnostics (diag = release + debug info)
  • Base: victory-fork main 310c6eb6c16822ab95076aad61fce19bba86bb98
  • Game files: Series X build 1.0.2.1. This copy has zero-filled holes in 11 archives (about 338 MiB in all: levels.rpf, audio.rpf, pack/story000/story000.rpf, navmeshes.rpf and six data/ttdb/*.ttpf), so failures that depend on those bytes are not emulator bugs.
  • Full logs (local paths shortened): https://gist.github.com/deepdev237/785e05b02d0dcece7aac1303f7fe4ba8

First Windows + GPU test run of this PR: everything passes.

Head 257bc31, merged alone onto main 310c6eb (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 02s with -j 4).

test binary passed failed ignored
victory (unit) 10 0 0
victory tests/census.rs 2 0 0
victory-core 13 0 0
victory-formats 39 0 5
victory-game 3 0 0
victory-gpu (includes the tests that need a real D3D12 device) 158 0 3
victory-hle 139 (+1 in its integration test) 0 0
victory-loader (unit + no_dll_planting, load_probe, title_dlls) 28 + 1 + 2 + 1 0 0
victory-pe 36 0 0
victory-pipeline 7 0 0
victory-shader (includes the hardware shader tests, 40 s) 236 0 3
xtask 6 0 0
total 682 0 11

That includes the four victory-pe image::tests that 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 (310c6eb plus 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
  • PR head: 257bc31e64aafd1a79a5d0527d36104075935288, merged with git merge --no-ff onto main 310c6eb6c16822ab95076aad61fce19bba86bb98 in a clean worktree (116 commits ahead of main after the merge).
  • Build: cargo test -j 4 --workspace --profile diag --no-run, then cargo 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.
  • Full build and test output: pr653-build.log and pr653-test.log in https://gist.github.com/deepdev237/785e05b02d0dcece7aac1303f7fe4ba8
**@⁠deepdev237** on GitHub · 2026-11-25 04:37 UTC · [original](https://github.com/fxceless/victory-fork/pull/653#issuecomment-7153007616) · edited 2026-11-25 05:11 UTC > 🤖 **AI-generated.** This comment was written by **Claude Opus 5.5** (Anthropic, model `claude-opus-5-5`), running as an autonomous agent in **Claude Code**. The AI did the work it reports: it merged the branches, built, ran the commands, tests and game runs, and read the logs. A person asked for this testing; this text was not reviewed by them before posting. Please verify anything you rely on. <details><summary>Full test environment</summary> - OS: Windows 11 Pro, version 10.0.26300 (build 26300) - CPU: AMD Ryzen 9 5950X, 16 cores / 32 threads - RAM: 24 GB DDR4 at 2666 MT/s; page file 32 GiB on the system drive, Windows commit limit 55.92 GiB - GPU: AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32015.7029 (dated 2026-10-18); D3D12 reports host wave lanes min 32 / max 64; DXGI local video memory budget 15,419 MB; mesh shaders and shader model 6.6 available - Also installed: a virtual display adapter (Parsec Virtual Display Adapter 0.45). VIctory ran on the RX 9060 XT. - Toolchain: rustc 1.98.1 (48a229cea 2026-09-01), cargo 1.98.1 (797e8a9bc 2026-08-05), LLVM 22.1.8, host `x86_64-pc-windows-msvc` - Build: `cargo build --profile diag -p victory --features diagnostics` (`diag` = release + debug info) - Base: victory-fork `main` `310c6eb6c16822ab95076aad61fce19bba86bb98` - Game files: Series X build 1.0.2.1. This copy has zero-filled holes in 11 archives (about 338 MiB in all: `levels.rpf`, `audio.rpf`, `pack/story000/story000.rpf`, `navmeshes.rpf` and six `data/ttdb/*.ttpf`), so failures that depend on those bytes are not emulator bugs. - Full logs (local paths shortened): https://gist.github.com/deepdev237/785e05b02d0dcece7aac1303f7fe4ba8 </details> **First Windows + GPU test run of this PR: everything passes.** Head `257bc31`, merged alone onto `main` `310c6eb` (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 02s` with `-j 4`). | test binary | passed | failed | ignored | |---|---|---|---| | `victory` (unit) | 10 | 0 | 0 | | `victory` `tests/census.rs` | 2 | 0 | 0 | | `victory-core` | 13 | 0 | 0 | | `victory-formats` | 39 | 0 | 5 | | `victory-game` | 3 | 0 | 0 | | `victory-gpu` (includes the tests that need a real D3D12 device) | 158 | 0 | 3 | | `victory-hle` | 139 (+1 in its integration test) | 0 | 0 | | `victory-loader` (unit + `no_dll_planting`, `load_probe`, `title_dlls`) | 28 + 1 + 2 + 1 | 0 | 0 | | `victory-pe` | 36 | 0 | 0 | | `victory-pipeline` | 7 | 0 | 0 | | `victory-shader` (includes the hardware shader tests, 40 s) | 236 | 0 | 3 | | `xtask` | 6 | 0 | 0 | | **total** | **682** | **0** | **11** | That includes the four `victory-pe` `image::tests` that 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 (`310c6eb` plus 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. <details><summary>Exact state tested</summary> - PR head: `257bc31e64aafd1a79a5d0527d36104075935288`, merged with `git merge --no-ff` onto `main` `310c6eb6c16822ab95076aad61fce19bba86bb98` in a clean worktree (116 commits ahead of `main` after the merge). - Build: `cargo test -j 4 --workspace --profile diag --no-run`, then `cargo 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. - Full build and test output: `pr653-build.log` and `pr653-test.log` in https://gist.github.com/deepdev237/785e05b02d0dcece7aac1303f7fe4ba8 </details>
Author
Owner

@⁠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 --list over the title's full shader pack (26,084 programs), for main 310c6eb and for this head 257bc31. 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 → 310c6eb changes the DXIL of 8,514 programs).

main 310c6eb this PR 257bc31
validated 25,382 25,382
programs whose DXIL differs 0
newly validated / lost 0 / 0

The 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.

**@⁠JRamos1993** on GitHub · 2026-11-25 05:27 UTC · [original](https://github.com/fxceless/victory-fork/pull/653#issuecomment-7153792860) **Offline check on the retail shader pack: this PR changes no emitted shader.** **Setup:** RTX 5090, Windows 11. `victory translate --validate --list` over the title's full shader pack (26,084 programs), for `main` `310c6eb` and for this head `257bc31`. 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` → `310c6eb` changes the DXIL of 8,514 programs). | | `main` `310c6eb` | this PR `257bc31` | |---|---|---| | validated | 25,382 | 25,382 | | programs whose DXIL differs | | **0** | | newly validated / lost | | 0 / 0 | The 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.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/Cargo.toml
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/indirect.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-hle/src/modules/xgamesave.rs
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.
git fetch -u origin '+refs/pull/653/head:github-bot/gh-653'
git switch 'github-bot/gh-653'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-653'
git switch 'github-bot/gh-653'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-653'
git switch 'github-bot/gh-653'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-653'
git switch 'main'
git merge --squash 'github-bot/gh-653'
git switch 'main'
git merge --ff-only 'github-bot/gh-653'
git switch 'main'
git merge 'github-bot/gh-653'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.