Under Wine the run-time shaders do not compile: no ambient light, no merge on the card (the layer's compile, DXC where the system's refuses) #113

Open
opened 2026-11-26 07:36:09 +00:00 by github-bot · 0 comments
Owner

@⁠slauko on GitHub · 2026-11-26 07:33 UTC · original

Under Wine (Proton Experimental's Wine, vkd3d-proton ec20719, RTX 3080 Ti) the layer's own shaders fail when they are compiled with the system's compiler: Wine's built-in d3dcompiler_47 refuses them, or takes them and leaves the root signature out.

What the log says, on main 4e038bf3d:

  • ambient.rs: no ambient light … error=0x80004005 in every run; the cell stays dark where the build before the merge showed it lit.
  • host.rs, make_card_merge (#37): no merge on the card (VICTORY_MERGE_ON_CARD): the bytes go up as copies error=0x80004005 — the merge never runs.
  • The card compare and the argument clamp in indirect.rs: E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'. Without the clamp every indirect execution is dropped; without the compare the card buffers are off.

What works here: every run-time shader goes through one compile that takes the system's compiler and, where that refuses, DXC (dxcompiler.dll and dxil.dll, release v1.9.2609: a *_5_1 target compiled as *_6_0, the root signature inside; a container DXC signs without finding dxil.dll carries a zero digest, which D3D12 refuses, so it is signed there). With it: ambient light level=0.6 width=2560 height=1440, and the merge on the card runs.

The commits are in slauko/gta6-slk, branch integration: 16a94bdc (the ambient light), a37da68b (the merge on the card); the module is crates/victory-gpu/src/dxc.rs, taken from fxceless/victory-fork#20 (VICTORY_DXC), as the local patch of Marvisak/VIctory#1528 does it.

Nothing changes on Windows: FXC's result is taken as before, DXC only where the system's compiler fails. It holds for every run-time shader a merge brings in — the compare's wide form went the same way.

**@⁠slauko** on GitHub · 2026-11-26 07:33 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/113) Under Wine (Proton Experimental's Wine, vkd3d-proton `ec20719`, RTX 3080 Ti) the layer's own shaders fail when they are compiled with the system's compiler: Wine's built-in `d3dcompiler_47` refuses them, or takes them and leaves the root signature out. What the log says, on `main` `4e038bf3d`: - `ambient.rs`: `no ambient light … error=0x80004005` in every run; the cell stays dark where the build before the merge showed it lit. - `host.rs`, `make_card_merge` (#37): `no merge on the card (VICTORY_MERGE_ON_CARD): the bytes go up as copies error=0x80004005` — the merge never runs. - The card compare and the argument clamp in `indirect.rs`: `E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'`. Without the clamp every indirect execution is dropped; without the compare the card buffers are off. **What works here:** every run-time shader goes through one compile that takes the system's compiler and, where that refuses, DXC (`dxcompiler.dll` and `dxil.dll`, release v1.9.2609: a `*_5_1` target compiled as `*_6_0`, the root signature inside; a container DXC signs without finding `dxil.dll` carries a zero digest, which D3D12 refuses, so it is signed there). With it: `ambient light level=0.6 width=2560 height=1440`, and the merge on the card runs. The commits are in slauko/gta6-slk, branch `integration`: `16a94bdc` (the ambient light), `a37da68b` (the merge on the card); the module is `crates/victory-gpu/src/dxc.rs`, taken from fxceless/victory-fork#20 (`VICTORY_DXC`), as the local patch of Marvisak/VIctory#1528 does it. Nothing changes on Windows: FXC's result is taken as before, DXC only where the system's compiler fails. It holds for every run-time shader a merge brings in — the compare's wide form went the same way.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:36:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.