Upstream since ffe310e: which of this fork's issues it addresses, and what a merge involves #126
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ericomeehan on GitHub · 2026-11-24 21:42 UTC · original
Upstream
mainhas 28 new commits sinceffe310e, the base this fork's changes sit on. Most landed today (2026-11-24), and upstream's README now reports the world drawn and nearly every shader translating: mesh 8,765 of 8,765, vertex/pixel 12,550 of 12,592, compute 2,579 of 2,637. The two trees have complementary strengths: upstream's world is unlit, this fork's is lit. So it seemed worth mapping what upstream now has against the issues open here, and what it would take to bring it in.Nothing below was run against the title. It comes from reading commit messages, issue reports and a trial merge (git only).
Upstream changes that match issues here
Direct matches (the upstream commit describes the same failure):
a_mesh_pipeline_loads_from_the_librarypanics)9c58a1cINVALID_CALLafter UAVs of a depth texture)13bbd6f13091f6c47b529,9c58a1ctranslate --cachetranslates every shader ahead of time, and--pipelinespre-builds pipelines from the shader pack, so a first run needn't start cold.6d021fe,c75fdbaVICTORY_NO_WATCHDOG)532cb7cVICTORY_POKE. #454 itself is still open upstream.Likely related (same area; needs a run to confirm):
E_NOTIMPL)0b35b7fVICTORY_FIDELITYFX_DIR), plus the instructions the console upscaler's shaders need.27c3dc9,0f63757,0b35b7fdocs/fork-ray-tracing.mdbefore going further with DXR.8af0472,0b35b7f86a5ed6,13091f6Not addressed upstream yet: #101 and #62 (wave64 on 32-lane hosts; upstream still lists "some compute programs need a GPU with 64-lane waves", and #189/#578 are open), #103 (the
+0x1330a44breakpoint, upstream issue #1063, still open), #6 (Linux DXC fallback), #39 (a fork-only regression; upstream is smooth), #3/#8 (AMD pipeline skips).What a merge involves
A trial merge of
upstream/maininto this fork'smain(4e17478): 36 files conflict, 274 conflict hunks. The heaviest:victory-shader/src/emit/lower.rsvictory-gpu/src/draw.rsvictory-gpu/src/host.rsvictory-shader/src/emit/shader.rsvictory-gpu/src/descriptor/host.rsvictory-gpu/src/watch.rs,shadow.rsTaken one at a time, only 3 of the 28 upstream commits apply cleanly (
532cb7cVICTORY_POKE,224e786a test tolerance, and the README), so cherry-picking won't get far. Both trees rewrote the same core: copy tracking and the view heap (upstreamc75fdbaalone touches 26 of the conflicting files), and lane masks in the shader translator.Ways to approach it:
Happy to help with any of these: a topic-by-topic breakdown of the fork's change commit, or a list of which conflict hunks are the same fix written twice.
@HenriqueSBueno on GitHub · 2026-11-24 21:44 UTC · original
Correction: I was wrong about this fork. At
4e17478it does handle command-list memory waits.wait_for(list.rs:1889, reached fromwait_value/wait_value64at slots 71/72) cuts the list at the wait and holds what follows whenqueue::cuts()is on. My earlier grep only searched for the type names used upstream. Sorry for the noise.What still stands, as data for comparison: with upstream PR Marvisak/VIctory#1388 and a counter on an RTX 3080, the title held queue work behind these waits 32+ times in ~5 minutes of a world run, while queue-level fence waits held it 0 times. If this fork logs how often
cutholds work, the two can be compared directly.JMAN730/victoryhas a third implementation (7f43361, with fail-open timeouts).AI-assisted (Claude Code)
@ericomeehan on GitHub · 2026-11-24 21:49 UTC · original
I tried the cheapest version of the merge, bringing in only upstream's shader translator (
victory-shader, applied three-way fromffe310e..upstream/main), to see whether it could land on its own. It can't, cleanly. Here's what's coupled, and a plan for doing it in steps. Git and reading only; nothing was built or run.Upstream's translator now needs upstream's GPU side
Upstream's
HostShaderhas five new flags, and each one tells the host to bind something this fork's GPU crate doesn't provide:memory,memory_writest0and page bitmapu0inMEMORY_SPACE27c3dc9,0f63757view_addressest1inMEMORY_SPACE27c3dc9heap,heap_writesc75fdbaPrograms upstream used to refuse now translate with these flags set (the ray-tracing builder and tracers among them). Bound to this fork's GPU crate as it is, they'd run with nothing behind those registers: wrong output at best, device removal at worst. The fork's GPU code also builds
HostShaderdirectly (shader_cache.rs:315and:333), so the struct change alone stops it compiling.Three features were built twice
emit/rect.rsrect_list_gs,shader.rsGeometry, container fieldgeometryemit/rect.rsrectangle_gs(vs), container fieldgsroot_indexed_viewsfromresource::trackheap/heap_writesflags plusc75fdbaon the GPU side90228a7), which #75 ties to ~80 more refusals on a 32-lane card8af0472and the lane-mask part of0b35b7fEach needs one side picked rather than both merged. Most of the conflicts in
emit/lower.rs(64 hunks),emit/shader.rs,resource.rsandcontainer.rscome from these.A way to do it in steps
victory-shader, keep this fork's version of the three duplicates for now, and have the GPU side refuse any pipeline whose shader setsmemory,view_addressesorheap, as those programs are refused today. Everything else picks up upstream's coverage and accuracy fixes (#53's signature rows, f16 rounding, discards, cube gradients and more) with no new GPU requirements.27c3dc9and0f63757) unblocks the ray-tracing builder (#16, and compare with #17's DXR plan);c75fdba), decided againstroot_indexed_views;6d021fe) for #31 and #54.Upstream is moving fast (28 commits in a day), so step 1 gets more expensive the longer it waits.
I have the small conflicts in the translator resolved locally (test helpers onto upstream's
range::build, struct unions, a comment that named the title). I can push that as a branch, or take step 1 further if you'd like the help and can point me at which side you want for each duplicate.@ericomeehan on GitHub · 2026-11-24 22:03 UTC · original
Several open PRs overlap, so here's a map of them for whoever merges. Each line says which ones edit the same lines and what I'd merge. I read the diffs against
4e17478. I didn't build or run any of them.ISG1/OSG1sort line inemit/container.rs. #61 (PSV0names), #122 (input usage after the clean-up passes) and #150 (interpolation modes) each fix a different part.probe_view_limitand the heap creation indescriptor/host.rs, and both change the shader cache key.v_writelane_b32outside EXEC (#111)emit/lower.rs, and a test with the same name.VICTORY_SKIP_PIPELINESin release buildsdraw.rsandpipeline.rs, and the same README row. #106 also adds texture-queue limits.d3dcompiler_47refusing the host's own HLSL. #20 falls back todxcompiler.dll. #127 rewrites the four internal shaders and serializes their root signatures in Rust, so no extra DLL is needed. #28 bundles a DXC fallback with watchdog hooks, worker stacks,.patchfiles and scripts.build()inshader_cache.rs. #35 adds the host wave width; #147 keys by the translator's sources instead of the executable.90228a7, one Windows 10 + Agility setup)WaveSize(32)and a pipeline on a 32-lane card.90228a7. The Windows 11 runs on a 3090 and a 4070 show no extra refusals with90228a7.descriptor/host.rs; #104 caps the staged upload on the table path indraw.rs.Signatures. I checked against DXC's container writer (
DxilContainerAssembler.cpp). It sorts signature rows by (stream, register, offset of the semantic name), never by column.mainuses (row, column). #112 uses exactly DXC's key. #110 and #124 sort by row only, which keeps element order. That gives the same order except when a later system value shares an earlier name offset. In validator-1.6 mode, DXC gives each arbitrary element its own name entry, and every element of one system-value kind shares the canonical spelling (GetName()), so #110/#124's canonical names match it. #124 is the only PR that stops shifting the mask and usage by the column for an unallocated element. That matches DXC'sGetColsAsMask(). #150's author reports that #112 or #110 alone fixes 72 programs and leaves no "Signature does not match" errors on their dump, and that #150 + #112 gives +139 validated.View heap. The two figures in the reports agree. #125's and #149's logs show the title asking for 1,245,184 views. The DRED logs in #98 and #134 show a heap of 0x2e00000 bytes, which is 1,507,328 slots at 32 bytes each, and that equals 1,245,184 plus the 2^18 dynamic slots VIctory adds (
HostHeap::newindescriptor/host.rs). #98 applies the 1,000,000 cap on every GPU, which leaves 1,000,000 − 2^18 − 1 = 737,855 slots for the title's views. So on AMD about 507k of the title's views would read the null slot, as they already do on NVIDIA. #134 ends the heap at a null slot at 2^21 where the host can make a heap that size; 1,507,328 fits, so every title view stays reachable. Where it can't, #134 falls back to 1,000,000. #134 also keys the cache by the actual limit, where #98 keys it by an on/off flag.#119 / #139. The two behave the same.
exchange_halvesstays in its block, the extraWAVE_OPSflag in #119 is already set earlier, andwrite_placed(.., None)equalswrite_i(.., None)for VOP3. #139 also records what is still unfixed: a lane write inside a per-lane branch that lane K doesn't take is still lost on a host whose waves are as wide as the console's.Written with an AI assistant (Claude).
@rlmd-fonseca on GitHub · 2026-11-24 22:23 UTC · original
I tested the buffer-view hypothesis for the missing prison-room geometry and lighting discussed above. The fork rejected both a read-only view and a writable view at this checkpoint. A local change removed those two warning signatures in a later run, but the dark-face symptom persisted.
Setup
6236d5785a9751395bb8df737cc89083ab9e2468, with local depth/material changes drawn from #77, #81, #82 and #90. Windows release build with diagnostics, cross-compiled in WSL.VICTORY_RELAY=0,VICTORY_LATE_WAIT=0,VICTORY_WIDE_BACK=1,VICTORY_CARD_BUFFERS_MIN_MB=1, andVICTORY_CARD_BUFFERS_MB=1024.Run
Load a copy of the prison checkpoint with the Series X profile and let the room render. The checkpoint build can draw the foreground face, bunks, towels, and wall posters together. Face lighting varies across shots. The comparison runs were stopped manually. Their camera angles, cache warm-up and competing GPU load were uncontrolled, so I have no comparable FPS result.
Comparison or failure details
buffer view not on an element of its host copy offset=23965712 element=12; later,unordered buffer view not on an element of its host copy offset=8 element=32.offset=18067136 element=12.For anyone porting the upstream fix, the 12-byte read-only case is worth instrumenting alongside the writable case. The original warnings do not record the descriptor format, and I have not established which draw consumes either view or whether either one affects wall visibility.
AI-assisted report prepared with OpenAI Codex (GPT-6) from local Windows runs and renderer logs.
@superboynick on GitHub · 2026-11-25 00:50 UTC · original
Where this sits. Run-time counterpart of what @UNYTIX called out on the census side in upstream #838: "of the 74, 72 are the title's own DLL exports; only OLEAUT32 ordinals 4 and 6 are real gaps." I claim neither that result nor the 88/427/72/0 baseline @AgneyaK published in #1611 — only bind-side confirmation of it, plus one row your table lacks.
Two runtimes, one machine, one image (BLAKE3
b99f876b74d4a77f…), fork @31714deand upstream @d763582 alternating twice each:No jitter. An older upstream build on a second machine and a transcript from a third also land on 88/427/72/0 (the transcript books those same 72 in
missing). So the import total is 587 in all four (88+427+72there,91+424+72above), and the 72 decomposes as @UNYTIX's38+23+7+4(#811).title=72 / missing=0is an image property, not a runtime one.hle/hostis where the version shows: 88/427 → 91/424, +3/−3, in both alternations.The missing row. @ericomeehan's table lists
0b35b7f(FidelityFX),27c3dc9/0f63757(page tables),c75fdba(view heap) — nothing from the HLE registry. Those are exactly what movesbound:7216ab71(rpcrt4) anda7847a52/d4ef9ebc(lifecycle). The +3 is exactly lifecycle's three new hle exports — two Constrained-change registrations andShowWindow— all three reached by this title. rpcrt4 and FidelityFX contribute 0 here; the latter only shifts 4 symbols fromtitletohlewhenVICTORY_FIDELITYFX_DIRis set.patched=53246is identical in both trees, so that's the image too. TLSindex10 → 11 is a loader-assigned slot, not a fingerprint — don't gate on it.For a merge: the
boundline becomes 91/424 whether or not you touch rendering. Baselines keyed to it have to move;title/missingcan be invariants.Falsification: if the attribution is wrong, likeliest is that the three exports don't map one-to-one onto the +3 — I have counts, not a per-symbol table, so a coincidental swap looks identical here.
Boundary: no screenshots, no frame grabs, no dumps, no per-entry import tables — counts, one BLAKE3, build ids. AI-assisted, per fork convention.
@superboynick on GitHub · 2026-11-25 01:28 UTC · original
Follow-up to my comment above — two measurements, no new conclusion. Both were taken today on the same image and the same game directory, and neither restates #1697, #838 or #1611.
A. The System Init wall is shared
bound(hle/host/title/missing)31714de, defaults0x80000003 @ image+0x1ce6e13--unimplemented trap/zero--console series-x/series-sVICTORY_RELAY 0/2title00000000→7952987A, storage 0 → 2048 MB--strictInitializeCriticalSectionExunimplemented(1/4)
@superboynick on GitHub · 2026-11-25 01:28 UTC · original
(continued 2/4)
Same halt address, same state, zero frames, both trees. The five switches that would plausibly move an unimplemented-import trap don't move it, and
--strictdies earlier instead — with the bind line collapsing to 88 / 0 / 403, i.e. the assertion fires while host passthrough is still behaving, so it isn't a symptom of the accounting.The companion files matter for a different reason: adding the 31 small files from the package root (18.76 MB —
common.rpf,script.rpf,resources.pri,layout_*_xs.xml,MicrosoftGameConfig.bin,Update.alignmentchunk,xbs_*.png) movestitlefrom00000000to7952987A, storage from 0 MB to 2048 MB, and createsdata/7952987A/— the manifest is really consumed. The crash offset does not move a byte. So this is a shared limitation rather than a fork regression, and consolidating the trees neither fixes nor worsens it.B. Shader coverage is merge-neutral; throughput is not
@superboynick on GitHub · 2026-11-25 01:28 UTC · original
(continued 3/4)
31714de--validate(dxil.dll 101.7.2308.24)Pipeline State Validation does not match expectedDenominator
195 + 8,765 + 14,247 + 2,682 = 25,889equals #1697's total exactly, so it is the same archive under the same dedup. Therefusedcolumn is not comparable, though: the two builds' 7-count gap is 1.4% and the directions cancel, while--validaterejects 17,526 of the same corpus — the same ruler question producing numbers 36× apart, and #1697's 4,165 matching neither. So I cite his denominator and don't compare refused counts.The three README "world" figures (mesh 8,191/8,506, v+p 10,617/12,346, compute 1,643/2,539) are a run-set, not the archive — @ericomeehan's distinction — and our denominators 8,765 / 14,247 / 2,682 exceed all of them.
@superboynick on GitHub · 2026-11-25 01:28 UTC · original
(continued 4/4)
For a merge: A is a shared limitation, so consolidating fixes nothing and breaks nothing there. B says either tree produces equivalent coverage, with the fork ~2.7× faster per archive — an iteration-speed difference, not an output one.
Boundary: the crash offset only, no bytes, no disassembly, no dumps, no screenshots, no pipeline libraries, no per-hash tables. AI-assisted, per fork convention.
@iloveslopware on GitHub · 2026-11-25 02:13 UTC · original
Build-level check of the translator-only merge (fork
main+ upstreamvictory-shader@940d32f). I took the cheapest step of @ericomeehan's trial from reading to compiling: a worktree on forkmain(c96b4f2),victory-shaderswapped wholesale for upstream's currentmain, thencargo checkfor the translator alone and for the GPU crate that consumes it — host target andx86_64-pc-windows-msvc(clang-cl cross). Nothing was run against the title.It fails before Rust starts, on one line. Upstream's translator switched
zlib-rs→miniz_oxide, so the fork's root manifest lacks the workspace dep and every member fails manifest resolution. Addingminiz_oxide = "0.9.1"to[workspace.dependencies]clears it.The translator alone is self-consistent. With that line,
cargo check -p victory-shaderpasses on both targets. The coupling is entirely on the consumer side.victory-gpufails with 27 errors — and most run the other way from the table above. The five newHostShaderflags are there (memory,memory_writes,view_addresses,heap,heap_writes) androot_indexed_viewsis gone; but the literal atshader_cache.rs:328fails on the removed field before the five missing ones are even reported. The bulk of the surface is the fork's GPU code calling translator API that upstream's tree does not have:resource::RootIndexedView,HostShader::root_indexed_viewsdraw.rs,shader_cache.rsUSER_MEMORY_BASE,USER_VIEW_ADDRESS,USER_VIEW_BIAS,MEMORY_PAGES,MEMORY_FAULTS,SLOT_MEMORY,SLOT_STRIDES,SLOT_STRIDES_COUNT,SLOT_FAULTSdraw.rs,memory.rs,descriptor/host.rs,pipeline/host.rsspill(module),group_sync,shader_opt,rect_list_gs,set_host_max_wave,view_heap_limit,set_view_heap_limitpipeline.rs,host.rs,shader_cache.rs,descriptor/host.rsAll 27 errors sit in
victory-gpu(7 files); nothing outside it and its dependents errors against the swapped translator.So the coupling is bidirectional and heavier than "bring the GPU commits for the five flags along": the fork's translator has grown its own surface that the fork's GPU side stands on — root-indexed views, the spill pass, the
SLOT_*/USER_*slots, the view-heap limits,group_sync/shader_opt/rect_list_gs. Upstream's27c3dc9/0f63757/c75fdbaanswer the five flags; nothing upstream answers the fork-only rows. Whichever direction the merge takes, that table is the reconciliation list.Three smaller things the build surfaced, for whoever merges:
warn(type_complexity,needless_range_loop,undocumented_unsafe_blocks, …), so a merge re-flags the fork's newer code wholesale. #499 is already walking theundocumented_unsafe_blockspart back.victory-shadergrew a[[bench]] guard_runs(harness = false); harmless, just new.translate --cacheis a fork-side twin of upstream'sc47b529— one more built-twice row if it lands.Boundary: manifests and compile checks only — no title, no shaders translated, no pipelines built, nothing run. Fork
mainc96b4f2, upstream940d32f(ahead of the 28-commit set analyzed upthread). AI-assisted (GLM via OpenCode).@iloveslopware on GitHub · 2026-11-25 03:08 UTC · original
Follow-up: the merge question taken to the actual shader pack (offline, translation only). Continuing the build-verification comment above: I ran the fork's
translatecensus over the retailshaders.rpf— 26,084 programs, the same pack and count as the offline runs quoted in #279 — once with each side's translator, same harness, same pack: forkmainc96b4f2(through itsspillentry) and upstream940d32f(throughrange::build). Linux host,--listonly: no validator, no pipelines, nothing run against the title. Counts and reasons only, nothing else from the pack.Totals per 26,084 programs — the emitted column matches what @superboynick's runtime A/B measured independently at
31714de/d763582(25,598 / 25,591):c96b4f2940d32f(Upstream's 3 resource-failed compute programs never reach its emit table, so its compute line reads 2,621 of 2,679 rather than of 2,682.)
Bucket by bucket (fork / upstream): descriptor chosen by control flow 40 / 1; descriptor read only as data 40 / 36; hardware SGPR input 10 / 0; register joining a lane mask and data, read as data 0 / 40; lane-mask family 5 / 14;
v_cvt_f32_f640 / 5; barycentrics read directly 0 / 3;v_permlanex16_b320 / 1; descriptor's address or format 1 / 0.(One behavioral edge inside those lane-mask numbers: they are wave-width-sensitive —
VICTORY_HOST_MAX_WAVE=32, a knob the fork CLI carries and upstream's lacks, flips three programs of this pack between fail and emit and reproduces a #279 32-lane runtime datapoint offline.)Per program, the failure sets are near-disjoint — which the near-equal totals hide. 54 programs fail only on the fork, all of which upstream emits: 40 control-flow descriptors, 10 SGPR inputs, 3 lane-mask shapes, 1 descriptor-read. 61 fail only upstream, all of which the fork emits: 36 register-joining, 14 lane-mask shapes, 3
v_cvt_f32_f64, 3 barycentrics, 3 resource-tracking, 1v_permlanex16_b32, 1 control-flow. And 42 fail on both: the 35-program descriptor-read-as-data family #279 tracks (the identical set on both trees — upstream emits only 1 of the fork's 40 there; its bucket of 36 differs by takingceb5eb68cd99cb07under a different reason, not by fixing four), plus 7 compute shaders that stop at different points — on #279's926c46bab3b86bd6, upstream still refuses thev_cvt_f32_f64the fork clears, and the fork then stops later on a lane mask instead. A translator that took the better result per program would emit 25,652 — 54 more than the fork, 61 more than upstream, 42 still short of the 25,694 stage programs.So, measured on real title data: "equivalent coverage" holds in total but not in composition. Upstream's GPU-side line (root-indexed views' replacement, the five
HostShaderflags) arrives with control-flow-descriptor and SGPR-input coverage the fork has not grown; the fork's translator emits through shapes upstream still refuses, in near-equal count. A merge that keeps the fork's decoder and takes upstream's tracker work lands the union; anything that replaces one side's translate path wholesale drops ~55 programs the other side was carrying. The reconciliation list upthread is what stands between the repo and that union.One more consumer for that list, found while building the trial CLI:
apps/victoryis a tenth caller of fork-only translator API. The fork'stranslateenters throughspill::build(upstream:range::build, which also returns the structured form), and the CLI additionally usesemit::census,set_host_max_wave,set_view_heap_limit, and anInterp::Weightedarm — a merge touches the command-line surface too, not just the GPU crate.Boundary: offline translation census only — no
--validate, no pipelines, no title; aggregates over program names and failure reasons, nothing else derived from the pack. AI-assisted (GLM via OpenCode).