Linux/Proton: the light estimate's passes never build (Wine fxc has no isnan; the root-signature check sends them to DXC, which vkd3d-proton refuses) #2158

Open
opened 2026-11-29 10:01:56 +00:00 by birdneststream · 1 comment
birdneststream commented 2026-11-29 10:01:56 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by birdneststream on 2026-11-29T10:01:56Z.


What you would like

The light estimate's compute passes (ambient.rs: KEEP/PLACE/GATHER/AIR/REFLECT/BOUND/RAISE) to build under Proton/Wine. Today none of them is ever built there, so indoors and at night are lit by nothing but the water light.

Host: RTX 5090, i9-13900KF, Linux, GE-Proton 11 (wine-staging 11.22, vkd3d-proton), Series X files, 1440p, DLSS quality.

What happens

The passes are compiled with D3DCompile and the result checked for root-signature warnings; under Wine the system compiler is fxc (d3dcompiler_47), and it stops at the first isnan:

E5005: Function "isnan" is not defined

and, with the [RootSignature] block in the source, drops it with W5302 — the check sees the warning, the shader goes to the DXC fallback as cs_6_0 DXIL, and vkd3d-proton refuses that blob:

vsir_parse: Failed to parse shader.

So the_passes_build and the_passes_compile fail here (under the test rig's Wine: the passes: Error { code: HRESULT(0x8007007E), message: "Module not found." }, KEEP: Some(Error { ... "Module not found." })), and in play the log never shows an ambient pass made. Everything else of the light estimate (the probes, the neutral pass) is fine.

Are you working on a fix?

Yes: PR follows (three small commits on main): the passes' HLSL without isnan/isinf (the clamp they do is a max/min pair), the passes compiled by the system compiler with the root signature serialized apart (fxc's D3DGetBlobPart/D3DReadFileToBlob route for the root signature blob fails under Wine with E_INVALIDARG, so it is built from the RS definition instead — the same definition, read from the source), and the signature's constants taken from RS (main's RS grew to 14 constants; a signature made with 13 let the RAISE pass read zeros — the chroma-scrub test catches that).

Rig (wine-staging 11.22, RTX 5090, vkd3d-proton master), ambient:: tests: main 10 passed / 4 failed → with the PR 13 / 2, the two left being the WARP-only ones (no WARP DLL under Wine). In play the passes build and run; VICTORY_AMBIENT acts (0.8 default), which is the point of #1957's switch.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6677395694 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2158). Originally posted by [birdneststream](https://github.com/birdneststream) on 2026-11-29T10:01:56Z. --- ### What you would like The light estimate's compute passes (ambient.rs: KEEP/PLACE/GATHER/AIR/REFLECT/BOUND/RAISE) to build under Proton/Wine. Today none of them is ever built there, so indoors and at night are lit by nothing but the water light. **Host:** RTX 5090, i9-13900KF, Linux, GE-Proton 11 (wine-staging 11.22, vkd3d-proton), Series X files, 1440p, DLSS quality. ### What happens The passes are compiled with `D3DCompile` and the result checked for root-signature warnings; under Wine the system compiler is fxc (d3dcompiler_47), and it stops at the first `isnan`: ``` E5005: Function "isnan" is not defined ``` and, with the `[RootSignature]` block in the source, drops it with W5302 — the check sees the warning, the shader goes to the DXC fallback as cs_6_0 DXIL, and vkd3d-proton refuses that blob: ``` vsir_parse: Failed to parse shader. ``` So `the_passes_build` and `the_passes_compile` fail here (under the test rig's Wine: `the passes: Error { code: HRESULT(0x8007007E), message: "Module not found." }`, `KEEP: Some(Error { ... "Module not found." })`), and in play the log never shows an ambient pass made. Everything else of the light estimate (the probes, the neutral pass) is fine. ### Are you working on a fix? Yes: PR follows (three small commits on main): the passes' HLSL without `isnan`/`isinf` (the clamp they do is a `max`/`min` pair), the passes compiled by the system compiler with the root signature serialized apart (fxc's `D3DGetBlobPart`/`D3DReadFileToBlob` route for the root signature blob fails under Wine with E_INVALIDARG, so it is built from the `RS` definition instead — the same definition, read from the source), and the signature's constants taken from `RS` (main's `RS` grew to 14 constants; a signature made with 13 let the RAISE pass read zeros — the chroma-scrub test catches that). Rig (wine-staging 11.22, RTX 5090, vkd3d-proton master), `ambient::` tests: main 10 passed / 4 failed → with the PR 13 / 2, the two left being the WARP-only ones (no WARP DLL under Wine). In play the passes build and run; `VICTORY_AMBIENT` acts (0.8 default), which is the point of #1957's switch.
github-actions[bot] commented 2026-11-29 10:02:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T10:02:04Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254161667 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2158#issuecomment-7254161667). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T10:02:04Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#2158
No description provided.