Fix Wine pipeline worker overflows in shader translation #12
No reviewers
Labels
No labels
accessibility
bench-bm-v1
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/PastiiJay--klbf-lab!12
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-12"
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?
@gmankab on GitHub · 2026-11-25 16:16 UTC · original
gmankab:fix/klbf-vkd3d-shader-loops→beta· +144 −20 · 5 files · 1 commits · openThis ports powplusplus's shader-loop normalization and pipeline worker stack size from Fxceless. The DXIL conversion path expects a single back edge per loop header. Joining multiple back edges through a block also joins their phi inputs.
On an RX 6800, the unpatched beta reported six pipeline-worker stack overflows with its default stack and six again with a verified 64 MiB reservation. With this patch, the longer run drained the startup pipeline queue, logged zero worker stack overflows, and rendered the prologue courtyard in Series S mode with FSR 3.1.6. The run later hit the null-write exception at title offset
0x23cf683, which also occurred in an earlier stable build.The smoke and prologue tests used commit
7bcfe20with the same executable source as this branch. The intervening beta commits only changed documentation. The runs used different warm cache states, so the main evidence here is queue completion and disappearance of the overflow reports.Based-on: https://github.com/fxceless/victory-fork/pull/737
Tested-on: RX 6800, Fedora Linux 45, Wine/vkd3d-proton, FSR 3.1.6
Assisted-by: gpt-6.2 sol xhigh
@PastiiJay on GitHub · 2026-11-25 16:18 UTC · original
Thanks @gmankab! Since this touches the shader translator for every card, we'll run it in game on our RX 9070 XT first (it goes into our next test build) and merge here once it holds. Will report back in this PR.
@HandshakeHackin on GitHub · 2026-11-26 08:35 UTC · original
I checked the loop rewrite on native Windows with a synthetic compute shader whose two back edges update a counter and an accumulator differently. The fixture runs 128 threads, including eight that skip the loop. It validates the generated DXIL, dispatches it on WARP, and compares both values from every thread with a CPU reference.
All 256 output dwords matched in each of four runs on the parent (
39cd1f4) and the PR (7b916df), each with optimizations off and at their default. The CPU reference took the two back edges 448 and 256 times respectively. This covers the values carried around the loop on Windows. Runnable test · Four Windows runs@PastiiJay on GitHub · 2026-11-26 10:41 UTC · original
Thanks for checking the loop rewrite on native Windows, that settles the Wine-only worry. We'll give it a run in game too.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.