Linux/AMD (Wine + vkd3d-proton, RDNA3): findings and patches available #698
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#698
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?
@jtrudeau1530 on GitHub · 2026-11-25 04:46 UTC · original
Hi, thanks for the fork. We're running it under Linux (Wine 11.18 + vkd3d-proton 3.2.0, RADV, RX 7900 XT, 32 GB RAM) and found a few Linux/AMD-specific problems that may be useful to you. Each one below has a local patch on top of your
310c6eb6, with tests, and we can open PRs if you want them.recompute_immediate_dominator/find_common_dominator). This happens on loops that have more than one back edge, before they get merged. Under Wine the stack overflow kills the pipeline-pool thread without unwinding, so the pipeline stays "being made" for good. Every frame then spends its full pipeline-wait budget, and the pool loses a worker each time. Our fixes:With the builder on (VICTORY_BVH_BUILDER=1), all 52 builder programs translate and compile on RADV. We're now chasing title-thread stack overflows that only appear with the builder.
No game files or captures are included or shared here.
@jtrudeau1530 on GitHub · 2026-11-25 06:46 UTC · original
Update: with
VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1the structure builder now runs stably on RADV for us (10 min, ~5 fps), and the RT shadow tiles render. Three fixes were needed on top of your tree. Patches are available if useful:@jtrudeau1530 on GitHub · 2026-11-25 10:07 UTC · original
@lajoerkk thanks. We'll share a branch once it's cleaned up and reviewed on our side, probably later today. In the meantime, those three stack overflows on the pipeline worker threads are the dxil-spirv recursion from point 1: three RT compute programs with multi-back-edge loops. On a stock build they cost a pipeline worker each time and leave those pipelines stuck as "being made". That explains part of the frame-rate loss, but not the black world. For the black world, VICTORY_BVH_BUILDER=1 with VICTORY_BVH_QUARANTINE=1 is what eventually got lighting for us, and it needed the builder fixes from the second comment.
@jtrudeau1530 on GitHub · 2026-11-25 10:08 UTC · original
Two things in
9376fd60that broke rendering for us on top of our stack. Both come from reading the code and aren't confirmed on pure upstream yet:watch::known_view/guardcheck only the first block of a range. A range that runs past a guarded view into unguarded memory therefore skips GetWriteWatch and misses writes. For us this caused a flat yard and an orange haze in the window. Checking that every block is guarded fixed it.mirror_copiedskips any slot a table read recently, whatever the slot holds now, and the mark outlives the texture. So a buffer view, an empty record, or a slot that's only read by index stays stale. For us this caused a missing body and shirt and a strip of tiles. Skipping only slots that hold a texture a draw actually read fixed it.@ThomasHFWright on GitHub · 2026-11-25 11:32 UTC · original · edited 2026-11-25 12:00 UTC
Confirmed the compiler-recursion part on RTX 5090 / CachyOS 7.3.6 / NVIDIA 620.73.04 / GE-Proton11-14.
Using victory-fork
a26859fplus #20 and upstream #454, three isolated compute shaders (fdd56d97a806bcca, a1b20bc47e3c9597, e8c962358d862e3f) validate as DXIL, then stack-overflow during host pipeline creation and leave the process waiting until its external timeout. The offline translation must set VICTORY_HOST_MAX_WAVE=32 to match this GPU, alongside loop limit32. No command lists or GPU dispatches in these tests.I then built native dxil-spirv at GE's exact pin 34f0ff845eb7f1ca76ca8df5d1593d6913f19e9c and replayed the same emitted DXIL:
The maintainer recommends the legacy-struct-remove branch in both upstream threads:
https://github.com/HansKristian-Work/dxil-spirv/issues/376#issuecomment-7145564419
https://github.com/HansKristian-Work/dxil-spirv/issues/380#issuecomment-7160679798
With its converter library at e084e35c4506210b44f6b7df3bbf31a1026545b8, the same CLI and exact same DXIL all convert successfully (~32ms each including sandbox startup). All three outputs pass spirv-val --target-env vulkan1.3 --scalar-block-layout. Library resolution was verified.
Windows runtime and gameplay follow-up — 2026-11-25
Built isolated Windows x64 d3d12/d3d12core DLLs from vkd3d-proton cae8353ed7959c4 (the revision reported by our GE runtime), replacing its dxil-spirv submodule with e084e35c4506210b44f6b7df3bbf31a1026545b8. This is a local upstream rebuild, not a byte-identical recreation of GE's dirty build. Original runtime preserved.
This validates the compiler fix under Wine and in the title, but does not fix our GPU memory fault or establish working gameplay. No unrelated rendering/BVH patches were mixed into this comparison.
No proprietary inputs, generated shader binaries, captures or raw logs attached. AI-assisted: Codex ran and checked these local tests and prepared this aggregate report under the user's instruction to post results.
@jtrudeau1530 on GitHub · 2026-11-25 15:02 UTC · original
@lajoerkk the branch is up: https://github.com/jtrudeau1530/victory-fork/tree/linux-amd. It's based on
f85101b6with 5 commits on top. We run it under Linux (Wine + vkd3d-proton 3.2, RADV) withVICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1. On an RX 7900 XT it gives a lit world with RT shadows at about 3.7 fps, and 10-minute runs have been stable. Known issues: some black patches on one wall, and the frame rate is still low. Feedback from RDNA 4 is welcome.