Canonicalize DXIL loop latches for Proton #198

Manually merged
github merged 1 commit from github-bot/gh-198 into main 2026-11-27 13:23:42 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 08:51 UTC · original
TaynanGT:fix/proton-loop-latches-133 → main · +244 −1 · 3 files · 2 commits · merged 2026-11-27 13:23 UTC

Give DXIL loop headers one latch and split blocks that branch back to two headers. Keep each loop’s incoming values and keep the writer from folding the separate latches together.

Port Ortomanic’s fxceless/victory-fork #257 at 89f027a with its two focused tests. The upstream tests covered the Prop_BatchNoCull hash from #133. The independent Proton test in Marvisak/VIctory #2309 also reports that hash and the laser-light shadow pipeline. Advance the translator cache version to rebuild older DXIL.

Reconciled with main at 231b6a9 and resolved the translator version to 9. A contributor on RTX 5080 and GE-Proton11-14 with fresh caches built 3,938 of 3,938 recorded recipes, and each of the seven problem pipelines completed in under one second. That run included a local #172 workaround that leaves the translator untouched. The recorded gameplay comparison is pending.

Refs #133

**@⁠TaynanGT** on GitHub · 2026-11-27 08:51 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/198) `TaynanGT:fix/proton-loop-latches-133` → `main` · +244 −1 · 3 files · 2 commits · merged 2026-11-27 13:23 UTC Give DXIL loop headers one latch and split blocks that branch back to two headers. Keep each loop’s incoming values and keep the writer from folding the separate latches together. Port Ortomanic’s [fxceless/victory-fork #257](https://github.com/fxceless/victory-fork/pull/257) at 89f027a with its two focused tests. The upstream tests covered the Prop_BatchNoCull hash from #133. [The independent Proton test in Marvisak/VIctory #2309](https://github.com/Marvisak/VIctory/pull/2309) also reports that hash and the laser-light shadow pipeline. Advance the translator cache version to rebuild older DXIL. Reconciled with main at 231b6a9 and resolved the translator version to 9. A contributor on RTX 5080 and GE-Proton11-14 with fresh caches built 3,938 of 3,938 recorded recipes, and each of the seven problem pipelines completed in under one second. That run included a local #172 workaround that leaves the translator untouched. The recorded gameplay comparison is pending. Refs #133
Port the loop-latch fixes from fxceless/victory-fork #257. Preserve incoming values and refresh the shader cache.

Co-authored-by: Ortomanic <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:53:45 +00:00
Author
Owner

@⁠nullexxx on GitHub · 2026-11-27 13:09 UTC · original

Proton run of this revision on the RTX 5080: all seven #133 hangs are gone.

Setup: Vice-Tay main at 231b6a9 with this PR merged in (one conflict, TRANSLATOR_VERSION 8 vs 9, resolved to 9), plus my local workaround for #172, which does not touch the translator. GE-Proton11-14 with the indexed wineserver, vkd3d-proton 3.2.0, NVIDIA 620.73.04. Fresh translation, vkd3d and NVIDIA caches, defaults (no VICTORY_WAVE_*, no VICTORY_SKIP_PIPELINES), recorded recipe from my sessions. victory shaders, then victory warm --used with the normal 180 s limit.

Result: 3,938 of 3,938 recipes made, warm-bad.txt empty (translation fingerprint 8f4b751e2a08bf24). For each formerly hanging shader, the time from shader translated to host pipeline shaders=[compute …] in the warm log:

shader program recipe key before (#133) this PR
fdd56d97a806bcca CS_Prop_BatchNoCull d48e9d846f068fb47c251acb6478bd42 180 s timeout 0.69 s
32ed072b9f845048 CS_LaserLightShadowRaytracing bda9fee18212cf13d9b4263780179ee6 180 s timeout 0.10 s
a1b20bc47e3c9597 CS_RTDistantShadowTrace32_Tiled 9ba3897de092f4bd733fbd441cdc936a 180 s timeout 0.67 s
17829ac71aab4e8d CS_RTDistantShadowTraceTemporalUpsample4X32_Tiled f266987230dbf305f9c0b288b0a825bd 180 s timeout 0.36 s
afeea48bbb9913ad CS_RTDistantShadowTraceLeakPlugTemporalUpsample4X32_Tiled 4cb6add108d16861be59755a103be250 180 s timeout 0.75 s
e8c962358d862e3f CS_RTDistantShadowTraceLeakPlug32_Tiled b76eb6a5c03d4493c963e136345e1a72 180 s timeout 0.75 s
559d9f0184e15fe3 CS_TraceShadowRays_Checkerboard bdd744e4fde8d4f56fc4145013952ace 180 s timeout 0.25 s

In the stock run on the earlier revision, the log has shader translated for fdd56d97a806bcca and never reaches host pipeline shaders; with this PR it does, 0.69 s later. Next I'll play with these shaders removed from VICTORY_SKIP_PIPELINES and report anything visual (props, flashes) in #133.

**@⁠nullexxx** on GitHub · 2026-11-27 13:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/198#issuecomment-7219127898) Proton run of this revision on the RTX 5080: all seven #133 hangs are gone. **Setup:** Vice-Tay `main` at `231b6a9` with this PR merged in (one conflict, `TRANSLATOR_VERSION` 8 vs 9, resolved to 9), plus my local workaround for #172, which does not touch the translator. GE-Proton11-14 with the indexed wineserver, vkd3d-proton 3.2.0, NVIDIA 620.73.04. Fresh translation, vkd3d and NVIDIA caches, defaults (no `VICTORY_WAVE_*`, no `VICTORY_SKIP_PIPELINES`), recorded recipe from my sessions. `victory shaders`, then `victory warm --used` with the normal 180 s limit. **Result:** 3,938 of 3,938 recipes made, `warm-bad.txt` empty (translation fingerprint `8f4b751e2a08bf24`). For each formerly hanging shader, the time from `shader translated` to `host pipeline shaders=[compute …]` in the warm log: | shader | program | recipe key | before (#133) | this PR | |---|---|---|---|---| | `fdd56d97a806bcca` | `CS_Prop_BatchNoCull` | `d48e9d846f068fb47c251acb6478bd42` | 180 s timeout | 0.69 s | | `32ed072b9f845048` | `CS_LaserLightShadowRaytracing` | `bda9fee18212cf13d9b4263780179ee6` | 180 s timeout | 0.10 s | | `a1b20bc47e3c9597` | `CS_RTDistantShadowTrace32_Tiled` | `9ba3897de092f4bd733fbd441cdc936a` | 180 s timeout | 0.67 s | | `17829ac71aab4e8d` | `CS_RTDistantShadowTraceTemporalUpsample4X32_Tiled` | `f266987230dbf305f9c0b288b0a825bd` | 180 s timeout | 0.36 s | | `afeea48bbb9913ad` | `CS_RTDistantShadowTraceLeakPlugTemporalUpsample4X32_Tiled` | `4cb6add108d16861be59755a103be250` | 180 s timeout | 0.75 s | | `e8c962358d862e3f` | `CS_RTDistantShadowTraceLeakPlug32_Tiled` | `b76eb6a5c03d4493c963e136345e1a72` | 180 s timeout | 0.75 s | | `559d9f0184e15fe3` | `CS_TraceShadowRays_Checkerboard` | `bdd744e4fde8d4f56fc4145013952ace` | 180 s timeout | 0.25 s | In the stock run on the earlier revision, the log has `shader translated` for `fdd56d97a806bcca` and never reaches `host pipeline shaders`; with this PR it does, 0.69 s later. Next I'll play with these shaders removed from `VICTORY_SKIP_PIPELINES` and report anything visual (props, flashes) in #133.
github manually merged commit eaca8e066f into main 2026-11-27 13:23:42 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:16 UTC · original

@⁠nullexxx The fresh-cache run gives us 3,938 of 3,938 recipes and all seven problem cases below one second on your Proton setup. I’m reconciling the branch with current main and keeping translator version 9, which matches your build. That establishes pipeline creation on this setup. The recorded scene will give us separate coverage for rendering.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/198#issuecomment-7219266365) @⁠nullexxx The fresh-cache run gives us 3,938 of 3,938 recipes and all seven problem cases below one second on your Proton setup. I’m reconciling the branch with current main and keeping translator version 9, which matches your build. That establishes pipeline creation on this setup. The recorded scene will give us separate coverage for rendering.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 13:23 UTC · original · edited 2026-11-27 13:25 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T13:24:14.632084Z eaca8e0 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-27T13:25:14.740121Z eaca8e0 Draft marked ready
ℹ️ About Codex in GitHub

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

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

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 13:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/198#issuecomment-7219415139) · edited 2026-11-27 13:25 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"eaca8e066fdf99e999a2b90708eca0178f70e05b","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"eaca8e066fdf99e999a2b90708eca0178f70e05b","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"eaca8e066fdf99e999a2b90708eca0178f70e05b","mergeGateEnabled":false,"pullRequestNumber":198,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T13:24:14.632084Z">2026-11-27T13:24:14.632084Z</relative-time> | `eaca8e0` | Draft marked ready | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T13:25:14.740121Z">2026-11-27T13:25:14.740121Z</relative-time> | `eaca8e0` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.