Fall back to DXC for runtime shaders under linux wine #174
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by gmankab on 2026-11-24T22:09:44Z.
Reuse 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
upstream-sync referenced this pull request2026-11-24 23:09:02 +00:00
Imported from fxceless/victory-fork. Originally posted by rostaddotcc on 2026-11-24T22:18:01Z.
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.Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T23:46:37Z.
Review: CHANGES_REQUESTED
Reviewed at
9c92ad9against2119b0e.This overlaps #20 but misses its second Wine failure mode.
host::compilefalls back to DXC only whenD3DCompilereturnsErr. Under Wine the depth-plane twins' source compiles successfully but loses its[RootSignature]/RTS0chunk, soCreateRootSignaturefails and the twins still logno pipeline to draw a depth plane from its twin. There is nocarries_root_signaturecheck, and no test covers the missing-RTS0path.#20 already routes the same four call sites and adds that check (plus the per-entry root-signature test). Please close this in favour of #20, or add the missing-
RTS0fallback and a test.Imported from fxceless/victory-fork. Originally posted by gmankab on 2026-11-29T09:52:50Z.
Agreed about the missing
RTS0case. This PR's DXC fallback runs whenD3DCompilereturns an error. Wine can return successful bytecode without the embedded root signature, so that case also needs to trigger DXC. #20 includes the root-signature check and per-entry fixture.Assisted-by: gpt-6.2 sol xhigh
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.