feat: VIctory in the repository as our own code, with 57 Proton and AMD commits (measured on Linux at ~3.7 fps) #199
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!199
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/199/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Exorion1er on GitHub · 2026-11-25 05:28 UTC · original
Exorion1er:feat/victory-linux-amd→main· +123759 −97 · 203 files · 69 commits · merged 2026-11-25 14:51 UTCSummary
third_party/victorybecomes a copy of VIctory inside this repository, and from now on it is our code: nothing is synced or pinned, and it still builds if every repository it came from is taken down. Commitf7b60f8imports the tree ofLooperSalty/victoryat the pinned commit80d58f8(anyxboxx/fork-7b0-lot9-murs), unchanged (same Git tree). 57 commits for Proton and AMD cards follow. The final tree ofthird_party/victoryis identical to890a83a, the commit built and measured on Linux.AGENTS.md, new section inCONTRIBUTING.md): a change taken from another repository is committed by us (cherry-pick with-Xsubtree=third_party/<project>, or a port by hand), and its message ends withSource: <repository> <PR or commit>andCo-authored-by: Name <email>. The 15 commits in this PR written by someone else (12 by myokex, one each by fxceless, oddiums and Joshua Odom) follow that rule. No submodules or pinned forks for new sources.THIRD_PARTY.md: the four VIctory rows become one table row plus a "Sources dethird_party/victory" table, one row per source repository (what was in the initial copy, what came after). Theanyxboxx/stableandanyxboxx/essairows are removed: none of their commits is in the copy (anyxboxx/stableis not an ancestor of80d58f8, and none of its 38 commits matches by patch-id).crates/victory-formats/src/bcpack-tables.bin(about 78 KiB). The maintainer admitted it as an exception on 2026-11-25; the register row ofTHIRD_PARTY.mdsays so (a489301).Changes since the reviewed head
6e5d7d7The branch was rebuilt: rebased on
main(198cf0b, with #204 and #206), commit messages in English, the 15 commits above re-authored withSource:andCo-authored-by:, plus these answers to the review:-BatchCardRehashrestored (8c93075):b06ff90re-applied as is, option and test. Againstmain,tools/lancer_victory.ps1now differs only by the messages about the copy.README.mdline 10 and the intro sentence (9 languages), the "Updating an existing copy" paragraph of both guides,docs/research/victory-xcl-fivestar.md(en, fr), and thetools/sync_voisins.pycomments. The guides and READMEs no longer speak of a pinned branch or of upstream (01c9999).c8d7990): a new job,politique VIctory, in.github/workflows/tests.ymlrunscargo xtask policyinthird_party/victory(locally: "asset policy: 181 files ok").a489301.AGENTS.md: rule 8 exemptsthird_party/from the 400-line rule and from ruff; the policy command is documented next to the lint command.Updating an existing clone
A clone that still has the submodule must remove it before pulling, or the checkout stops (tried on a clone):
git submodule deinit -f third_party/victory, deletethird_party/victoryand.git/modules/third_party/victory, thengit pull.target/goes with it, so the first build starts from scratch. The shader cache key changes, so a-Precompilecache is rebuilt.Large diff: the import adds the whole VIctory source (about 4.5 MB). To review only the change against the previous pin, read the 63 commits after
f7b60f8, orgit diff f7b60f8 HEAD -- third_party/victory.What the 57 commits bring (grouped; each commit names its source and author)
GetWriteWatch,VirtualQueryandVirtualProtectcalls per frame; guards held open over the runtime's kernel writes, and no deadlock under the guards' lock; raw DirectStorage andfreadreads copied in from a buffer (Joshua Odom, JoshuuDev/victory-amd).v_cvt_f32_f64andv_add_f64sums (fork #9, MartinIndra02),v_permlane16/x16_b32(fork #134), 9-bit primitive indices (VIctory #1718, tjthebigbearcat-hub),v_interp_p2_f16(VIctory #1696, Calvix2k), interpolation as declared by PSV0 (fork #150, wildheathen), NaN guard (PastiiJay), shader clean-up passes (fxceless,1684989).86a5ed6); placed UAVs (fork #114, Kaivyyy); late waits (fork #191 gdawid9407, #206 AscilCH, #141 adritoyalser); a budget for view copies; and twelve commits by myokex (myokex/victory-amd): placed texture views by mip, lost views put back in the queue, dispatches of more than 65,535 groups, 64 KiB CBVs, texture queue, DirectStorage page arrays, pipeline waits while loading, early pipeline list.VICTORY_NULL_MAGENTA, mesh shader pipeline test (fork #14, oddiums).Switches: most new behaviours are on by default (
0turns them off:VICTORY_SHADER_OPT,VICTORY_PS_HALVESandVICTORY_L6_HEAP_CLAMPonly on the hosts they apply to,VICTORY_L6_*,VICTORY_L7_*,VICTORY_L9_DSTORAGE_GUARDS,VICTORY_L9_GUARD_TITLE_VIEWS,VICTORY_TEXTURE_SWEEP,VICTORY_TEXTURE_GATE_S=60,VICTORY_PIPELINE_GATE_S=120). Off by default:VICTORY_L9_ALIAS_UNCLEAN,VICTORY_HEAP_RECHECK(face geometry lost and black skin in Linux runs 28 and 30, observed),VICTORY_L7_SKIP/ROLES/UNLIT,VICTORY_NULL_MAGENTA,VICTORY_RT_RESOLVE. Full table in the guide.Measurements (Linux only)
Fedora 44, RX 9070 XT 16 GB, RADV through vkd3d-proton, GE-Proton11-12 with a community "view-tree" wineserver patch;
victory.exebuilt from890a83a(samethird_party/victorytree as this PR); VIctory log of run 31 (25 Nov, 06:09 to 06:32, about 23 min); shader cache warmed withvictory translate --cache(25,985 containers, 25,699 translated, 286 refused, 125 s).ERRORlines in the log. Measured.VICTORY_LATE_WAIT=0,VICTORY_WIDE_BACK=0(with late waits the device is lost on RADV, fork issue #184),VICTORY_SHADER_LOOP_LIMIT=256,VICTORY_PIPELINE_WAIT_MS=50,VICTORY_TEXTURE_BUDGET_MB=8192,VICTORY_TEXTURE_NO_WAIT=1,VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1024,VKD3D_CONFIG=descriptor_heap,VICTORY_SKIP_PIPELINES(9 hashes),VICTORY_L7_SKIP=rt,gi,reflectionswith a role table built locally from my own copy (outside the repository).Limits
VICTORY_LATE_WAIT=3andVICTORY_WIDE_BACK=1, paths I have not run. A run on your RTX 4070 Super before merging would help; if something regresses, the A/B switches above (0turns off) narrow it down.6e5d7d7changed no Rust source, so the Linux measurements still apply; the launcher and docs changes were not run in game.Tests
python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools: All checks passed.python -m pytest -q(Linux, Python 3.12.13): 578 passed, 232 skipped, 1 failed:tests/test_jour_j.py::test_missing_executable_is_reported, which fails the same way onmainunder Linux; unrelated.cargo xtask policyinthird_party/victory: "asset policy: 181 files ok".third_party/victoryis identical to890a83a(same tree hash), before and after the rebuild.890a83a:cargo check --profile diag -p victory --features diagnostics(Windows target) on each of the 57 commits, 0 errors; Windows diag build without warnings;cargo test -p victory-shader --lib(Linux) 176 passed, 2 ignored;victory-gputests (Windows target, under GE-Proton11-12, RADV) 158 passed, 2 ignored. The Windows GPU tests ofvictory-shaderdo not compile, already the case at80d58f8.Credits
In
THIRD_PARTY.md, per source repository: Joshua Odom (JoshuuDev), myokex, fxceless, oddiums (commits taken, withCo-authored-by); BitWuehler, MartinIndra02, triippywhale, Spexivus, joroyt, adritoyalser, alexdeliu, gdawid9407, AscilCH, Kaivyyy, sillynocodecat, wildheathen (fork pull requests, ported); Impre-visible, tjthebigbearcat-hub, Calvix2k, Marvisak (VIctory); PastiiJay (KLBF, klbf-lab); Exorion (the rest).AI assistance: the VIctory branch assembled and copied into the repository, the porting commits, this PR and its translations were written with Claude Code (Claude Opus 5.5); the in-game runs and observations are mine.
🤖 Generated with Claude Code
Some title programs convert doubles to floats and sum doubles over the wave: they did not translate ("v_cvt_f32_f64 is not supported", twice in AnyXboxX run 8). v_cvt_f32_f64 is lowered on the dword pair, v_add_f64 whole-wave sums and s_mov_b32 copies are modelled, and makeDouble.f64 is declared with the DOUBLES shader flag. From fxceless/victory-fork #9 by MartinIndra02 (342245e1, b17b69fd, 61e5f79a). Co-Authored-By: Claude Opus 5.5 <[email protected]>The console's tree of v_add_f16 over DPP and permlanes was refused in a block some lanes skip ("a wave sum of 16-bit floats where not every lane runs"). On one 64-lane host wave the running lanes' sum is now taken in f32 by WaveActiveSum and rounded once to 16 bits (an ulp or so off). Two host waves of 32 still refuse it. Targets compute b22a16a178976e1b (14-28 dispatches a frame dropped in the world). Our own leonida/render commit 024f3214, by Exorion. Co-Authored-By: Claude Opus 5.5 <[email protected]>Present in AnyXboxX runs 4, 6 and 8 ("v_permlanex16_b32 is not supported"). Each lane reads src0 of the lane its nibble of {src2, src1} picks, in its own row of 16 or the other row of its half, through WaveReadLaneAt. The pick stays inside a 32-lane half, so two host waves of 32 need no exchange. The shader part of fxceless/victory-fork #134 by triippywhale (8698a80d): the lowering arm and its test. Its v_cvt_f32_f64 is not taken (#9's is), its view heap clamp comes later as VICTORY_L6_HEAP_CLAMP. Co-Authored-By: Claude Opus 5.5 <[email protected]>The console packs edge flags above the 9-bit vertex indices of a mesh primitive. Read whole, an index past the primitive's vertices made triangles go to the wrong vertices or vanish ("squares" and holes in streamed geometry). Port of Marvisak/VIctory #1718 by tjthebigbearcat-hub, adapted to this base (AnyXboxX geo lot 04). Co-Authored-By: Claude Opus 5.5 <[email protected]>Unordered views of textures the title placed in memory itself (a 3D volume in the world) were left out ("placed unordered texture view not mirrored"), so compute passes writing them did nothing. They are now mirrored onto host unordered-access textures, and shader views placed at the same address read from them (VICTORY_L6_PLACED_UAV, on unless 0). From fxceless/victory-fork #114 by Kaivyyy (AnyXboxX lot 6, patches-l6-amd 01). Co-Authored-By: Claude Opus 5.5 <[email protected]>A shader that takes the address of a table's view (to read it as raw memory) got one only for buffer views of resources; for constant buffer views and views of plain memory it got 0 and read nothing ("view address 0" in the lot 6 counts). The address is now given for those too (VICTORY_L7_VIEW_ADDRESS, on unless 0). Ours (AnyXboxX lot 7, patches-l7-stab 04). Runs 14/25. Co-Authored-By: Claude Opus 5.5 <[email protected]>b06ff90), removed by mistake 8c9307562e@LooperSalty on GitHub · 2026-11-25 13:49 UTC · original
Revue de la tête
6e5d7d7(lue statiquement, pas encore lancée) :-BatchCardRehashdisparaît. La PR retire cette option detools/lancer_victory.ps1et son test danstests/test_lanceur_victory.py. Elle vient deb06ff90, déjà dans ta base6802e44, et la copie de VIctory lit toujoursVICTORY_CARD_REHASH_RUNS(crates/victory-gpu/src/host.rs). Ça ressemble à une résolution de conflit : peux-tu remettre l'option et le test ?README.md:10(« submodulethird_party/victory»,80d58f8),docs/running-gta6.md:133(paragraphe « Updating an existing copy », qui contredit la ligne 13) et son jumeau fr,docs/research/victory-xcl-fivestar.md:31(+ fr), commentaires detools/sync_voisins.py:1et:56(« épinglé »).third_party/victory/.github/workflows/ci.ymlet.githooks/pre-commit, qui ne tournent pas dans ce dépôt, donccargo xtask policyn'est plus lancé nulle part. Soit un job dans.github/workflows/tests.yml, soit retirer ces fichiers inertes.bcpack-tables.bin: l'exception est « À décider » dansTHIRD_PARTY.md; sans décision du mainteneur, la copie enfreint la règle 1. Je tranche ça de mon côté.AGENTS.md: ajouter quethird_party/(VIctory, ~123 000 lignes) est exempté de la règle des 400 lignes et de ruff, sinon les audits le signaleront à tort.Côté
main, #204 (tri du dépôt) ne touche pas aux mêmes lignes : fusion simulée sans conflit.@Exorion1er on GitHub · 2026-11-25 14:04 UTC · original
Thanks for the review. The branch is rebuilt and force-pushed (new head
7f426eb, onmain6473db9with #204):-BatchCardRehash: restored inf3c8a8e(b06ff90re-applied as is, option and test). It was my mistake: a two-dot diff againstmainwhile carrying the guides. Againstmain,tools/lancer_victory.ps1now differs only by the messages about the copy.README.mdline 10 and the intro sentence (9 languages), the "Updating an existing copy" paragraph (en, fr),victory-xcl-fivestar(en, fr), and thesync_voisins.pycomments.politique VIctoryintests.yml, which runscargo xtask policyinthird_party/victory(locally: 181 files ok).AGENTS.md: rule 8 exemptsthird_party/, and the policy command is documented.Two more changes, described in the updated PR body:
third_party/victoryis now treated as our own code with no upstream. Code taken from elsewhere is committed by us withSource:andCo-authored-by:lines (new rule 10 inAGENTS.md), andTHIRD_PARTY.mdlists the sources per repository.@LooperSalty on GitHub · 2026-11-25 14:16 UTC · original
Décision du mainteneur :
bcpack-tables.binest admise comme exception au registre deTHIRD_PARTY.md(règle 1 d'AGENTS.md), le 2026-11-25.@Exorion1er, peux-tu remplacer dans la ligne du registre « À décider : proposée par la PR qui copie VIctory dans le dépôt » par « Admise par décision du mainteneur le 2026-11-25 (#199) ; admise dans VIctory par décision de son propriétaire le 2026-11-23 » ? Le reste de la ligne ne change pas : la licence du dépôt ne couvre pas ces données, et aucune autre donnée propriétaire n'entre avec cette décision.
@Exorion1er on GitHub · 2026-11-25 14:19 UTC · original
Done in
a489301: the register row now reads « Admise par décision du mainteneur le 2026-11-25 (#199) ; admise dans VIctory par décision de son propriétaire le 2026-11-23 », rest of the row unchanged.