Repository navigation
Conversation
Port of upstream VIctory 364c1bc45c4510d0d07a1e58efaff8644165ded2, itself cherry-picked from d48ec767ba89d27090f6f61d3a9ebfd9f5374def. Reuses Leonida’s nonallocating successors helper.
Port of upstream VIctory 91e3bdfd8f57b2917311583a99d676cc56b0c807 by desplmfao. Keeps one back edge per block and prevents empty-latch folding from undoing the split. Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Looks good. Since this changes the DXIL for every shader (and the empty-latch fold the AMD hang workaround relies on), could you post |
|
I ran
Both runs found 26,584 containers (614 duplicates skipped) and translated 26,136 programs. Each has 49 emission failures among eligible programs and 216 DXIL validation failures (111 vertex/pixel, 0 compute, 105 mesh). All 26,584 per-container |
S-5: normalize DXIL loop back edges
Pipeline workers overflowed their stacks while converting a generated DXIL control-flow graph with multiple loop back edges from one block or into one header. An 8 MiB worker stack did not resolve the observed failure, so that experiment was reverted. This PR changes the shader emitter to give each loop header a single latch and to split blocks whose back edges reach competing loop headers. It also prevents the final empty-block fold from undoing the normalization.
The changes are focused ports of VIctory PR #2309, commits
364c1bcby powplusplus and91e3bdfby desplmfao. The commits here preserve their author credit. Existing nonallocating successor traversal is reused.Validation so far:
-D warnings: passed.cargo xtask policy: 241 files checked.The game advanced through the opening cinematic, then stopped at a separately tracked pool capacity limit before controllable gameplay. This PR resolves the pipeline-worker failure; the remaining pool issue is outside S-5. Test host: NVIDIA RTX 5090, driver 580.173.02, Intel i9-14900KS, Linux/Proton.
AI-assisted. No game files, shaders, screenshots, dumps, or raw logs are included.