Upstream since ffe310e: which of this fork's issues it addresses, and what a merge involves #126

Open
opened 2026-11-26 03:36:34 +00:00 by github-bot · 11 comments
Owner

@⁠ericomeehan on GitHub · 2026-11-24 21:42 UTC · original

Upstream main has 28 new commits since ffe310e, 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):

Issue here Upstream commit Why it matches
#4 (a_mesh_pipeline_loads_from_the_library panics) 9c58a1c "A mesh pipeline's topology is given explicitly: the library refused every mesh pipeline without it." #14 here made the test skip; this looks like the root cause.
#72 (INVALID_CALL after UAVs of a depth texture) 13bbd6f "A depth texture the title also writes through unordered access gets a twin per plane, copied where the use changes."
#53 (DXIL input-signature validation fails) 13091f6 Pixel and mesh I/O: reused interpolation registers, 16-bit packing, signature rows ordered by register.
#27 (0.7 → 4.3 fps as the pipeline library fills) c47b529, 9c58a1c translate --cache translates every shader ahead of time, and --pipelines pre-builds pipelines from the shader pack, so a first run needn't start cold.
#31, #10, #54 (copy-back and memory are the biggest cost; ~24 GB in use) 6d021fe, c75fdba "Copy-back snapshots only declared ranges"; one page table per view heap; changes tracked per 64 KiB page instead of per buffer.
#57, #10, #13, #6 (testers hand-merging upstream PR #454 VICTORY_NO_WATCHDOG) 532cb7c Upstream's own answer to the title ending itself when its main loop stalls: VICTORY_POKE. #454 itself is still open upstream.

Likely related (same area; needs a run to confirm):

Issue here Upstream commit Note
#13 (Series S: FSR4 pipeline deserialization E_NOTIMPL) 0b35b7f FidelityFX on host and console paths (VICTORY_FIDELITYFX_DIR), plus the instructions the console upscaler's shaders need.
#16 (ray-tracing builder crashes on f16 box bounds), #17 (DXR proposal) 27c3dc9, 0f63757, 0b35b7f The builder and tracers now read and write title memory at raw addresses through a page table, and the BVH intersection instruction runs on the host. Worth comparing with docs/fork-ray-tracing.md before going further with DXR.
#75 (~80 more compute pipelines refused after #11's lane-mask change) 8af0472, 0b35b7f Upstream reworked lane masks in compute, mesh and pixel programs independently. The two approaches will meet in the merge.
#26, #7 (a few mesh, pixel and compute pipelines refused) the shader commits as a set Upstream's census claims full mesh coverage and all but 42 vertex/pixel programs.
#15, #99, #93 (missing face/torso, hair, control-hint glyphs) 86a5ed6, 13091f6 Structured views that didn't start on an element "read zeros: the world's culling constants and the colour table bakes among them". Plausible, not certain.

Not 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 +0x1330a44 breakpoint, 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/main into this fork's main (4e17478): 36 files conflict, 274 conflict hunks. The heaviest:

File Hunks
victory-shader/src/emit/lower.rs 52
victory-gpu/src/draw.rs 30
victory-gpu/src/host.rs 23
victory-shader/src/emit/shader.rs 17
victory-gpu/src/descriptor/host.rs 15
victory-gpu/src/watch.rs, shadow.rs 12 each

Taken one at a time, only 3 of the 28 upstream commits apply cleanly (532cb7c VICTORY_POKE, 224e786 a test tolerance, and the README), so cherry-picking won't get far. Both trees rewrote the same core: copy tracking and the view heap (upstream c75fdba alone touches 26 of the conflicting files), and lane masks in the shader translator.

Ways to approach it:

  1. Merge now, while the gap is 28 commits. Upstream is moving fast; the conflict count will only grow. A merge done in one sitting, with the README's "Known problems" scenes as the check, keeps the fork's lighting and gets upstream's shader coverage.
  2. Split this fork's single change commit into topics first (shadows/lighting, copy-back switches, lane masks, ray tracing, clean-up passes). Each topic then merges or rebases on its own, and regressions like #75 can be bisected.
  3. Offer the fork's lighting upstream. Upstream's README says "surfaces are unlit"; this fork has them lit. If the lighting fixes went upstream as PRs, both trees would carry them and future merges would shrink.

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.

**@⁠ericomeehan** on GitHub · 2026-11-24 21:42 UTC · [original](https://github.com/fxceless/victory-fork/issues/126) Upstream `main` has 28 new commits since `ffe310e`, 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): | Issue here | Upstream commit | Why it matches | |---|---|---| | #4 (`a_mesh_pipeline_loads_from_the_library` panics) | 9c58a1c | "A mesh pipeline's topology is given explicitly: the library refused every mesh pipeline without it." #14 here made the test skip; this looks like the root cause. | | #72 (`INVALID_CALL` after UAVs of a depth texture) | 13bbd6f | "A depth texture the title also writes through unordered access gets a twin per plane, copied where the use changes." | | #53 (DXIL input-signature validation fails) | 13091f6 | Pixel and mesh I/O: reused interpolation registers, 16-bit packing, signature rows ordered by register. | | #27 (0.7 → 4.3 fps as the pipeline library fills) | c47b529, 9c58a1c | `translate --cache` translates every shader ahead of time, and `--pipelines` pre-builds pipelines from the shader pack, so a first run needn't start cold. | | #31, #10, #54 (copy-back and memory are the biggest cost; ~24 GB in use) | 6d021fe, c75fdba | "Copy-back snapshots only declared ranges"; one page table per view heap; changes tracked per 64 KiB page instead of per buffer. | | #57, #10, #13, #6 (testers hand-merging upstream PR #454 `VICTORY_NO_WATCHDOG`) | 532cb7c | Upstream's own answer to the title ending itself when its main loop stalls: `VICTORY_POKE`. #454 itself is still open upstream. | **Likely related** (same area; needs a run to confirm): | Issue here | Upstream commit | Note | |---|---|---| | #13 (Series S: FSR4 pipeline deserialization `E_NOTIMPL`) | 0b35b7f | FidelityFX on host and console paths (`VICTORY_FIDELITYFX_DIR`), plus the instructions the console upscaler's shaders need. | | #16 (ray-tracing builder crashes on f16 box bounds), #17 (DXR proposal) | 27c3dc9, 0f63757, 0b35b7f | The builder and tracers now read and write title memory at raw addresses through a page table, and the BVH intersection instruction runs on the host. Worth comparing with `docs/fork-ray-tracing.md` before going further with DXR. | | #75 (~80 more compute pipelines refused after #11's lane-mask change) | 8af0472, 0b35b7f | Upstream reworked lane masks in compute, mesh and pixel programs independently. The two approaches will meet in the merge. | | #26, #7 (a few mesh, pixel and compute pipelines refused) | the shader commits as a set | Upstream's census claims full mesh coverage and all but 42 vertex/pixel programs. | | #15, #99, #93 (missing face/torso, hair, control-hint glyphs) | 86a5ed6, 13091f6 | Structured views that didn't start on an element "read zeros: the world's culling constants and the colour table bakes among them". Plausible, not certain. | **Not 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 `+0x1330a44` breakpoint, 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/main` into this fork's `main` (`4e17478`): **36 files conflict, 274 conflict hunks.** The heaviest: | File | Hunks | |---|---:| | `victory-shader/src/emit/lower.rs` | 52 | | `victory-gpu/src/draw.rs` | 30 | | `victory-gpu/src/host.rs` | 23 | | `victory-shader/src/emit/shader.rs` | 17 | | `victory-gpu/src/descriptor/host.rs` | 15 | | `victory-gpu/src/watch.rs`, `shadow.rs` | 12 each | Taken one at a time, only 3 of the 28 upstream commits apply cleanly (`532cb7c` `VICTORY_POKE`, `224e786` a test tolerance, and the README), so cherry-picking won't get far. Both trees rewrote the same core: copy tracking and the view heap (upstream c75fdba alone touches 26 of the conflicting files), and lane masks in the shader translator. **Ways to approach it:** 1. **Merge now, while the gap is 28 commits.** Upstream is moving fast; the conflict count will only grow. A merge done in one sitting, with the README's "Known problems" scenes as the check, keeps the fork's lighting and gets upstream's shader coverage. 2. **Split this fork's single change commit into topics first** (shadows/lighting, copy-back switches, lane masks, ray tracing, clean-up passes). Each topic then merges or rebases on its own, and regressions like #75 can be bisected. 3. **Offer the fork's lighting upstream.** Upstream's README says "surfaces are unlit"; this fork has them lit. If the lighting fixes went upstream as PRs, both trees would carry them and future merges would shrink. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:34 +00:00
Author
Owner

@⁠HenriqueSBueno on GitHub · 2026-11-24 21:44 UTC · original

Correction: I was wrong about this fork. At 4e17478 it does handle command-list memory waits. wait_for (list.rs:1889, reached from wait_value/wait_value64 at slots 71/72) cuts the list at the wait and holds what follows when queue::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 cut holds work, the two can be compared directly. JMAN730/victory has a third implementation (7f43361, with fail-open timeouts).

AI-assisted (Claude Code)

**@⁠HenriqueSBueno** on GitHub · 2026-11-24 21:44 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7145333313) **Correction:** I was wrong about this fork. At `4e17478` it does handle command-list memory waits. `wait_for` (`list.rs:1889`, reached from `wait_value`/`wait_value64` at slots 71/72) cuts the list at the wait and holds what follows when `queue::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 `cut` holds work, the two can be compared directly. `JMAN730/victory` has a third implementation (`7f43361`, with fail-open timeouts). AI-assisted (Claude Code)
Author
Owner

@⁠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 from ffe310e..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 HostShader has five new flags, and each one tells the host to bind something this fork's GPU crate doesn't provide:

Flag What the host must do Upstream GPU commit
memory, memory_writes bind the title-memory page table t0 and page bitmap u0 in MEMORY_SPACE 27c3dc9, 0f63757
view_addresses bind the view addresses t1 in MEMORY_SPACE 27c3dc9
heap, heap_writes keep every view in the heap current, since the shader picks descriptors at computed indices c75fdba

Programs 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 HostShader directly (shader_cache.rs:315 and :333), so the struct change alone stops it compiling.

Three features were built twice

Feature This fork Upstream
Rectangle lists (topology 17) through a geometry shader emit/rect.rs rect_list_gs, shader.rs Geometry, container field geometry its own emit/rect.rs rectangle_gs(vs), container field gs
Views selected at computed heap indices root_indexed_views from resource::track the heap / heap_writes flags plus c75fdba on the GPU side
Lane masks in compute #11 (90228a7), which #75 ties to ~80 more refusals on a 32-lane card 8af0472 and the lane-mask part of 0b35b7f

Each needs one side picked rather than both merged. Most of the conflicts in emit/lower.rs (64 hunks), emit/shader.rs, resource.rs and container.rs come from these.

A way to do it in steps

  1. Shader translator first, behind a gate. Port victory-shader, keep this fork's version of the three duplicates for now, and have the GPU side refuse any pipeline whose shader sets memory, view_addresses or heap, 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.
  2. Then the GPU features one at a time, each lifting part of the gate:
    • the page table (27c3dc9 and 0f63757) unblocks the ray-tracing builder (#16, and compare with #17's DXR plan);
    • heap-wide views (c75fdba), decided against root_indexed_views;
    • copy-back of declared ranges only (6d021fe) for #31 and #54.
  3. Settle each duplicate with an A/B on real cards. The hardware table on #96 has volunteers on most GPUs, and #75's reporter already has the before/after setup for lane masks.

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 21:49 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7145437810) I tried the cheapest version of the merge, bringing in only upstream's shader translator (`victory-shader`, applied three-way from `ffe310e..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 `HostShader` has five new flags, and each one tells the host to bind something this fork's GPU crate doesn't provide: | Flag | What the host must do | Upstream GPU commit | |---|---|---| | `memory`, `memory_writes` | bind the title-memory page table `t0` and page bitmap `u0` in `MEMORY_SPACE` | 27c3dc9, 0f63757 | | `view_addresses` | bind the view addresses `t1` in `MEMORY_SPACE` | 27c3dc9 | | `heap`, `heap_writes` | keep every view in the heap current, since the shader picks descriptors at computed indices | c75fdba | Programs 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 `HostShader` directly (`shader_cache.rs:315` and `:333`), so the struct change alone stops it compiling. ### Three features were built twice | Feature | This fork | Upstream | |---|---|---| | Rectangle lists (topology 17) through a geometry shader | `emit/rect.rs` `rect_list_gs`, `shader.rs` `Geometry`, container field `geometry` | its own `emit/rect.rs` `rectangle_gs(vs)`, container field `gs` | | Views selected at computed heap indices | `root_indexed_views` from `resource::track` | the `heap` / `heap_writes` flags plus c75fdba on the GPU side | | Lane masks in compute | #11 (90228a7), which #75 ties to ~80 more refusals on a 32-lane card | 8af0472 and the lane-mask part of 0b35b7f | Each needs one side picked rather than both merged. Most of the conflicts in `emit/lower.rs` (64 hunks), `emit/shader.rs`, `resource.rs` and `container.rs` come from these. ### A way to do it in steps 1. **Shader translator first, behind a gate.** Port `victory-shader`, keep this fork's version of the three duplicates for now, and have the GPU side refuse any pipeline whose shader sets `memory`, `view_addresses` or `heap`, 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. 2. **Then the GPU features one at a time,** each lifting part of the gate: - the page table (27c3dc9 and 0f63757) unblocks the ray-tracing builder (#16, and compare with #17's DXR plan); - heap-wide views (c75fdba), decided against `root_indexed_views`; - copy-back of declared ranges only (6d021fe) for #31 and #54. 3. **Settle each duplicate with an A/B on real cards.** The hardware table on #96 has volunteers on most GPUs, and #75's reporter already has the before/after setup for lane masks. 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.
Author
Owner

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

Cluster PRs Relation Suggestion
DXIL signatures (#53, #12) #61, #110, #112, #124, #122, #150 #110, #112 and #124 rewrite the same ISG1/OSG1 sort line in emit/container.rs. #61 (PSV0 names), #122 (input usage after the clean-up passes) and #150 (interpolation modes) each fix a different part. Merge #112. Close #110, since #124 covers all of it. Cut #124 down to its canonical names and unallocated-column fix, on top of #112. #61, #122 and #150 are independent.
View heap on AMD #98, #134 Same device removal. Both rewrite probe_view_limit and the heap creation in descriptor/host.rs, and both change the shader cache key. #134
v_writelane_b32 outside EXEC (#111) #119, #139 Same approach on the same lines of emit/lower.rs, and a test with the same name. One of them. #139's test covers more.
VICTORY_SKIP_PIPELINES in release builds #91, #106 Same gates in draw.rs and pipeline.rs, and the same README row. #106 also adds texture-queue limits. One of them; see my separate comment on #91.
Wine/Proton run-time HLSL #20, #28, #127 All three fix d3dcompiler_47 refusing the host's own HLSL. #20 falls back to dxcompiler.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, .patch files and scripts. #20 or #127, not both. Split #28 so its non-Wine parts can be reviewed on their own.
Shader cache key #35, #147 Complementary, but both rewrite build() in shader_cache.rs. #35 adds the host wave width; #147 keys by the translator's sources instead of the executable. Both. Whichever merges second has to keep the wave-width input.
#75 (more pipelines refused after 90228a7, one Windows 10 + Agility setup) #35, #121 Neither PR is linked from #75 yet. #35 covers the stale-cache explanation offered in the thread (the cache key leaves out the host wave width). #121 narrows 90228a7's rule that an M0-relative read never touches a parking VGPR: the slot stays parked only when M0 is known to select a different register. Its author reports that a previously blocked compute program now gets WaveSize(32) and a pipeline on a 32-lane card. Ask the #75 reporter to try #35 with an empty shader cache, and #121, before reverting 90228a7. The Windows 11 runs on a 3090 and a 4070 show no extra refusals with 90228a7.
64 KiB constant buffers #24, #104 Complementary, in different files. #24 caps the view in descriptor/host.rs; #104 caps the staged upload on the table path in draw.rs. Both.

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. main uses (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's GetColsAsMask(). #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::new in descriptor/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_halves stays in its block, the extra WAVE_OPS flag in #119 is already set earlier, and write_placed(.., None) equals write_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).

**@⁠ericomeehan** on GitHub · 2026-11-24 22:03 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7145745464) 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. | Cluster | PRs | Relation | Suggestion | |---|---|---|---| | DXIL signatures (#53, #12) | #61, #110, #112, #124, #122, #150 | #110, #112 and #124 rewrite the same `ISG1`/`OSG1` sort line in `emit/container.rs`. #61 (`PSV0` names), #122 (input usage after the clean-up passes) and #150 (interpolation modes) each fix a different part. | Merge #112. Close #110, since #124 covers all of it. Cut #124 down to its canonical names and unallocated-column fix, on top of #112. #61, #122 and #150 are independent. | | View heap on AMD | #98, #134 | Same device removal. Both rewrite `probe_view_limit` and the heap creation in `descriptor/host.rs`, and both change the shader cache key. | #134 | | `v_writelane_b32` outside EXEC (#111) | #119, #139 | Same approach on the same lines of `emit/lower.rs`, and a test with the same name. | One of them. #139's test covers more. | | `VICTORY_SKIP_PIPELINES` in release builds | #91, #106 | Same gates in `draw.rs` and `pipeline.rs`, and the same README row. #106 also adds texture-queue limits. | One of them; see my separate comment on #91. | | Wine/Proton run-time HLSL | #20, #28, #127 | All three fix `d3dcompiler_47` refusing the host's own HLSL. #20 falls back to `dxcompiler.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, `.patch` files and scripts. | #20 or #127, not both. Split #28 so its non-Wine parts can be reviewed on their own. | | Shader cache key | #35, #147 | Complementary, but both rewrite `build()` in `shader_cache.rs`. #35 adds the host wave width; #147 keys by the translator's sources instead of the executable. | Both. Whichever merges second has to keep the wave-width input. | | #75 (more pipelines refused after 90228a7, one Windows 10 + Agility setup) | #35, #121 | Neither PR is linked from #75 yet. #35 covers the stale-cache explanation offered in the thread (the cache key leaves out the host wave width). #121 narrows 90228a7's rule that an M0-relative read never touches a parking VGPR: the slot stays parked only when M0 is known to select a different register. Its author reports that a previously blocked compute program now gets `WaveSize(32)` and a pipeline on a 32-lane card. | Ask the #75 reporter to try #35 with an empty shader cache, and #121, before reverting 90228a7. The Windows 11 runs on a 3090 and a 4070 show no extra refusals with 90228a7. | | 64 KiB constant buffers | #24, #104 | Complementary, in different files. #24 caps the view in `descriptor/host.rs`; #104 caps the staged upload on the table path in `draw.rs`. | Both. | **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. `main` uses (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's `GetColsAsMask()`. #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::new` in `descriptor/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_halves` stays in its block, the extra `WAVE_OPS` flag in #119 is already set earlier, and `write_placed(.., None)` equals `write_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).
Author
Owner

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

  • Fork base 6236d5785a9751395bb8df737cc89083ab9e2468, with local depth/material changes drawn from #77, #81, #82 and #90. Windows release build with diagnostics, cross-compiled in WSL.
  • Series X profile, 1920×1080. Windows 11 build 26200.9974, Ryzen 9 7950X3D, 63.2 GiB usable RAM. Installed GPU is an RTX 5090, driver 621.24, 32607 MiB reported VRAM.
  • Existing checkpoint shader/pipeline cache, with pipelines still compiling during the run. Settings included VICTORY_RELAY=0, VICTORY_LATE_WAIT=0, VICTORY_WIDE_BACK=1, VICTORY_CARD_BUFFERS_MIN_MB=1, and VICTORY_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

Build Observation
Patched fork baseline 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.
Local port handling off-alignment structured views A read-only warning remained at offset=18067136 element=12.
Local port extended to typed views Neither alignment warning appeared in the recorded run. The renderer reached a sample with 1,244 draws/frame; a later captured shot still had a very dark face.

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.

**@⁠rlmd-fonseca** on GitHub · 2026-11-24 22:23 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7146173439) 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 - Fork base `6236d5785a9751395bb8df737cc89083ab9e2468`, with local depth/material changes drawn from #77, #81, #82 and #90. Windows release build with diagnostics, cross-compiled in WSL. - Series X profile, 1920×1080. Windows 11 build 26200.9974, Ryzen 9 7950X3D, 63.2 GiB usable RAM. Installed GPU is an RTX 5090, driver 621.24, 32607 MiB reported VRAM. - Existing checkpoint shader/pipeline cache, with pipelines still compiling during the run. Settings included `VICTORY_RELAY=0`, `VICTORY_LATE_WAIT=0`, `VICTORY_WIDE_BACK=1`, `VICTORY_CARD_BUFFERS_MIN_MB=1`, and `VICTORY_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 | Build | Observation | | --- | --- | | Patched fork baseline | `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`. | | Local port handling off-alignment structured views | A read-only warning remained at `offset=18067136 element=12`. | | Local port extended to typed views | Neither alignment warning appeared in the recorded run. The renderer reached a sample with 1,244 draws/frame; a later captured shot still had a very dark face. | 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.
Author
Owner

@⁠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 @⁠31714de and upstream @⁠d763582 alternating twice each:

run hle host title missing TLS index (patched) wall / exit
fork, r1 88 427 72 0 10 (53246) 0.53 s / 0
upstream, r1 91 424 72 0 11 (53246) 0.55 s / 0
fork, r2 88 427 72 0 10 (53246) 0.53 s / 0
upstream, r2 91 424 72 0 11 (53246) 0.55 s / 0

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+72 there, 91+424+72 above), and the 72 decomposes as @⁠UNYTIX's 38+23+7+4 (#811). title=72 / missing=0 is an image property, not a runtime one.

hle/host is 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 moves bound: 7216ab71 (rpcrt4) and a7847a52/d4ef9ebc (lifecycle). The +3 is exactly lifecycle's three new hle exports — two Constrained-change registrations and ShowWindow — all three reached by this title. rpcrt4 and FidelityFX contribute 0 here; the latter only shifts 4 symbols from title to hle when VICTORY_FIDELITYFX_DIR is set.

patched=53246 is identical in both trees, so that's the image too. TLS index 10 → 11 is a loader-assigned slot, not a fingerprint — don't gate on it.

For a merge: the bound line becomes 91/424 whether or not you touch rendering. Baselines keyed to it have to move; title/missing can 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 00:50 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7148934649) **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 @⁠31714de and upstream @⁠d763582 alternating twice each: | run | hle | host | title | missing | TLS index (patched) | wall / exit | |---|---|---|---|---|---|---| | fork, r1 | 88 | 427 | 72 | 0 | 10 (53246) | 0.53 s / 0 | | upstream, r1 | 91 | 424 | 72 | 0 | 11 (53246) | 0.55 s / 0 | | fork, r2 | 88 | 427 | 72 | 0 | 10 (53246) | 0.53 s / 0 | | upstream, r2 | 91 | 424 | 72 | 0 | 11 (53246) | 0.55 s / 0 | 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+72` there, `91+424+72` above), and the 72 decomposes as @⁠UNYTIX's `38+23+7+4` (#811). `title=72 / missing=0` is an image property, not a runtime one. `hle`/`host` is 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 moves `bound`: `7216ab71` (rpcrt4) and `a7847a52`/`d4ef9ebc` (lifecycle). The +3 is exactly lifecycle's three new hle exports — two Constrained-change registrations and `ShowWindow` — all three reached by this title. rpcrt4 and FidelityFX contribute 0 here; the latter only shifts 4 symbols from `title` to `hle` when `VICTORY_FIDELITYFX_DIR` is set. `patched=53246` is identical in both trees, so that's the image too. TLS `index` 10 → 11 is a loader-assigned slot, not a fingerprint — don't gate on it. **For a merge:** the `bound` line becomes 91/424 whether or not you touch rendering. Baselines keyed to it have to move; `title`/`missing` can 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.
Author
Owner

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

configuration bound (hle/host/title/missing) halt state / frames wall
fork @⁠31714de, defaults 88 / 427 / 72 / 0 0x80000003 @ image+0x1ce6e13 System Init / Frame 0, 0 0.38–0.64 s
upstream @⁠d763582, defaults 91 / 424 / 72 / 0 same same 0.38–0.64 s
--unimplemented trap / zero unchanged same same —
--console series-x / series-s unchanged same same —
VICTORY_RELAY 0 / 2 unchanged same same —
plus 31 companion files (18.76 MB) title 00000000 → 7952987A, storage 0 → 2048 MB unmoved same 0.38–0.64 s
--strict 88 / 0 / 403 InitializeCriticalSectionEx unimplemented never reached earlier

(1/4)

**@⁠superboynick** on GitHub · 2026-11-25 01:28 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7149592774) **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 | configuration | `bound` (hle/host/title/missing) | halt | state / frames | wall | |---|---|---|---|---| | fork @⁠31714de, defaults | 88 / 427 / 72 / 0 | `0x80000003 @ image+0x1ce6e13` | System Init / Frame 0, 0 | 0.38–0.64 s | | upstream @⁠d763582, defaults | 91 / 424 / 72 / 0 | same | same | 0.38–0.64 s | | `--unimplemented trap` / `zero` | unchanged | same | same | — | | `--console series-x` / `series-s` | unchanged | same | same | — | | `VICTORY_RELAY 0` / `2` | unchanged | same | same | — | | plus 31 companion files (18.76 MB) | `title` `00000000` → `7952987A`, storage 0 → 2048 MB | **unmoved** | same | 0.38–0.64 s | | `--strict` | 88 / 0 / 403 | `InitializeCriticalSectionEx` unimplemented | never reached | earlier | *(1/4)*
Author
Owner

@⁠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 --strict dies 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) moves title from 00000000 to 7952987A, storage from 0 MB to 2048 MB, and creates data/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](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7149593719) *(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 `--strict` dies 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`) moves `title` from `00000000` to `7952987A`, storage from 0 MB to 2048 MB, and creates `data/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
Author
Owner

@⁠superboynick on GitHub · 2026-11-25 01:28 UTC · original

(continued 3/4)

runtime emitted refused wall
fork @⁠31714de 25,598 486 124 s
upstream @⁠d763582 25,591 493 335 s
fork, --validate (dxil.dll 101.7.2308.24) 8,015 of 25,598 validate; 17,526 Pipeline State Validation does not match expected — —

Denominator 195 + 8,765 + 14,247 + 2,682 = 25,889 equals #1697's total exactly, so it is the same archive under the same dedup. The refused column is not comparable, though: the two builds' 7-count gap is 1.4% and the directions cancel, while --validate rejects 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](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7149594850) *(continued 3/4)* | runtime | emitted | refused | wall | |---|---|---|---| | fork @⁠31714de | 25,598 | 486 | 124 s | | upstream @⁠d763582 | 25,591 | 493 | 335 s | | fork, `--validate` (dxil.dll 101.7.2308.24) | 8,015 of 25,598 validate; 17,526 `Pipeline State Validation does not match expected` | — | — | Denominator `195 + 8,765 + 14,247 + 2,682 = 25,889` equals #1697's total exactly, so it is the same archive under the same dedup. The `refused` column is not comparable, though: the two builds' 7-count gap is 1.4% and the directions cancel, while `--validate` rejects 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.
Author
Owner

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

**@⁠superboynick** on GitHub · 2026-11-25 01:28 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7149595792) *(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.
Author
Owner

@⁠iloveslopware on GitHub · 2026-11-25 02:13 UTC · original

Build-level check of the translator-only merge (fork main + upstream victory-shader @ 940d32f). I took the cheapest step of @⁠ericomeehan's trial from reading to compiling: a worktree on fork main (c96b4f2), victory-shader swapped wholesale for upstream's current main, then cargo check for the translator alone and for the GPU crate that consumes it — host target and x86_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. Adding miniz_oxide = "0.9.1" to [workspace.dependencies] clears it.

The translator alone is self-consistent. With that line, cargo check -p victory-shader passes on both targets. The coupling is entirely on the consumer side.

victory-gpu fails with 27 errors — and most run the other way from the table above. The five new HostShader flags are there (memory, memory_writes, view_addresses, heap, heap_writes) and root_indexed_views is gone; but the literal at shader_cache.rs:328 fails 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:

Kind Symbols (fork GPU → upstream translator) Sites
fork-only types resource::RootIndexedView, HostShader::root_indexed_views draw.rs, shader_cache.rs
fork-only constants USER_MEMORY_BASE, USER_VIEW_ADDRESS, USER_VIEW_BIAS, MEMORY_PAGES, MEMORY_FAULTS, SLOT_MEMORY, SLOT_STRIDES, SLOT_STRIDES_COUNT, SLOT_FAULTS draw.rs, memory.rs, descriptor/host.rs, pipeline/host.rs
fork-only functions spill (module), group_sync, shader_opt, rect_list_gs, set_host_max_wave, view_heap_limit, set_view_heap_limit pipeline.rs, host.rs, shader_cache.rs, descriptor/host.rs

All 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's 27c3dc9/0f63757/c75fdba answer 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:

  • The fork's root manifest relaxes eight clippy lints upstream keeps at warn (type_complexity, needless_range_loop, undocumented_unsafe_blocks, …), so a merge re-flags the fork's newer code wholesale. #499 is already walking the undocumented_unsafe_blocks part back.
  • Upstream's victory-shader grew a [[bench]] guard_runs (harness = false); harmless, just new.
  • #544's translate --cache is a fork-side twin of upstream's c47b529 — 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 main c96b4f2, upstream 940d32f (ahead of the 28-commit set analyzed upthread). AI-assisted (GLM via OpenCode).

**@⁠iloveslopware** on GitHub · 2026-11-25 02:13 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7150469460) **Build-level check of the translator-only merge (fork `main` + upstream `victory-shader` @ `940d32f`).** I took the cheapest step of @⁠ericomeehan's trial from reading to compiling: a worktree on fork `main` (`c96b4f2`), `victory-shader` swapped wholesale for upstream's current `main`, then `cargo check` for the translator alone and for the GPU crate that consumes it — host target and `x86_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. Adding `miniz_oxide = "0.9.1"` to `[workspace.dependencies]` clears it. **The translator alone is self-consistent.** With that line, `cargo check -p victory-shader` passes on both targets. The coupling is entirely on the consumer side. **`victory-gpu` fails with 27 errors — and most run the other way from the table above.** The five new `HostShader` flags are there (`memory`, `memory_writes`, `view_addresses`, `heap`, `heap_writes`) and `root_indexed_views` is gone; but the literal at `shader_cache.rs:328` fails 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: | Kind | Symbols (fork GPU → upstream translator) | Sites | |---|---|---| | fork-only types | `resource::RootIndexedView`, `HostShader::root_indexed_views` | `draw.rs`, `shader_cache.rs` | | fork-only constants | `USER_MEMORY_BASE`, `USER_VIEW_ADDRESS`, `USER_VIEW_BIAS`, `MEMORY_PAGES`, `MEMORY_FAULTS`, `SLOT_MEMORY`, `SLOT_STRIDES`, `SLOT_STRIDES_COUNT`, `SLOT_FAULTS` | `draw.rs`, `memory.rs`, `descriptor/host.rs`, `pipeline/host.rs` | | fork-only functions | `spill` (module), `group_sync`, `shader_opt`, `rect_list_gs`, `set_host_max_wave`, `view_heap_limit`, `set_view_heap_limit` | `pipeline.rs`, `host.rs`, `shader_cache.rs`, `descriptor/host.rs` | All 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's `27c3dc9`/`0f63757`/`c75fdba` answer 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: - The fork's root manifest relaxes eight clippy lints upstream keeps at `warn` (`type_complexity`, `needless_range_loop`, `undocumented_unsafe_blocks`, …), so a merge re-flags the fork's newer code wholesale. #499 is already walking the `undocumented_unsafe_blocks` part back. - Upstream's `victory-shader` grew a `[[bench]] guard_runs` (harness = false); harmless, just new. - #544's `translate --cache` is a fork-side twin of upstream's `c47b529` — 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 `main` `c96b4f2`, upstream `940d32f` (ahead of the 28-commit set analyzed upthread). AI-assisted (GLM via OpenCode).
Author
Owner

@⁠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 translate census over the retail shaders.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: fork main c96b4f2 (through its spill entry) and upstream 940d32f (through range::build). Linux host, --list only: 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):

fork c96b4f2 upstream 940d32f
emitted 25,598 25,591
emit failures 96 (83 VP · 10 CS · 3 MS) 100 (42 VP · 58 CS · 0 MS)
resource-tracking failures 195 (all GS) 195 (same GS set) + 3 CS

(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_f64 0 / 5; barycentrics read directly 0 / 3; v_permlanex16_b32 0 / 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, 1 v_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 taking ceb5eb68cd99cb07 under a different reason, not by fixing four), plus 7 compute shaders that stop at different points — on #279's 926c46bab3b86bd6, upstream still refuses the v_cvt_f32_f64 the 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 HostShader flags) 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/victory is a tenth caller of fork-only translator API. The fork's translate enters through spill::build (upstream: range::build, which also returns the structured form), and the CLI additionally uses emit::census, set_host_max_wave, set_view_heap_limit, and an Interp::Weighted arm — 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).

**@⁠iloveslopware** on GitHub · 2026-11-25 03:08 UTC · [original](https://github.com/fxceless/victory-fork/issues/126#issuecomment-7151632550) **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 `translate` census over the retail `shaders.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: fork `main` `c96b4f2` (through its `spill` entry) and upstream `940d32f` (through `range::build`). Linux host, `--list` only: 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): | | fork `c96b4f2` | upstream `940d32f` | |---|---|---| | emitted | 25,598 | 25,591 | | emit failures | 96 (83 VP · 10 CS · 3 MS) | 100 (42 VP · 58 CS · 0 MS) | | resource-tracking failures | 195 (all GS) | 195 (same GS set) + 3 CS | (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_f64` **0 / 5**; barycentrics read directly **0 / 3**; `v_permlanex16_b32` **0 / 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, 1 `v_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 taking `ceb5eb68cd99cb07` under a different reason, not by fixing four), plus 7 compute shaders that stop at *different* points — on #279's `926c46bab3b86bd6`, upstream still refuses the `v_cvt_f32_f64` the 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 `HostShader` flags) 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/victory` is a tenth caller of fork-only translator API. The fork's `translate` enters through `spill::build` (upstream: `range::build`, which also returns the structured form), and the CLI additionally uses `emit::census`, `set_host_max_wave`, `set_view_heap_limit`, and an `Interp::Weighted` arm — 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).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#126
No description provided.