Skip to content

Unify: the fork's translation and GPU core on main (751/751), main's tools and docs kept - #88

Merged
pablogonz12 merged 157 commits into
mainfrom
unify/fork-core
Nov 25, 2026
Merged

pablogonz12 merged 157 commits into
mainfrom
unify/fork-core

Conversation

@pablogonz12

@pablogonz12 pablogonz12 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Unify: the fork's translation and GPU core on main

Merges the fork line (scar-candidate-3 a2b3613) into main and keeps main's tools, launcher,
docs and tests. On top: a cherry-pick of cf256de that removes the XCL (GPL-2.0-only)
console_insn port again — it is licence-incompatible with our GPL-3.0 tree, Zen hosts run
clzero natively, and our own emulate_amd_only handling in crash.rs stays.

Numbers

dump main fork unified
shaders-dump (751 programs) 707 translated 751 751 translated, 751 pipelines
runtime dump (2,912 containers) 2,748 2,907 2,907

The 5 remaining refusals are the fork's own five, all "a descriptor read only as data":

  • pixel-6b6db9f1a526daeb
  • pixel-2fd01fca16993001
  • pixel-e5b2121a02f4f741
  • pixel-7d0f14ce44746d7e
  • compute-ceb5eb68cd99cb07 (a descriptor's address or format read as data)

main translates these five; they are the follow-ups that close the last gap (5 of 2,912).

Conflict policy used in the merge

  • shader + gpu: the fork.
  • hle: the fork, plus main's scatter test.
  • loader: main's profile hooks (Profiles: a title's build needs come from the user, not from the code #71) with the fork's crash path; mod crash stays Windows-only.
  • apps: both — title-id and warmup.
  • README / docs: main's.
  • Dropped with the fork core: main-only APIs emit::Target and last_module_summary
    (nothing in the unified tree called them after the merge).

Gates (all run after the cherry-pick)

gate result
cargo xwin check --workspace (windows-msvc) clean
cargo xwin clippy --workspace --all-targets -- -D warnings clean
cargo test -p victory-shader (Linux) 175 passed, 0 failed, 2 ignored
victory-gpu tests under Wine (GE-Proton11-14) 150 passed, 1 ignored
victory-loader lib tests under Wine 29 passed
tests/title_dlls under Wine 1 passed
cargo xtask policy 217 files ok
name scrub + git grep -iE "gta ?(vi|6)|grand theft|rockstar" empty
offline-check.sh (dxil-spirv → spirv-val → RADV pipeline) 751/751 ok, 751 pipelines, 0 errors
release build + dry-run bind in a throwaway prefix every module 0 missing (exe 88 hle / 427 host / 72 title), profile hooks applied

crates/victory-loader/tests/load_probe.rs fails under Wine — and fails identically on main
at 4aad7d3: the test embeds the Linux rustup cargo and Linux absolute paths, so the
tests/fixtures/hle-probe fixture cannot be built from a cross-built Windows test binary. Not
caused by this merge; the test is unchanged by it.

Licence

Kept out: crates/victory-loader/src/console_insn.rs and console_insn_decode.rs, ported from
XCL (GPL-2.0-only). Our GPL-3.0 tree cannot carry them. emulate_amd_only (our own
clzero/monitorx/mwaitx path) remains.

PR #86 (GPU copies) and #87 (SPIR-V emitter) stack on this.

Summary by CodeRabbit

  • New Features
    • Added pipeline warm-up with progress updates and shader-cache reporting.
    • Added control-folder requests for labeled screenshots, timed key presses, and live switch updates.
    • Added options to set the reported display resolution and adjust rendering limits.
  • Improvements
    • Improved shader and texture handling, including support for additional rendering patterns and partially available texture data.
    • Expanded capture and graphics diagnostics, and improved pipeline caching.
    • Improved frame capture options and pipeline compilation compatibility.
  • Bug Fixes
    • Improved compressed-data handling to reject incomplete or invalid streams more reliably.

uiliannn and others added 30 commits November 24, 2026 07:05
World rendering, lighting, frame-rate and memory work for Grand Theft Auto VI
(Xbox Series X profile) on one Windows PC with an NVIDIA RTX 4070. The README
describes the state, the changes and the credits. Based on VIctory by Marvisak
and contributors (GPL-3.0-or-later); XCL by ivall and contributors was used as
a reference. No game files are included.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- 59 of the 64 trace programs and the irradiance-cache shading program
  translate; 51 programs leave the approximate wave64 forms.
- The workspace passes the lint with warnings as errors in both feature sets;
  a few style lints are let through in Cargo.toml for this fork.
- README status updated (relay and in-place memory results);
  docs/fork-ray-tracing.md describes what the title does and what is built.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: ZazaJr24 <218105339+ZazaJr24@users.noreply.github.com>
…ning

- Shader tests: a software adapter given as the default device is not taken
  for a hardware device, so the tests that need a real card skip there.
- Diagnostics: the stencil plane of dumped depth-stencil targets and the
  title's descriptions of its stencil views.
- README: the newest commits lose the GPU device shortly after start on the
  test machine; the cause is not found yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The update moved the particle light-atlas compute programs to a form that
puts group barriers inside branches and loops; a dispatch of them stood on
the card until the device was reset. That form is now off unless
VICTORY_WAVE_WIDE=1, and the shader cache key includes the wave switches.
Checked with a plain run of this tree on the test machine.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…apter

Hosted runners list a display stub first, so the default device there is the
software adapter; the tests that need a real card now skip it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ative VGPR reads keep parked lanes

The console compiler parks a wave64 lane mask in two lanes of a spare VGPR
and may restore the halves with other instructions between the two
v_readlane_b32. The pair restore now looks ahead in the block (nothing between
may touch the second register, write the first, or save into the lanes), so
the mask comes back as a mask. This lets indirect_light_probes
CS_IrradianceCache_Shade / ShadeSecondary translate: they were dropped every
frame, leaving the irradiance cache unlit and everything in shadow black.

An M0-relative read (v_movrels_b32) names every VGPR from its base up, which
marked the parking VGPR as an ordinary one and turned unspilling off for the
whole program. Relative reads no longer count there (relative writes still
do). billboard_nobump CS_RaytracingResolve_a56bfb9c translates with it.

translate: VICTORY_TRANSLATE_ONLY=<hash prefixes> limits a run to those
containers; VICTORY_HOST_MAX_WAVE=32 translates as on a 32-lane host, so
--pipelines matches what the runtime creates on NVIDIA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pablogonz12
pablogonz12 merged commit 84cb6e8 into main Nov 25, 2026
3 of 4 checks passed
pablogonz12 added a commit that referenced this pull request Nov 25, 2026
Zero-copy on the unified core: title memory in place by default for the class the probe proved, and a startup self-check that makes a silent vkd3d fallback one line (stacked on #88)
This was referenced Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.