Fall back to DXC for runtime shaders under linux wine #174
No reviewers
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!174
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-174"
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-24 22:09 UTC · original
gmankab:wine-dxc-fallback→main· +176 −117 · 6 files · 1 commits · openReuse the compiler loader and signing path for the indirect clamp, depth twins, card comparison, and in-place probe
Based-on: https://github.com/Marvisak/VIctory/pull/178
@rostaddotcc on GitHub · 2026-11-24 22:18 UTC · original
The premise is right and I have it measured, but there is a version of this that needs no code: the failure is not Wine refusing
cs_5_1, it is whichd3dcompiler_47is loaded.d3dcompiler_47indirect::tests::argument_clamp_builds=b)E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'fxc(=n)On this box (CachyOS, RX 7900 XT, Proton Experimental
experimental-11.0-20261112, vkd3d-proton 3.2.0 servingd3d12) the wholevictory-gpusuite is 109 passed / 1 failed withd3dcompiler_47=n, and the builtin fails the clamp exactly as you describe. Sowinetricks d3dcompiler_47(pinned in the launcher, not inherited from whatever prefix exists) closes it for the tests and for a run today.Where DXC is the right answer anyway:
[RootSignature]is not implemented in vkd3d at all —RTS0exists there only as a standalone serializer — so the builtin will never accept the fork's sources, and theInterlocked*/Load*methods onRWByteAddressBufferlanded upstream only on 2026-11-04 and are in no release (Load*since 1.14, theInterlocked*intrinsics since 1.15). A DXC fallback therefore buys something the native DLL does not: it removes a dependency on a redistributable Microsoft binary that most prefixes will not have, and it is the only path that keeps working iffxc'scs_5_1support is ever dropped.Two things worth deciding explicitly in the PR, since they are what a distro packager will ask about: whether the DXC DLL is expected from the system (
VICTORY_DXCalready accepts a directory or the DLL) or shipped, and whether the fallback is only for the runtime-only shaders listed or also for the shader tests — the test would then need the same loader, or a skip that says why.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.