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:33:15 +00:00 by slauko · 0 comments
slauko commented 2026-11-26 07:33:15 +00:00 (Migrated from github.com)
Contributor

Imported from uiliannn/VItoriaBr. Originally posted by slauko on 2026-11-26T07:33:15Z.


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.

<!-- greyfinch-sync:uiliannn/VItoriaBr:issue:6621781689 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VItoriaBr/issues/113). Originally posted by [slauko](https://github.com/slauko) on 2026-11-26T07:33:15Z. --- 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.
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
uiliannn/VItoriaBr#113
No description provided.