GPU: compile our run-time HLSL with DXC when the system compiler refuses it (Wine/Proton) #20

Open
github-bot wants to merge 9 commits from github-bot/gh-20 into main AGit
Owner

@⁠ErRusso on GitHub · 2026-11-24 20:06 UTC · original
ErRusso:runtime-hlsl-dxc-fallback → main · +497 −193 · 10 files · 9 commits · open

Fixes #6 (part 1).

What

Under Wine and Proton D3DCompile is Wine's d3dcompiler_47 (vkd3d-shader), and it fails the host's own HLSL in two different ways:

  1. It refuses some of the source: E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer' (the clamp, the card compare, the in-place probe). Each caller then gave up quietly: the indirect-argument clamp was dropped, so every indirect execution was; the card compare could not be made, so copies in the card's memory switched off; the in-place probe had no pipeline.
  2. It compiles the rest but drops the root signature the shader asks for (the depth-plane twins: no RWByteAddressBuffer in their source). The container carries no RTS0 chunk, so CreateRootSignature over those bytes fails with E_FAIL and the twins log no pipeline to draw a depth plane from its twin.

crates/victory-gpu/src/dxc.rs now compiles our HLSL in one place:

  • D3DCompile first, as before;
  • if it refuses the source, or its container has no root signature for a source that asks for one, the same source goes through DXC (dxcompiler.dll) as shader model 6.0, *_5_1 mapped to *_6_0, -E <entry>, -O3. The root signature stays inside the shader, so the callers only see bytes. A stage with no root signature of its own (a vertex shader whose pixel shader carries it) keeps the system's bytes;
  • dxcompiler.dll is looked for in VICTORY_DXC (the DLL or its folder), beside the dxil.dll shader validation already uses (the SDK ships them together), then the executable's folder and System32;
  • a container DXC compiles without finding dxil.dll carries a zero digest, which D3D12 refuses: such containers are validated (and signed) in place, VICTORY_DXIL naming the validator if it is somewhere else.

Callers routed through it: the clamp in indirect.rs (make_for, and the tests' compile_cs), host.rs compile() (the depth-plane twins) and make_card_work (the card compare), inplace.rs shade(). The refusal, the missing root signature and the fallback are logged once per compile, with entry and profile.

Adds the Win32_Graphics_Direct3D_Dxc feature to the windows crate in victory-gpu (no new crates, Cargo.lock unchanged). README: the fallback and the VICTORY_DXC / dxil.dll requirement under Wine.

Testing

Run under Wine 11.22 with GE-Proton11-12's vkd3d-proton (d3d12.dll/d3d12core.dll overridden to native), DXC 1.9.2609 (VICTORY_DXC, the same version as in #6), on an RTX 4060 with the 620.73.04 driver — the same driver series as the report.

  • The crate's whole test suite: 111 of 112 pass. The one failure is pipeline::library::tests::a_rejected_blob_gives_an_empty_library, which fails identically with these changes stashed: vkd3d-proton does not implement ID3D12Device1::CreatePipelineLibrary. Unrelated.
  • resource::tests::a_depth_planes_twin_is_drawn_into_the_plane fails before the root-signature part of this PR and passes after it — that test compiles the twins' vertex and pixel shaders through host::compile() and draws with them.
  • indirect::tests::argument_clamp_builds builds the clamp through the fallback (the host device exists under Wine; it is not a skip).
  • New test dxc::tests::a_shader_the_system_compiler_refuses_is_compiled_by_dxc: the log shows the system compiler refused it: Call failed. (0x80004005), then a DXIL container with a nonzero digest and an RTS0 chunk, and D3D12 takes the root signature out of it and creates the compute pipeline (D3D12 took the root signature and made the pipeline).

Verification since the original run

  • Windows 11, RTX 5070, driver 621.40, DXC 1.9.2602 (@⁠marquezinii): workspace 487 passed, 0 failed, 7 ignored; victory-gpu --lib 113 passed; clippy clean. lit now asks for no root signature and keeps D3DCompile bytes; main, plane and corner ask for one and keep it, so DXC is not entered on Windows. Forcing every compile through DXC: 113 passed, 19 DXC compiles. With VICTORY_DXC pointing at a folder holding only dxcompiler.dll: 113 passed.
  • Proton Experimental experimental-11.0-20261112, RTX 4060, driver 620.73.04 (this branch, 14a1f07): d3dcompiler_47 refused the clamp (E5005: InterlockedMax), the card compare (E5005: Load4) and the in-place probe (E5005: Load), and accepted the twins' pixel shader without RTS0. DXC supplied all four. A run reached the prologue (frame 13,124; mission fbk_stry000_FBK_STRY000_INTRO; 32 peds, 3596 buildings), with the clamp, card compare, probe and twins all used.
  • GE-Proton11-14 / vkd3d-proton 3.2.0, RTX 5090 (@⁠ThomasHFWright): DXC fallback used for the clamp and the twins' missing root signature; zero no argument clamp / not bounded / DXC failed too; 2,147 indirect commands bounded per frame; 946 SPIR-V modules validate for Vulkan 1.3 with scalar-block-layout.
  • GE-Proton11-14 / vkd3d-proton 3.2.0, RTX 4060, driver 620.73.04 (local, VICTORY_INPLACE_PROBE unset): DXC supplied the clamp and the twins' pixel shader; clamp used (bound) and depth-plane twin used were logged at 1,434 draws/frame. The kernel then logged NVRM gpu_vaspace.c assertion failures and the machine hung after about seven minutes. This reproduces the separate GPU/driver fault on a second GPU and without the in-place probe, so it is not probe-induced.

Scope: this fixes the run-time HLSL compiles. It does not claim the vkd3d-proton GPU execution fault/device removal: on @⁠ThomasHFWright's stack the control still ends with Xid 109, and this branch with Xid 13 in a different submission; locally the same class of NVRM gpu_vaspace.c failure hangs an RTX 4060. The world remains blocked there for a separate reason. The intro-video flicker, the VICTORY_RELAY=2 geometry dropout and the three untranslated skin shaders are also separate.

AI-assisted: written with the pi coding agent at my request.

**@⁠ErRusso** on GitHub · 2026-11-24 20:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/20) `ErRusso:runtime-hlsl-dxc-fallback` → `main` · +497 −193 · 10 files · 9 commits · open Fixes #6 (part 1). ## What Under Wine and Proton `D3DCompile` is Wine's `d3dcompiler_47` (vkd3d-shader), and it fails the host's own HLSL in two different ways: 1. **It refuses some of the source**: `E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'` (the clamp, the card compare, the in-place probe). Each caller then gave up quietly: the indirect-argument clamp was dropped, so every indirect execution was; the card compare could not be made, so copies in the card's memory switched off; the in-place probe had no pipeline. 2. **It compiles the rest but drops the root signature** the shader asks for (the depth-plane twins: no `RWByteAddressBuffer` in their source). The container carries no `RTS0` chunk, so `CreateRootSignature` over those bytes fails with `E_FAIL` and the twins log `no pipeline to draw a depth plane from its twin`. `crates/victory-gpu/src/dxc.rs` now compiles our HLSL in one place: - `D3DCompile` first, as before; - if it refuses the source, or its container has no root signature for a source that asks for one, the same source goes through DXC (`dxcompiler.dll`) as shader model 6.0, `*_5_1` mapped to `*_6_0`, `-E <entry>`, `-O3`. The root signature stays inside the shader, so the callers only see bytes. A stage with no root signature of its own (a vertex shader whose pixel shader carries it) keeps the system's bytes; - `dxcompiler.dll` is looked for in `VICTORY_DXC` (the DLL or its folder), beside the `dxil.dll` shader validation already uses (the SDK ships them together), then the executable's folder and System32; - a container DXC compiles without finding `dxil.dll` carries a zero digest, which D3D12 refuses: such containers are validated (and signed) in place, `VICTORY_DXIL` naming the validator if it is somewhere else. Callers routed through it: the clamp in `indirect.rs` (`make_for`, and the tests' `compile_cs`), `host.rs` `compile()` (the depth-plane twins) and `make_card_work` (the card compare), `inplace.rs` `shade()`. The refusal, the missing root signature and the fallback are logged once per compile, with entry and profile. Adds the `Win32_Graphics_Direct3D_Dxc` feature to the `windows` crate in `victory-gpu` (no new crates, `Cargo.lock` unchanged). README: the fallback and the `VICTORY_DXC` / `dxil.dll` requirement under Wine. ## Testing Run under **Wine 11.22** with **GE-Proton11-12's vkd3d-proton** (`d3d12.dll`/`d3d12core.dll` overridden to native), **DXC 1.9.2609** (`VICTORY_DXC`, the same version as in #6), on an RTX 4060 with the 620.73.04 driver — the same driver series as the report. - The crate's whole test suite: **111 of 112 pass**. The one failure is `pipeline::library::tests::a_rejected_blob_gives_an_empty_library`, which fails identically with these changes stashed: vkd3d-proton does not implement `ID3D12Device1::CreatePipelineLibrary`. Unrelated. - `resource::tests::a_depth_planes_twin_is_drawn_into_the_plane` **fails before the root-signature part of this PR and passes after it** — that test compiles the twins' vertex and pixel shaders through `host::compile()` and draws with them. - `indirect::tests::argument_clamp_builds` builds the clamp through the fallback (the host device exists under Wine; it is not a skip). - New test `dxc::tests::a_shader_the_system_compiler_refuses_is_compiled_by_dxc`: the log shows `the system compiler refused it: Call failed. (0x80004005)`, then a `DXIL` container with a nonzero digest and an `RTS0` chunk, and D3D12 takes the root signature out of it and creates the compute pipeline (`D3D12 took the root signature and made the pipeline`). ### Verification since the original run - **Windows 11, RTX 5070, driver 621.40, DXC 1.9.2602** (@⁠marquezinii): workspace `487 passed, 0 failed, 7 ignored`; `victory-gpu --lib` 113 passed; clippy clean. `lit` now asks for no root signature and keeps `D3DCompile` bytes; `main`, `plane` and `corner` ask for one and keep it, so DXC is not entered on Windows. Forcing every compile through DXC: 113 passed, 19 DXC compiles. With `VICTORY_DXC` pointing at a folder holding only `dxcompiler.dll`: 113 passed. - **Proton Experimental experimental-11.0-20261112, RTX 4060, driver 620.73.04** (this branch, `14a1f07`): `d3dcompiler_47` refused the clamp (`E5005: InterlockedMax`), the card compare (`E5005: Load4`) and the in-place probe (`E5005: Load`), and accepted the twins' pixel shader without `RTS0`. DXC supplied all four. A run reached the prologue (frame 13,124; mission `fbk_stry000_FBK_STRY000_INTRO`; 32 peds, 3596 buildings), with the clamp, card compare, probe and twins all used. - **GE-Proton11-14 / vkd3d-proton 3.2.0, RTX 5090** (@⁠ThomasHFWright): DXC fallback used for the clamp and the twins' missing root signature; zero `no argument clamp` / `not bounded` / `DXC failed too`; 2,147 indirect commands bounded per frame; 946 SPIR-V modules validate for Vulkan 1.3 with scalar-block-layout. - **GE-Proton11-14 / vkd3d-proton 3.2.0, RTX 4060, driver 620.73.04** (local, `VICTORY_INPLACE_PROBE` unset): DXC supplied the clamp and the twins' pixel shader; `clamp used (bound)` and `depth-plane twin used` were logged at 1,434 draws/frame. The kernel then logged NVRM `gpu_vaspace.c` assertion failures and the machine hung after about seven minutes. This reproduces the separate GPU/driver fault on a second GPU and without the in-place probe, so it is not probe-induced. **Scope:** this fixes the run-time HLSL compiles. It does **not** claim the vkd3d-proton GPU execution fault/device removal: on @⁠ThomasHFWright's stack the control still ends with Xid 109, and this branch with Xid 13 in a different submission; locally the same class of NVRM `gpu_vaspace.c` failure hangs an RTX 4060. The world remains blocked there for a separate reason. The intro-video flicker, the `VICTORY_RELAY=2` geometry dropout and the three untranslated skin shaders are also separate. *AI-assisted: written with the pi coding agent at my request.*
Under Wine and Proton, D3DCompile is Wine's d3dcompiler_47 (vkd3d-shader),
which rejects RWByteAddressBuffer methods with "E5005: Method 'Load' is not
defined on type 'RWByteAddressBuffer'". Every run-time compile of the host's
own HLSL then failed and the caller gave up quietly: the indirect-argument
clamp was dropped, so every indirect execution was; the card compare could
not be made, so copies in the card's memory switched off; the depth-plane
twins and the in-place probe had no pipeline.

crates/victory-gpu/src/dxc.rs now compiles our HLSL in one place: D3DCompile
first, and if it refuses, the same source with DXC (dxcompiler.dll) as shader
model 6.0 (a *_5_1 profile mapped to *_6_0), the root signature still inside
the shader. DXC is looked for in VICTORY_DXC (the DLL or its folder), beside
the dxil.dll shader validation uses, then the executable's folder and
System32; a container DXC compiled without finding dxil.dll carries a zero
digest and is signed here. On Windows, where D3DCompile succeeds, nothing
changes.

The clamp, the card compare, the twins, the in-place probe and the indirect
tests' worker all go through it, so the error text is logged once with the
entry and profile, and the fallback is visible in the log.
Tested under Wine 11.22 with GE-Proton11-12's vkd3d-proton and DXC
1.9.2609: Wine's d3dcompiler_47 refuses the clamp, the card compare and
the in-place probe (E5005, RWByteAddressBuffer), and the fallback compiles
them; D3D12 takes the root signature out of DXC's container and makes the
pipeline.

The depth-plane twins were still without one. vkd3d-shader compiles their
source (no RWByteAddressBuffer in it) but leaves the [RootSignature] out of
the container, so CreateRootSignature over its bytes fails with E_FAIL and
the twins log "no pipeline to draw a depth plane from its twin". So a
successful system compile is not the end of it: when the source asks for a
root signature and the container carries none (RTS0), DXC compiles it too
and its bytes are used if they carry one. A stage with no root signature of
its own (a vertex shader whose pixel shader has it) keeps the system's
bytes. On Windows, where D3DCompile keeps the root signature, nothing
changes.

Tests: a Wine run of the crate's suite passes 111 of 112; the failure is
pipeline::library::tests::a_rejected_blob_gives_an_empty_library, which
fails the same way without these changes (vkd3d-proton has no
ID3D12Device1::CreatePipelineLibrary). a_depth_planes_twin_is_drawn_into_
the_plane fails before this commit and passes after it.

The new tests in dxc.rs compile a shader through the fallback and have
D3D12 make its root signature and pipeline from the bytes.
A source can hold several entries: the resource test compiles `corner`,
which carries the root signature, and `lit`, which does not. The check
now ties each attribute to the declaration after it (and any attributes
between), so `lit` keeps the system's bytes without a retry.
An attribute that cannot be tied to a declaration still counts, so the
check errs towards compiling again rather than missing the Wine case.
Wine 11.22 still refuses the clamp, the card compare and the in-place
probe with E5005 and drops the twins' root signature; Proton Experimental
experimental-11.0-20261112 compiles them all and never takes the fallback.
The host HLSL is identical across 578d459..1684989, so the difference is
the bundled compiler, not the source.
The Proton Experimental run built the card compare without the fallback,
but never reached the world, so it did not exercise the clamp, the
depth-plane twins or the in-place probe. State only what that run shows.
A run into the prologue on Proton Experimental experimental-11.0-20261112
shows d3dcompiler_47 refusing the clamp, card compare and probe and
dropping the twins' root signature; the fallback supplied all four.
This replaces the loading-screen-only observation.
A separate GPU execution fault/device removal under vkd3d-proton 3.2
still ends the run after the helper shaders compile; this change does
not address it.
A local RTX 4060 run on GE-Proton11-14 / vkd3d-proton 3.2 used the
DXC fallback for the clamp and twins, then the kernel logged NVRM
gpu_vaspace assertions and the machine hung. The probe was off, so
this is not probe-induced.
The fallback test needs DXC when the system compiler refuses the source,
and a host without `dxcompiler.dll` (Wine's builtin compiler, no
`VICTORY_DXC`) has no compiler for it at all: the test failed with
`0x8007007E` for a fixture that is not installed, not for a broken
fallback. It now prints that, names `VICTORY_DXC`, and returns, as the
test already does without a D3D12 device. A DXC that is present but
fails still fails the test.

Verified under Wine 11.22 with the builtin `d3dcompiler_47`
(`WINEDLLOVERRIDES=d3dcompiler_47=b`), `VICTORY_DXC` unset: the three
`dxc::tests` pass, the fallback one printing `no dxcompiler.dll here`.
With `VICTORY_DXC` naming DXC 1.9 beside its `dxil.dll`: 3 passed, and
the container (2816 bytes, `DXBC`, `RTS0`), the root signature and the
compute pipeline are checked as before.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:34:42 +00:00
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 20:20 UTC · original

Second commit, from testing this under Wine: the compile-failure fallback alone was not enough for the depth-plane twins.

Wine's d3dcompiler_47 (vkd3d-shader) compiles the twins' source fine — there is no RWByteAddressBuffer in it — but leaves the [RootSignature(RS)] out of the container (no RTS0 chunk), so CreateRootSignature over its bytes fails with E_FAIL and the twins keep logging no pipeline to draw a depth plane from its twin. That is a second, silent failure mode next to E5005.

So a successful system compile is no longer taken as final: if the source asks for a root signature and the container carries none, DXC compiles it too and its bytes are used when they carry one (dxc.rs, carries_root_signature). A stage with no root signature of its own — the twins' vertex shader — keeps the system's bytes, since its pixel shader carries the signature.

Under Wine 11.22 + GE-Proton11-12's vkd3d-proton + DXC 1.9.2609, the crate's suite is 111/112 (the one failure, pipeline::library::tests::a_rejected_blob_gives_an_empty_library, fails the same way without these changes: vkd3d-proton has no CreatePipelineLibrary), and a_depth_planes_twin_is_drawn_into_the_plane fails before this commit and passes after it.

**@⁠ErRusso** on GitHub · 2026-11-24 20:20 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7143386513) Second commit, from testing this under Wine: the compile-failure fallback alone was not enough for the depth-plane twins. Wine's `d3dcompiler_47` (vkd3d-shader) compiles the twins' source fine — there is no `RWByteAddressBuffer` in it — but leaves the `[RootSignature(RS)]` out of the container (no `RTS0` chunk), so `CreateRootSignature` over its bytes fails with `E_FAIL` and the twins keep logging `no pipeline to draw a depth plane from its twin`. That is a second, silent failure mode next to `E5005`. So a successful system compile is no longer taken as final: if the source asks for a root signature and the container carries none, DXC compiles it too and its bytes are used when they carry one (`dxc.rs`, `carries_root_signature`). A stage with no root signature of its own — the twins' vertex shader — keeps the system's bytes, since its pixel shader carries the signature. Under Wine 11.22 + GE-Proton11-12's vkd3d-proton + DXC 1.9.2609, the crate's suite is 111/112 (the one failure, `pipeline::library::tests::a_rejected_blob_gives_an_empty_library`, fails the same way without these changes: vkd3d-proton has no `CreatePipelineLibrary`), and `a_depth_planes_twin_is_drawn_into_the_plane` fails before this commit and passes after it.
Author
Owner

@⁠marquezinii on GitHub · 2026-11-24 20:26 UTC · original

I ran the DXC path on native Windows, since it hadn't been run anywhere yet: RTX 5070 (driver 621.40), Windows 11, dxcompiler.dll/dxil.dll from SDK 10.0.26100 (1.9.2602), PR head 73a0c56.

cargo test -p victory-gpu --lib, three ways:

  • As is: 112 passed, 1 ignored. Apart from lit (see below), every compile with a root signature in its source came back from D3DCompile carrying it, so the new check keeps the system's bytes (12 main, 2 plane, corner).
  • Every compile forced through dxc() (a local patch that makes system() fail, not part of this PR): 112 passed. That covers the clamp (cs_5_1, 3,851-byte source), the depth-plane twins (plane as ps_5_1, both variants), the in-place probe, the corner/lit pair and the smaller compute sources; the in-place probe gives the same verdict as with D3DCompile.
  • Forced, with VICTORY_DXC pointing at a folder holding only dxcompiler.dll (no dxil.dll next to it): 112 passed, so the containers get signed and the driver accepts them.

The full workspace suite on the first head (9ffa202) was unchanged here, 484 passed.

One small thing in 73a0c56: the check looks for RootSignature in the whole source, not in the entry. The resource test that compiles lit (ps_5_1) from a source whose corner entry has the root signature therefore goes to DXC on Windows too, and keeps the system's bytes afterwards since DXC has none to give either. It's test-only code, so it changes nothing at run time, but on a machine without dxcompiler.dll it would log DXC failed too there.

Not tested: Wine/Proton itself.

**@⁠marquezinii** on GitHub · 2026-11-24 20:26 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7143544262) I ran the DXC path on native Windows, since it hadn't been run anywhere yet: RTX 5070 (driver 621.40), Windows 11, `dxcompiler.dll`/`dxil.dll` from SDK 10.0.26100 (1.9.2602), PR head `73a0c56`. `cargo test -p victory-gpu --lib`, three ways: - **As is:** 112 passed, 1 ignored. Apart from `lit` (see below), every compile with a root signature in its source came back from `D3DCompile` carrying it, so the new check keeps the system's bytes (12 `main`, 2 `plane`, `corner`). - **Every compile forced through `dxc()`** (a local patch that makes `system()` fail, not part of this PR): 112 passed. That covers the clamp (`cs_5_1`, 3,851-byte source), the depth-plane twins (`plane` as `ps_5_1`, both variants), the in-place probe, the `corner`/`lit` pair and the smaller compute sources; the in-place probe gives the same verdict as with `D3DCompile`. - **Forced, with `VICTORY_DXC` pointing at a folder holding only `dxcompiler.dll`** (no `dxil.dll` next to it): 112 passed, so the containers get signed and the driver accepts them. The full workspace suite on the first head (`9ffa202`) was unchanged here, 484 passed. One small thing in `73a0c56`: the check looks for `RootSignature` in the whole source, not in the entry. The resource test that compiles `lit` (`ps_5_1`) from a source whose `corner` entry has the root signature therefore goes to DXC on Windows too, and keeps the system's bytes afterwards since DXC has none to give either. It's test-only code, so it changes nothing at run time, but on a machine without `dxcompiler.dll` it would log `DXC failed too` there. Not tested: Wine/Proton itself.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 20:32 UTC · original

Thanks for running the DXC path on native Windows — the forced-DXC pass and the compiler-without-dxil.dll pass cover two branches no test had exercised.

On the lit point: correct, and 3bb3845 scopes the check to the entry. asks_for_root_signature ties each [RootSignature(...)] to the declaration that follows it (skipping any attributes in between, such as [numthreads]), so lit no longer triggers a retry while main and plane still do. When an attribute cannot be tied to a declaration, or RootSignature appears outside one, it answers yes: the conservative direction, since the answer only decides whether a second compile is attempted. New test a_root_signature_belongs_to_the_entry_it_sits_on covers a main + lit source and the no-attribute case.

Verified here: cargo check -p victory-gpu --lib --tests --target x86_64-pc-windows-gnu, and that test under Wine (1 passed). I did not rerun the full Windows or Wine suite; the 112-pass results above remain the evidence for the earlier head.

**@⁠ErRusso** on GitHub · 2026-11-24 20:32 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7143706135) Thanks for running the DXC path on native Windows — the forced-DXC pass and the compiler-without-`dxil.dll` pass cover two branches no test had exercised. On the `lit` point: correct, and `3bb3845` scopes the check to the entry. `asks_for_root_signature` ties each `[RootSignature(...)]` to the declaration that follows it (skipping any attributes in between, such as `[numthreads]`), so `lit` no longer triggers a retry while `main` and `plane` still do. When an attribute cannot be tied to a declaration, or `RootSignature` appears outside one, it answers yes: the conservative direction, since the answer only decides whether a second compile is attempted. New test `a_root_signature_belongs_to_the_entry_it_sits_on` covers a `main` + `lit` source and the no-attribute case. Verified here: `cargo check -p victory-gpu --lib --tests --target x86_64-pc-windows-gnu`, and that test under Wine (1 passed). I did not rerun the full Windows or Wine suite; the 112-pass results above remain the evidence for the earlier head.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 20:53 UTC · original

Thanks — a clean in-game run on AMD is useful even where the fallback is inert, and the two environment notes are worth having in #41.

Source vs compiler, pinned: the HLSL did not change. indirect.rs, host.rs and inplace.rs are byte-identical between 578d459 and 1684989, so the clamp, card compare, in-place probe and twins are the same source you ran. The difference is the bundled compiler.

Independent datapoint: on this machine, Wine 11.22's built-in d3dcompiler_47 still fails all of it. A small D3DCompile-only program (no device), compiled against the same sources at 1684989:

  • clamp: E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'
  • card compare: E5005: Method 'Load4' ...
  • in-place probe: E5005: Method 'Load' ...
  • depth-plane twins: compiles (716 bytes), but the container has no RTS0

So both failure modes are real at this source revision; Proton Experimental experimental-11.0-20261112 ships a compiler that handles them. Pinning the exact vkd3d-shader/vkd3d-proton version where InterlockedMax, Load4 and root-signature retention arrived would be worth a note in #6, but it is not a property of this tree.

One caveat on "fallback was not used": on this branch the fallback logs at info (the system compiler refused one of our shaders: trying DXC, the system compiler left the root signature out...), and the old no argument clamp warning is gone whether the fallback ran or not. Absence of the old messages does not distinguish the two; the info lines do. Your 1684989 run is conclusive on its own, though: on unmodified main a refused clamp still logs and the card compare would have switched off, and neither happened.

I updated the README in 083da25 to stop claiming every Wine build rejects this source: it names Wine 11.22 and GE-Proton 11-12/11-14 as refusing it, and Proton Experimental experimental-11.0-20261112 as compiling it and never taking the fallback.

On #20 vs #21: this does not change the comparison. #20 still covers the in-place probe and the dropped root signature, and because it always tries the system compiler first, the Proton Experimental result above is also its behavior there — the fallback is inert, not a regression. Dropping it would leave the Wine 11.22 / GE-Proton setups from #6 broken.

**@⁠ErRusso** on GitHub · 2026-11-24 20:53 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7144201258) Thanks — a clean in-game run on AMD is useful even where the fallback is inert, and the two environment notes are worth having in #41. **Source vs compiler, pinned:** the HLSL did not change. `indirect.rs`, `host.rs` and `inplace.rs` are byte-identical between `578d459` and `1684989`, so the clamp, card compare, in-place probe and twins are the same source you ran. The difference is the bundled compiler. **Independent datapoint:** on this machine, Wine 11.22's built-in `d3dcompiler_47` still fails all of it. A small `D3DCompile`-only program (no device), compiled against the same sources at `1684989`: - clamp: `E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'` - card compare: `E5005: Method 'Load4' ...` - in-place probe: `E5005: Method 'Load' ...` - depth-plane twins: compiles (716 bytes), but the container has no `RTS0` So both failure modes are real at this source revision; Proton Experimental experimental-11.0-20261112 ships a compiler that handles them. Pinning the exact vkd3d-shader/vkd3d-proton version where `InterlockedMax`, `Load4` and root-signature retention arrived would be worth a note in #6, but it is not a property of this tree. **One caveat on "fallback was not used":** on this branch the fallback logs at `info` (`the system compiler refused one of our shaders: trying DXC`, `the system compiler left the root signature out...`), and the old `no argument clamp` warning is gone whether the fallback ran or not. Absence of the old messages does not distinguish the two; the info lines do. Your `1684989` run is conclusive on its own, though: on unmodified `main` a refused clamp still logs and the card compare would have switched off, and neither happened. I updated the README in `083da25` to stop claiming every Wine build rejects this source: it names Wine 11.22 and GE-Proton 11-12/11-14 as refusing it, and Proton Experimental experimental-11.0-20261112 as compiling it and never taking the fallback. On #20 vs #21: this does not change the comparison. #20 still covers the in-place probe and the dropped root signature, and because it always tries the system compiler first, the Proton Experimental result above is also its behavior there — the fallback is inert, not a regression. Dropping it would leave the Wine 11.22 / GE-Proton setups from #6 broken.
Author
Owner

@⁠oeirughrepuiohg on GitHub · 2026-11-24 20:43 UTC · original · edited 2026-11-24 20:54 UTC

In-game data point for this fallback, since the description notes the title itself was not run: I had made the same change independently (#21, now closed in favour of this PR, which also covers the in-place probe and the dropped root signature).

Setup: RTX 4070 Ti 12 GB, NVIDIA 620.70.06 open modules (with NVIDIA/open-gpu-kernel-modules PR #1542), Fedora 45, kernel 7.3.4; Wine from Proton Experimental (11.0-20261027b), vkd3d-proton cae8353e, DXC 1.9.2609 via VICTORY_DXC. Diag build of d279e69 + VIctory #454 + the fallback, Series X, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_NO_WATCHDOG=1.

In the world (two runs of ~25 min):

  • The log shows the clamp refused by Wine's compiler (E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'), then built by DXC; indirect work runs (~4,000–5,000 draws/frame).
  • The first gameplay scene renders lit and is controllable with a pad. Steady state at the movement prompt over 8 min: 1.96 fps average, 1% low 1.52 fps, frame time p50 507 ms / p99 624 ms.
  • No device removal, no Xid during play, 8 shader does not translate warnings.

Update: this PR's own head in the game, and the root-signature half matters visually. I then ran 3bb3845 merged onto 90228a7 (+ VIctory #454), same setup:

  • Without this PR the log has no pipeline to draw a depth plane from its twin: such planes stay as they are (Wine's compiler drops the root signature). With it: depth planes: 1.0 drawn from their twins per frame.
  • At the first movement prompt, the large pale rectangular patches that covered the window and the foreground in every earlier run are gone; the window frame and its wire mesh render correctly. The character's hair is still wrong (oversized, wispy strands), which looks separate.
  • No device removal or Xid so far in this run.

I had not run this PR's own commit in the game yet; the above is the same approach on d279e69.

AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my machine and wrote this comment.

**@⁠oeirughrepuiohg** on GitHub · 2026-11-24 20:43 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7143982747) · edited 2026-11-24 20:54 UTC In-game data point for this fallback, since the description notes the title itself was not run: I had made the same change independently (#21, now closed in favour of this PR, which also covers the in-place probe and the dropped root signature). **Setup:** RTX 4070 Ti 12 GB, NVIDIA 620.70.06 open modules (with NVIDIA/open-gpu-kernel-modules PR #1542), Fedora 45, kernel 7.3.4; Wine from Proton Experimental (11.0-20261027b), vkd3d-proton `cae8353e`, DXC 1.9.2609 via `VICTORY_DXC`. Diag build of `d279e69` + VIctory #454 + the fallback, Series X, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_NO_WATCHDOG=1`. **In the world (two runs of ~25 min):** - The log shows the clamp refused by Wine's compiler (`E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'`), then built by DXC; indirect work runs (~4,000–5,000 draws/frame). - The first gameplay scene renders lit and is controllable with a pad. Steady state at the movement prompt over 8 min: **1.96 fps average, 1% low 1.52 fps, frame time p50 507 ms / p99 624 ms**. - No device removal, no `Xid` during play, 8 `shader does not translate` warnings. **Update: this PR's own head in the game, and the root-signature half matters visually.** I then ran `3bb3845` merged onto `90228a7` (+ VIctory #454), same setup: - Without this PR the log has `no pipeline to draw a depth plane from its twin: such planes stay as they are` (Wine's compiler drops the root signature). With it: `depth planes: 1.0 drawn from their twins per frame`. - At the first movement prompt, the large pale rectangular patches that covered the window and the foreground in every earlier run are gone; the window frame and its wire mesh render correctly. The character's hair is still wrong (oversized, wispy strands), which looks separate. - No device removal or `Xid` so far in this run. I had not run this PR's own commit in the game yet; the above is the same approach on `d279e69`. AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my machine and wrote this comment.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 21:06 UTC · original

Thanks for the correction — noted, and it changes what the run can be used for.

What still holds: on the branch, the compiles the boot/menu/splash/loading path reaches were accepted without the fallback; the card compare is the clearest one, since it built (10 copies of 492 MB). On unmodified 1684989 it also built, and no no argument clamp warning appeared, so its d3dcompiler_47 accepted at least CARD_COMPARE — the shader Wine 11.22 rejects with E5005: Load4 here. That is still a real compiler-version difference.

What it no longer establishes: the clamp, the depth-plane twins and the in-place probe. The clamp is built lazily on the first indirect execution (indirect::bound), the twins lazily when a compute-written depth texture needs one, and the probe on its first use. A run that stops at loading may never compile them, so “fallback not taken” covers only the shaders that path exercised, not the four the PR targets. It also can’t decide #20 vs #21: the clamp and twins are exactly what #21 handles differently, and neither was reached.

I corrected the README in 14a1f07: it now says the Proton Experimental run built the card compare without the fallback but did not exercise the clamp, twins or probe. The known-problems note no longer claims Proton Experimental needs no DXC; it names only the builds that reproduce the rejection.

The frame-cost table re-read as loading frames and the memory probe (21 GB/s mapped writes, 143–163 GB/s card copies) are consistent with your conclusion that the host paths were not the limiter in that run. None of it is a judgment on the branch. A run that reaches the world would settle it; the info lines (the system compiler refused one of our shaders: trying DXC, the system compiler left the root signature out...) and, on 1684989, the old warnings would identify which of the four compiled and how.

**@⁠ErRusso** on GitHub · 2026-11-24 21:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7144481831) Thanks for the correction — noted, and it changes what the run can be used for. What still holds: on the branch, the compiles the boot/menu/splash/loading path reaches were accepted without the fallback; the card compare is the clearest one, since it built (10 copies of 492 MB). On unmodified `1684989` it also built, and no `no argument clamp` warning appeared, so its `d3dcompiler_47` accepted at least `CARD_COMPARE` — the shader Wine 11.22 rejects with `E5005: Load4` here. That is still a real compiler-version difference. What it no longer establishes: the clamp, the depth-plane twins and the in-place probe. The clamp is built lazily on the first indirect execution (`indirect::bound`), the twins lazily when a compute-written depth texture needs one, and the probe on its first use. A run that stops at loading may never compile them, so “fallback not taken” covers only the shaders that path exercised, not the four the PR targets. It also can’t decide #20 vs #21: the clamp and twins are exactly what #21 handles differently, and neither was reached. I corrected the README in `14a1f07`: it now says the Proton Experimental run built the card compare without the fallback but did not exercise the clamp, twins or probe. The known-problems note no longer claims Proton Experimental needs no DXC; it names only the builds that reproduce the rejection. The frame-cost table re-read as loading frames and the memory probe (21 GB/s mapped writes, 143–163 GB/s card copies) are consistent with your conclusion that the host paths were not the limiter in that run. None of it is a judgment on the branch. A run that reaches the world would settle it; the `info` lines (`the system compiler refused one of our shaders: trying DXC`, `the system compiler left the root signature out...`) and, on `1684989`, the old warnings would identify which of the four compiled and how.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 21:22 UTC · original

Independent Linux title comparison: this PR fixes real helper-shader failures here, but a GPU execution fault still blocks the world.

Tested your 14a1f079 delta applied to fork 4e17478b, plus a local opt-in 10-second submission-fence timeout to save command notes. This is integration validation, not an exact-head run. RTX 5090, NVIDIA 620.73.04, CachyOS 7.3.6, Rust 1.98.1 MSVC diagnostics build; GE-Proton11-14 via umu 1.4.3, SteamRT4 4.0.20261110.268882, bundled vkd3d-proton 3.2.0 cae8353ed7959c4+. DXC/validator 1.9.2609, explicit VICTORY_DXC/VICTORY_DXIL.

Both runs were offline, Series X, loop limit 256, VK_NV_raw_access_chains disabled, default performance switches, no pipeline skips or forced debug rendering. The second retained the first run's cache/state; these are not deterministic replays.

  • Control: Wine's compiler rejects InterlockedMax; missing argument clamp and thousands of indirect commands dropped. Fence timeout/device removal after 117.1 s, kernel Xid 109. The failed submission contained seven compute dispatches.

  • With #20: the log explicitly records DXC fallback for the clamp and the depth-plane pixel shader's missing root signature. Zero no argument clamp/not bounded (no clamp...) messages, zero DXC failed too; one sample reports 2,147 indirect commands bounded per frame. The opening story card renders, but no normal world visual established. Ended after 103.1 s with Xid 13 and a fence timeout in a different submission (20 command notes, including draws and indirect compute). This does not identify the exact faulting command or establish that the earlier fault is fixed.

  • All 946 captured SPIR-V modules from the #20 run validate for Vulkan 1.3 with scalar-block-layout.

  • Build, all-target/all-feature Clippy and native asset policy pass. GPU suite with Wine's builtin compiler and explicit DXC: 118 passed, 2 pipeline-library failures, 1 ignored. Both failures also occur in the control; fallback, clamp and depth-plane tests pass.

  • Full diagnostics workspace suite: 501 passed, 6 failed, 7 ignored across 14 executables. The six are the two library tests above, Wine tool-launch failures for nested git/cargo, a missing Wine WSAConnectByList export, and vkd3d accepting the intentionally bad container digest. No numerical shader test failed. Console-compiler differential checks still cannot run here.

AI-assisted testing and analysis. Aggregate results only; no game files, derived shader files or images attached.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 21:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7144842152) Independent Linux title comparison: this PR fixes real helper-shader failures here, but a GPU execution fault still blocks the world. Tested your `14a1f079` delta applied to fork `4e17478b`, plus a local opt-in 10-second submission-fence timeout to save command notes. This is integration validation, not an exact-head run. RTX 5090, NVIDIA 620.73.04, CachyOS 7.3.6, Rust 1.98.1 MSVC diagnostics build; GE-Proton11-14 via umu 1.4.3, SteamRT4 4.0.20261110.268882, bundled vkd3d-proton 3.2.0 `cae8353ed7959c4+`. DXC/validator 1.9.2609, explicit `VICTORY_DXC`/`VICTORY_DXIL`. Both runs were offline, Series X, loop limit 256, `VK_NV_raw_access_chains` disabled, default performance switches, no pipeline skips or forced debug rendering. The second retained the first run's cache/state; these are not deterministic replays. - Control: Wine's compiler rejects `InterlockedMax`; missing argument clamp and thousands of indirect commands dropped. Fence timeout/device removal after 117.1 s, kernel Xid 109. The failed submission contained seven compute dispatches. - With #20: the log explicitly records DXC fallback for the clamp and the depth-plane pixel shader's missing root signature. Zero `no argument clamp`/`not bounded (no clamp...)` messages, zero `DXC failed too`; one sample reports 2,147 indirect commands bounded per frame. The opening story card renders, but no normal world visual established. Ended after 103.1 s with Xid 13 and a fence timeout in a different submission (20 command notes, including draws and indirect compute). This does not identify the exact faulting command or establish that the earlier fault is fixed. - All 946 captured SPIR-V modules from the #20 run validate for Vulkan 1.3 with scalar-block-layout. - Build, all-target/all-feature Clippy and native asset policy pass. GPU suite with Wine's builtin compiler and explicit DXC: 118 passed, 2 pipeline-library failures, 1 ignored. Both failures also occur in the control; fallback, clamp and depth-plane tests pass. - Full diagnostics workspace suite: 501 passed, 6 failed, 7 ignored across 14 executables. The six are the two library tests above, Wine tool-launch failures for nested git/cargo, a missing Wine WSAConnectByList export, and vkd3d accepting the intentionally bad container digest. No numerical shader test failed. Console-compiler differential checks still cannot run here. AI-assisted testing and analysis. Aggregate results only; no game files, derived shader files or images attached.
Author
Owner

@⁠rostaddotcc on GitHub · 2026-11-24 20:49 UTC · original · edited 2026-11-24 21:28 UTC

⚠️ Partly wrong — the conclusion below that the DXC fallback is inert on Proton does not hold. The run used a prefix that already had Microsoft's d3dcompiler_47 installed (winetricks), so Wine's builtin compiler was never exercised. Measured matrix and the correction: #6


Correction: the run does not reach the world — saved frames 512–2048 are the splash and the loading art, so ten minutes gets boot, menus, splash and loading, and the 2 800 draws/frame are the loading screen streaming. Everything else below (build, no device removal, fallback not taken, frame cost) stands; read "world frames" as "loading frames". The memory paths themselves are not the problem: a 128 MiB probe in the same prefix does 21 GB/s of mapped upload writes and 143–163 GB/s of card copies (details in #6).


An in-game run of this branch under Proton, on AMD, as @⁠leonardo-silva-pinheiro asked for in #6. Short version: it builds and runs cleanly, but on this setup the fallback is never taken, so it does not settle the case either way.

Setup: RX 7900 XT (RDNA 3, native 64-lane waves), Mesa 26.3.1 RADV, Vulkan 1.4, CachyOS 7.3.5, KDE Plasma 6 on Wayland; Proton Experimental wine (experimental-11.0-20261112) run directly with its vkd3d-proton and DXVK dxgi; Series X files; title 1.0.2.1.

Build and run: cross-compiled on Linux with cargo xwin build --release -p victory --target x86_64-pc-windows-msvc at 73a0c56, DXC 1.9.2609 (dxcompiler.dll, dxil.dll) beside the exe with VICTORY_DXC set. WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n", VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=256. 660 s run, reached the world, no device removal, no exception, no Xid.

The fallback was not used. Proton's d3dcompiler_47 accepted every runtime compile in a ten-minute run: zero no argument clamp messages, and the card compare built (10 copies of 492 MB, 23–53 MB per frame sent up). So nothing here distinguishes this branch from 1684989: the world submitted 2 783 draws per frame average (4 781 peak) and looked the same as unmodified 1684989 (2 990 average, 7 967 peak). The E5005 failures in #6 do not reproduce on 1684989 with this Proton's d3dcompiler_47 — either the shader changed between 578d459 and now, or the compiler version matters. Worth pinning down before choosing between #20 and #21; if the failure no longer happens on current main, neither is needed for Proton Experimental, and the question becomes older Wine and vkd3d-proton.

Frame cost, for the record (world frames only, more than 800 draws/frame, averaged over ~600 s):

1684989 this branch
frame 7 892 ms 5 173 ms
preparing 6 417 ms 4 261 ms
— copies 2 793 ms / 172 MB 1 969 ms / 197 MB
— textures 2 787 ms / 38 MB 1 581 ms / 65 MB
on the GPU 134 ms 163 ms
copying back 1 091 ms / 38 MB 637 ms / 65 MB

The frame is not GPU bound; host-side copies run at 60–100 MB/s and texture uploads at 13–41 MB/s here, against roughly 1 GB/s in #10's Windows numbers. The presented frame stayed black at 2 800–4 800 draws per frame in both runs. None of this is a judgement on the branch — it is the environment.

Two notes that cost real time and are not in the README: Wine's builtin d3d12 must be overridden off (otherwise device creation returns E_INVALIDARG and every frame submits 0 draws), and HDR must be off on the output the window lands on (with HDR on, presentation blocks ~400 ms per frame and the 30 s watchdog ends the run with int3 at a frame-64 boundary, which reads exactly like a title crash). I opened #41 with a doc that records both.

No images, no game data; numbers only.

**@⁠rostaddotcc** on GitHub · 2026-11-24 20:49 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7144103466) · edited 2026-11-24 21:28 UTC **⚠️ Partly wrong — the conclusion below that the DXC fallback is inert on Proton does not hold.** The run used a prefix that already had Microsoft's `d3dcompiler_47` installed (winetricks), so Wine's builtin compiler was never exercised. Measured matrix and the correction: https://git.gtahub.st/github/fxceless--victory-fork/issues/6 --- **Correction:** the run does not reach the world — saved frames 512–2048 are the splash and the loading art, so ten minutes gets boot, menus, splash and loading, and the 2 800 draws/frame are the loading screen streaming. Everything else below (build, no device removal, fallback not taken, frame cost) stands; read "world frames" as "loading frames". The memory paths themselves are not the problem: a 128 MiB probe in the same prefix does 21 GB/s of mapped upload writes and 143–163 GB/s of card copies (details in #6). --- An in-game run of this branch under Proton, on AMD, as @⁠leonardo-silva-pinheiro asked for in #6. Short version: it builds and runs cleanly, but on this setup the fallback is never taken, so it does not settle the case either way. **Setup:** RX 7900 XT (RDNA 3, native 64-lane waves), Mesa 26.3.1 RADV, Vulkan 1.4, CachyOS 7.3.5, KDE Plasma 6 on Wayland; Proton Experimental `wine` (experimental-11.0-20261112) run directly with its vkd3d-proton and DXVK `dxgi`; Series X files; title 1.0.2.1. **Build and run:** cross-compiled on Linux with `cargo xwin build --release -p victory --target x86_64-pc-windows-msvc` at `73a0c56`, DXC 1.9.2609 (`dxcompiler.dll`, `dxil.dll`) beside the exe with `VICTORY_DXC` set. `WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=256`. 660 s run, reached the world, no device removal, no exception, no Xid. **The fallback was not used.** Proton's `d3dcompiler_47` accepted every runtime compile in a ten-minute run: zero `no argument clamp` messages, and the card compare built (10 copies of 492 MB, 23–53 MB per frame sent up). So nothing here distinguishes this branch from `1684989`: the world submitted 2 783 draws per frame average (4 781 peak) and looked the same as unmodified `1684989` (2 990 average, 7 967 peak). The `E5005` failures in #6 do not reproduce on `1684989` with this Proton's `d3dcompiler_47` — either the shader changed between `578d459` and now, or the compiler version matters. Worth pinning down before choosing between #20 and #21; if the failure no longer happens on current `main`, neither is needed for Proton Experimental, and the question becomes older Wine and vkd3d-proton. **Frame cost, for the record** (world frames only, more than 800 draws/frame, averaged over ~600 s): | | `1684989` | this branch | |---|---:|---:| | frame | 7 892 ms | 5 173 ms | | preparing | 6 417 ms | 4 261 ms | | — copies | 2 793 ms / 172 MB | 1 969 ms / 197 MB | | — textures | 2 787 ms / 38 MB | 1 581 ms / 65 MB | | on the GPU | 134 ms | 163 ms | | copying back | 1 091 ms / 38 MB | 637 ms / 65 MB | The frame is not GPU bound; host-side copies run at 60–100 MB/s and texture uploads at 13–41 MB/s here, against roughly 1 GB/s in #10's Windows numbers. The presented frame stayed black at 2 800–4 800 draws per frame in both runs. None of this is a judgement on the branch — it is the environment. Two notes that cost real time and are not in the README: Wine's builtin `d3d12` must be overridden off (otherwise device creation returns `E_INVALIDARG` and every frame submits 0 draws), and HDR must be off on the output the window lands on (with HDR on, presentation blocks ~400 ms per frame and the 30 s watchdog ends the run with `int3` at a frame-64 boundary, which reads exactly like a title crash). I opened #41 with a doc that records both. No images, no game data; numbers only.
Author
Owner

@⁠marquezinii on GitHub · 2026-11-24 21:50 UTC · original

Re-ran the current head 14a1f07 on the RTX 5070 (driver 621.40, Windows 11), with dxcompiler.dll/dxil.dll from SDK 10.0.26100:

  • cargo test --workspace: 487 passed, 0 failed, 7 ignored. Both clippy runs (default and --all-features) are clean, and a_root_signature_belongs_to_the_entry_it_sits_on passes.
  • cargo test -p victory-gpu --lib as is: 113 passed. With a local print in compile(), lit now reports no root signature asked and keeps D3DCompile's bytes; main (12), plane (2) and corner ask for one and get it from D3DCompile, so nothing goes to DXC on Windows.
  • Every compile forced through dxc() (local patch, as before): 113 passed, 19 DXC compiles.
  • Forced, with VICTORY_DXC pointing at a folder holding only dxcompiler.dll: 113 passed.

77708e1, pushed since, only changes the README, so this holds for the current head too.

**@⁠marquezinii** on GitHub · 2026-11-24 21:50 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7145455629) Re-ran the current head `14a1f07` on the RTX 5070 (driver 621.40, Windows 11), with `dxcompiler.dll`/`dxil.dll` from SDK 10.0.26100: - `cargo test --workspace`: 487 passed, 0 failed, 7 ignored. Both clippy runs (default and `--all-features`) are clean, and `a_root_signature_belongs_to_the_entry_it_sits_on` passes. - `cargo test -p victory-gpu --lib` as is: 113 passed. With a local print in `compile()`, `lit` now reports no root signature asked and keeps `D3DCompile`'s bytes; `main` (12), `plane` (2) and `corner` ask for one and get it from `D3DCompile`, so nothing goes to DXC on Windows. - Every compile forced through `dxc()` (local patch, as before): 113 passed, 19 DXC compiles. - Forced, with `VICTORY_DXC` pointing at a folder holding only `dxcompiler.dll`: 113 passed. `77708e1`, pushed since, only changes the README, so this holds for the current head too.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 23:50 UTC · original

Retested the edited correction, forcing the builtin compiler so the result cannot be the native-fxc one:

  • Prefix's system32/d3dcompiler_47.dll is 370,547 bytes (Wine's builtin), not Microsoft's 4.3 MB fxc.
  • WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n;d3dcompiler_47=b" with VICTORY_DXC unset: indirect::tests::argument_clamp_builds fails at assert!(super::clamp().is_some()). The failure proves the host device existed; this is not the vacuous host().is_none() path.
  • Same invocation with VICTORY_DXC pointing at dxcompiler.dll/dxil.dll: passes in 0.70 s.

So the corrected account holds: the builtin compiler is the failure, and this PR's DXC fallback is what makes the clamp build under it. The earlier “inert on Proton” result was the native d3dcompiler_47 prefix.

**@⁠ErRusso** on GitHub · 2026-11-24 23:50 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7147862943) Retested the edited correction, forcing the builtin compiler so the result cannot be the native-fxc one: - Prefix's `system32/d3dcompiler_47.dll` is 370,547 bytes (Wine's builtin), not Microsoft's 4.3 MB `fxc`. - `WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n;d3dcompiler_47=b"` with `VICTORY_DXC` unset: `indirect::tests::argument_clamp_builds` **fails** at `assert!(super::clamp().is_some())`. The failure proves the host device existed; this is not the vacuous `host().is_none()` path. - Same invocation with `VICTORY_DXC` pointing at `dxcompiler.dll`/`dxil.dll`: **passes in 0.70 s**. So the corrected account holds: the builtin compiler is the failure, and this PR's DXC fallback is what makes the clamp build under it. The earlier “inert on Proton” result was the native `d3dcompiler_47` prefix.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 03:48 UTC · original

When rebasing this onto 310c6eb, four test-only callers need updating. This is separate from the successful forced-builtin/DXC check; it does not invalidate that result or indicate a failure on the original PR head.

I applied the seven-file crates delta from ddff6a6^1..ddff6a6 (PR head 16b6305) to clean 310c6eb. It applied without conflicts, but cargo test --locked --target x86_64-pc-windows-gnullvm -p victory-gpu --lib --features diagnostics --no-run failed with four E0308 errors: host::compile now takes &str for entry and target; the new Rig::new calls still pass PCSTR via s!.

Verified fix on the combined tree: use ordinary string literals for both arguments at corner, first, second and work (e.g. compile(WORK, "work", "cs_5_1")), and remove the now-unused s import in that test module. The same command then linked the x86-64 Windows test executable. This was a cross-build on Linux with Rust 1.97.1, not a GPU test run or a gameplay result.

AI disclosure: Hermes Agent performed the local build comparison and wrote this follow-up on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 03:48 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7152260998) When rebasing this onto `310c6eb`, four **test-only callers** need updating. This is separate from [the successful forced-builtin/DXC check](https://git.gtahub.st/github/fxceless--victory-fork/pulls/20); it does not invalidate that result or indicate a failure on the original PR head. I applied the seven-file `crates` delta from `ddff6a6^1..ddff6a6` (PR head `16b6305`) to clean `310c6eb`. It applied without conflicts, but `cargo test --locked --target x86_64-pc-windows-gnullvm -p victory-gpu --lib --features diagnostics --no-run` failed with four `E0308` errors: `host::compile` now takes `&str` for entry and target; [the new `Rig::new` calls](https://github.com/fxceless/victory-fork/blob/310c6eb6c16822ab95076aad61fce19bba86bb98/crates/victory-gpu/src/indirect.rs#L1459-L1464) still pass `PCSTR` via `s!`. Verified fix on the combined tree: use ordinary string literals for both arguments at `corner`, `first`, `second` and `work` (e.g. `compile(WORK, "work", "cs_5_1")`), and remove the now-unused `s` import **in that test module**. The same command then linked the x86-64 Windows test executable. This was a cross-build on Linux with Rust 1.97.1, not a GPU test run or a gameplay result. AI disclosure: Hermes Agent performed the local build comparison and wrote this follow-up on ArturoWolff’s behalf.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-25 11:15 UTC · original

Rebased onto current main (8d14fb3) and fixed the test-only callers that @⁠ArturoWolff reported on the combined tree. host::compile takes &str for entry and target, so:

  • indirect.rs Rig::new: compile(DRAW, "corner", "vs_5_1") and the three others; s import removed from that module.
  • host.rs queue tests: compile(ADD, "main", "cs_5_1") / compile(TWICE, ...).
  • tiles.rs: compile(LOOK, "look", "cs_5_1"); unused s import removed.
  • indirect/bench.rs: its local D3DCompile wrapper now calls crate::host::compile(SHADERS, entry, target), so the benchmark exercises the same fallback as production.

Verified:

  • cargo xwin check --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory-hle passes.
  • cargo xwin test --no-run --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib --features diagnostics links.
  • Under Wine 11.22, the full victory-gpu lib test binary: 174 passed, 4 failed, 5 ignored. Three failures are profile::tests (unrelated to this change); the fourth is dxc::tests::a_shader_the_system_compiler_refuses_is_compiled_by_dxc, which fails with 0x8007007E because this host has no dxcompiler.dll. The two other dxc::tests pass.

The README claims match @⁠rostaddotcc's corrected matrix in #6: Wine 11.22 and Proton Experimental's builtin reject the source, and there is no vkd3d release to pin, so the fallback (or a native d3dcompiler_47) is the path.

**@⁠ErRusso** on GitHub · 2026-11-25 11:15 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7160804812) Rebased onto current `main` (`8d14fb3`) and fixed the test-only callers that @⁠ArturoWolff reported on the combined tree. `host::compile` takes `&str` for entry and target, so: - `indirect.rs` `Rig::new`: `compile(DRAW, "corner", "vs_5_1")` and the three others; `s` import removed from that module. - `host.rs` queue tests: `compile(ADD, "main", "cs_5_1")` / `compile(TWICE, ...)`. - `tiles.rs`: `compile(LOOK, "look", "cs_5_1")`; unused `s` import removed. - `indirect/bench.rs`: its local `D3DCompile` wrapper now calls `crate::host::compile(SHADERS, entry, target)`, so the benchmark exercises the same fallback as production. Verified: - `cargo xwin check --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory-hle` passes. - `cargo xwin test --no-run --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib --features diagnostics` links. - Under Wine 11.22, the full `victory-gpu` lib test binary: 174 passed, 4 failed, 5 ignored. Three failures are `profile::tests` (unrelated to this change); the fourth is `dxc::tests::a_shader_the_system_compiler_refuses_is_compiled_by_dxc`, which fails with `0x8007007E` because this host has no `dxcompiler.dll`. The two other `dxc::tests` pass. The README claims match @⁠rostaddotcc's corrected matrix in #6: Wine 11.22 and Proton Experimental's builtin reject the source, and there is no vkd3d release to pin, so the fallback (or a native `d3dcompiler_47`) is the path.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 11:46 UTC · original · edited 2026-11-25 11:48 UTC

@⁠ErRusso, I reproduced the missing-module result with our existing GNU/LLVM Windows test binary. The checkout now points to 8d14fb3; this comparison used the retained build, not a fresh build of that SHA. This time I ran the same x86_64-pc-windows-gnullvm binary twice under GE-Proton 11-14, selecting dxc::tests:: --test-threads=1 --nocapture in separate copies of the same prefix.

Files beside the executable Result
Neither DXC DLL 2 passed, 1 failed. The system compiler refused the shader (0x80004005), then the fallback returned 0x8007007E (module not found), matching your Wine 11.22 result.
dxcompiler.dll and dxil.dll 3 passed. Same system-compiler refusal; DXC returned a 2,840-byte DXBC container and the embedded root-signature assertion passed.

This isolates the reported failure to the missing compiler setup in this fixture; it does not establish that both DLLs are individually necessary. No D3D12 device was exposed, so the test did not reach root-signature or compute-pipeline creation. The other 180 tests were filtered out; no game was launched.

AI disclosure: Hermes Agent ran the local comparison and wrote this follow-up on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 11:46 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7161473474) · edited 2026-11-25 11:48 UTC @⁠ErRusso, I reproduced the missing-module result with our existing GNU/LLVM Windows test binary. The checkout now points to `8d14fb3`; this comparison used the retained build, not a fresh build of that SHA. This time I ran the same `x86_64-pc-windows-gnullvm` binary twice under GE-Proton 11-14, selecting `dxc::tests:: --test-threads=1 --nocapture` in separate copies of the same prefix. | Files beside the executable | Result | |---|---| | Neither DXC DLL | 2 passed, 1 failed. The system compiler refused the shader (`0x80004005`), then the fallback returned `0x8007007E` (module not found), matching your Wine 11.22 result. | | `dxcompiler.dll` and `dxil.dll` | 3 passed. Same system-compiler refusal; DXC returned a 2,840-byte `DXBC` container and the embedded root-signature assertion passed. | This isolates the reported failure to the missing compiler setup in this fixture; it does not establish that both DLLs are individually necessary. No D3D12 device was exposed, so the test did not reach root-signature or compute-pipeline creation. The other 180 tests were filtered out; no game was launched. AI disclosure: Hermes Agent ran the local comparison and wrote this follow-up on ArturoWolff’s behalf.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-25 11:51 UTC · original

Confirmed, and thanks for the two-row run: the missing module is the whole of that failure. dxc() returns 0x8007007E from LoadLibraryExW before DXC is entered, so nothing else in the fallback is exercised.

One note on the container: DXBC is what DXC writes too — the DXIL bitstream sits inside a DXBC container as its DXIL chunk, so a 2,840-byte DXBC with RTS0 is the fallback's normal output, not the system compiler's. Here DXC 1.9 gives 2,816 bytes, same shape, and the test has always accepted either magic for that reason.

d4a36b1 stops the test failing for a missing fixture: when the system compiler refuses the source and no dxcompiler.dll can be loaded, it prints no dxcompiler.dll here: the fallback is not checked (set VICTORY_DXC) and returns, the way it already returns without a D3D12 device. A DXC that is present but fails still fails the test. Verified under Wine 11.22 with the builtin compiler forced (WINEDLLOVERRIDES=d3dcompiler_47=b): 3 dxc::tests pass, the fallback one printing the skip. With VICTORY_DXC naming DXC 1.9 beside its dxil.dll: 3 pass, the container and root signature are checked, and D3D12 takes the signature and makes the compute pipeline.

**@⁠ErRusso** on GitHub · 2026-11-25 11:51 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7161583920) Confirmed, and thanks for the two-row run: the missing module is the whole of that failure. `dxc()` returns `0x8007007E` from `LoadLibraryExW` before DXC is entered, so nothing else in the fallback is exercised. One note on the container: `DXBC` is what DXC writes too — the DXIL bitstream sits inside a `DXBC` container as its `DXIL` chunk, so a 2,840-byte `DXBC` with `RTS0` is the fallback's normal output, not the system compiler's. Here DXC 1.9 gives 2,816 bytes, same shape, and the test has always accepted either magic for that reason. `d4a36b1` stops the test failing for a missing fixture: when the system compiler refuses the source and no `dxcompiler.dll` can be loaded, it prints `no dxcompiler.dll here: the fallback is not checked (set VICTORY_DXC)` and returns, the way it already returns without a D3D12 device. A DXC that is present but fails still fails the test. Verified under Wine 11.22 with the builtin compiler forced (`WINEDLLOVERRIDES=d3dcompiler_47=b`): 3 `dxc::tests` pass, the fallback one printing the skip. With `VICTORY_DXC` naming DXC 1.9 beside its `dxil.dll`: 3 pass, the container and root signature are checked, and D3D12 takes the signature and makes the compute pipeline.
Author
Owner

@⁠Ortomanic on GitHub · 2026-11-25 15:28 UTC · original

Test report: the fallback takes a Linux/Wine run into the world on an RTX 5080 with no Microsoft d3dcompiler_47.dll.

Setup: CachyOS, Wine 11.22 (builtin d3dcompiler_47), vkd3d-proton 3.1.r64 (f2963ee2), NVIDIA 620.73.04, RTX 5080, --console series-s. Tree: 0b0074e plus our Linux patches (#257, #258, #259, a second-plane composition) with this PR's head d4a36b1 merged in; the merge was clean. DXC 1.9.2609.5 (dxcompiler.dll and dxil.dll) sits in the prefix's system32; VICTORY_DXC was not set.

Result, one run to the prologue cell (14 five-second world lines, then stopped by the harness):

  • The log shows the fallback taken three times and no failure after it:
    • E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer' → trying DXC (main, cs_5_1)
    • E5005: Method 'Load4' is not defined on type 'RWByteAddressBuffer' → trying DXC (main, cs_5_1)
    • the system compiler left the root signature out of one of our shaders: trying DXC (plane, ps_5_1)
  • No no argument clamp, no could not be made, no no pipeline to draw a depth plane from its twin.
  • Indirect executions dropped per frame over the 39 frame lines: 0 in 24, 1 in 12, 2 or 3 in the other 3. The same tree with Microsoft's compiler forced instead (WINEDLLOVERRIDES=d3dcompiler_47=n, no DXC fallback) gives the same picture: 0 in 20 lines, 1 in 10, 3 in 2.
  • For scale: on 4e17478 with neither, the clamp failed to compile and about 4,700 indirect executions were dropped in every world frame.
  • 3,200 to 4,600 draws a frame, no device loss, no NVIDIA Xid.

Not measured: frame time (a shader-corpus job was using the processor during this run), the in-place probe's result, and anything past the first room. One run only.

With this PR a Wine setup no longer needs Microsoft's DLL in the prefix, only DXC.

AI-assisted (Claude Code); built and run locally.

**@⁠Ortomanic** on GitHub · 2026-11-25 15:28 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7166893693) Test report: the fallback takes a Linux/Wine run into the world on an RTX 5080 with no Microsoft `d3dcompiler_47.dll`. **Setup:** CachyOS, Wine 11.22 (builtin `d3dcompiler_47`), vkd3d-proton 3.1.r64 (`f2963ee2`), NVIDIA 620.73.04, RTX 5080, `--console series-s`. Tree: `0b0074e` plus our Linux patches (#257, #258, #259, a second-plane composition) with this PR's head `d4a36b1` merged in; the merge was clean. DXC 1.9.2609.5 (`dxcompiler.dll` and `dxil.dll`) sits in the prefix's `system32`; `VICTORY_DXC` was not set. **Result, one run to the prologue cell (14 five-second world lines, then stopped by the harness):** - The log shows the fallback taken three times and no failure after it: - `E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'` → `trying DXC` (`main`, `cs_5_1`) - `E5005: Method 'Load4' is not defined on type 'RWByteAddressBuffer'` → `trying DXC` (`main`, `cs_5_1`) - `the system compiler left the root signature out of one of our shaders: trying DXC` (`plane`, `ps_5_1`) - No `no argument clamp`, no `could not be made`, no `no pipeline to draw a depth plane from its twin`. - Indirect executions dropped per frame over the 39 frame lines: 0 in 24, 1 in 12, 2 or 3 in the other 3. The same tree with Microsoft's compiler forced instead (`WINEDLLOVERRIDES=d3dcompiler_47=n`, no DXC fallback) gives the same picture: 0 in 20 lines, 1 in 10, 3 in 2. - For scale: on `4e17478` with neither, the clamp failed to compile and about 4,700 indirect executions were dropped in every world frame. - 3,200 to 4,600 draws a frame, no device loss, no NVIDIA Xid. **Not measured:** frame time (a shader-corpus job was using the processor during this run), the in-place probe's result, and anything past the first room. One run only. With this PR a Wine setup no longer needs Microsoft's DLL in the prefix, only DXC. AI-assisted (Claude Code); built and run locally.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 18:53 UTC · original

Follow-up on the current #20 head: our newer file-backed loading run reproduced the missing production clamp under GE-Proton11-14. On c5820ac + Filip722's #830 patch 951dc00, the retained log has no argument clamp: indirect execution dropped error=Call failed. (0x80004005) and 41 not bounded report lines. Separate file-backed loading report. That run showed black frames, not verified gameplay; this does not prove the clamp is the only reason.

Integration: applied the exact #20 delta at d4a36b1d87007dc85a75a6d851ce5106c4e22c67 onto that same c5820ac + 951dc00 tree. Only the manifest hunk required adapting: the receiving tree already has extra windows-sys diagnostics features, so I retained those and added Win32_Graphics_Direct3D_Dxc to the existing windows features. The other #20 hunks applied unchanged. Both the diagnostics release application and victory-gpu --lib test executable cross-built on Linux (Rust 1.98.1, x86_64-pc-windows-gnullvm, offline, locked).

Strict production clamp construction test: added a test-only witness in indirect.rs that requires an actual FL11_0 D3D12 device and calls the production make_for with its unchanged SOURCE. This is intentionally stricter than argument_clamp_builds, which can return without a host device. Same test executable in separate copies of the same prefix; d3dcompiler_47=b, GE-Proton11-14 / vkd3d-proton, llvmpipe 26.3.1 (LLVM 23.1.5), only the software Vulkan ICD, no physical GPU or title files exposed.

Compiler setup Device Production argument clamp
Builtin compiler; no DXC DLLs FL11_0 created Fails, HRESULT 0x8007007E (module not found), exit 101
Builtin compiler; DXC + validator DLLs available FL11_0 created Root signature and compute PSO created, 1 passed, 0 failed

With DXC present, dxc::tests:: also reported 3 passed, 0 failed. The fallback fixture printed the original system compiler refusing the source (0x80004005), a 2,840-byte container, and D3D12 took the root signature and made the pipeline. No vacuous device skip in either strict arm. This checks construction, not execution/readback of indirect records or frame time.

The application build was made before adding the test-only witness; no changes to the production clamp or DXC code beyond the PR. I haven't run the combined executable against the retail title on the physical 4060 yet, because the separately documented GE-Proton/NVIDIA driver hang is not protected by the host-memory guard. No assertion about GPU stability, visible world, or AMD/native Windows behavior.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol).

**@⁠ArturoWolff** on GitHub · 2026-11-25 18:53 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7171551883) Follow-up on the current #20 head: our newer file-backed loading run reproduced the missing production clamp under GE-Proton11-14. On `c5820ac` + Filip722's #830 patch `951dc00`, the retained log has `no argument clamp: indirect execution dropped error=Call failed. (0x80004005)` and 41 `not bounded` report lines. [Separate file-backed loading report](https://git.gtahub.st/github/fxceless--victory-fork/pulls/830). That run showed black frames, not verified gameplay; this does not prove the clamp is the only reason. **Integration:** applied the exact #20 delta at `d4a36b1d87007dc85a75a6d851ce5106c4e22c67` onto that same `c5820ac` + `951dc00` tree. Only the manifest hunk required adapting: the receiving tree already has extra `windows-sys` diagnostics features, so I retained those and added `Win32_Graphics_Direct3D_Dxc` to the existing `windows` features. The other #20 hunks applied unchanged. Both the diagnostics release application and `victory-gpu --lib` test executable cross-built on Linux (Rust 1.98.1, `x86_64-pc-windows-gnullvm`, offline, locked). **Strict production clamp construction test:** added a test-only witness in `indirect.rs` that requires an actual FL11_0 D3D12 device and calls the production `make_for` with its unchanged `SOURCE`. This is intentionally stricter than `argument_clamp_builds`, which can return without a host device. Same test executable in separate copies of the same prefix; `d3dcompiler_47=b`, GE-Proton11-14 / vkd3d-proton, llvmpipe 26.3.1 (LLVM 23.1.5), only the software Vulkan ICD, no physical GPU or title files exposed. | Compiler setup | Device | Production argument clamp | |---|---|---| | Builtin compiler; no DXC DLLs | FL11_0 created | Fails, HRESULT `0x8007007E` (module not found), exit 101 | | Builtin compiler; DXC + validator DLLs available | FL11_0 created | Root signature and compute PSO created, 1 passed, 0 failed | With DXC present, `dxc::tests::` also reported **3 passed, 0 failed**. The fallback fixture printed the original system compiler refusing the source (`0x80004005`), a 2,840-byte container, and `D3D12 took the root signature and made the pipeline`. No vacuous device skip in either strict arm. This checks construction, not execution/readback of indirect records or frame time. The application build was made before adding the test-only witness; no changes to the production clamp or DXC code beyond the PR. I haven't run the combined executable against the retail title on the physical 4060 yet, because the separately documented GE-Proton/NVIDIA driver hang is not protected by the host-memory guard. No assertion about GPU stability, visible world, or AMD/native Windows behavior. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol).
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 22:06 UTC · original

I reproduced a remaining direct D3DCompile call on main 9c184b3 with #20 at d4a36b1. Host::make_card_inflight returned E_FAIL and fell back to the older fetch path with VICTORY_CARD_FETCH_INFLIGHT=1.

I used the same synthetic D3D12 constructor test and a 1 MiB fetch pool for both builds on Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08, GE-Proton11-14 and vkd3d-proton cae8353ed7959c4+. The direct call failed 1/1. Routing CARD_FETCH through compile(CARD_FETCH, "main", "cs_5_1") and passing the returned bytes to root signature and compute pipeline creation passed 1/1 on the physical RTX. The test exercised pipeline and buffer creation. The ordinary fetch fallback stays in place on error.

Test and report prepared with assistance from OpenAI Codex.

**@⁠Filip722** on GitHub · 2026-11-25 22:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7175952086) I reproduced a remaining direct D3DCompile call on main `9c184b3` with #20 at `d4a36b1`. `Host::make_card_inflight` returned `E_FAIL` and fell back to the older fetch path with `VICTORY_CARD_FETCH_INFLIGHT=1`. I used the same synthetic D3D12 constructor test and a 1 MiB fetch pool for both builds on Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08, GE-Proton11-14 and vkd3d-proton `cae8353ed7959c4+`. The direct call failed 1/1. Routing `CARD_FETCH` through `compile(CARD_FETCH, "main", "cs_5_1")` and passing the returned bytes to root signature and compute pipeline creation passed 1/1 on the physical RTX. The test exercised pipeline and buffer creation. The ordinary fetch fallback stays in place on error. Test and report prepared with assistance from OpenAI Codex.
Author
Owner

@⁠Filip722 on GitHub · 2026-11-26 16:48 UTC · original

Independent verification on an RTX 5060 Laptop GPU (8 GB, driver 615.78.08) with GE-Proton11-14 and vkd3d-proton 3.2.0. On main e4245f3, the in-flight fetch pipeline fixture failed with both its original D3DCompile call and the shared system-compiler wrapper used in #648. I carried this PR's dxc.rs at d4a36b1 forward locally and routed the current clamp, wide card compare and in-flight fetch through it.

With that integration the physical device created all three pipelines. The three DXC tests passed and the synthetic shader that the system compiler refused with 0x80004005 produced an embedded root signature and a working D3D12 compute pipeline through DXC. The fixture used synthetic data with the title files outside the test environment.

Assisted by Codex (GPT-6.2-Sol High).

**@⁠Filip722** on GitHub · 2026-11-26 16:48 UTC · [original](https://github.com/fxceless/victory-fork/pull/20#issuecomment-7198113600) Independent verification on an RTX 5060 Laptop GPU (8 GB, driver 615.78.08) with GE-Proton11-14 and vkd3d-proton 3.2.0. On main e4245f3, the in-flight fetch pipeline fixture failed with both its original D3DCompile call and the shared system-compiler wrapper used in #648. I carried this PR's dxc.rs at d4a36b1 forward locally and routed the current clamp, wide card compare and in-flight fetch through it. With that integration the physical device created all three pipelines. The three DXC tests passed and the synthetic shader that the system compiler refused with 0x80004005 produced an embedded root signature and a working D3D12 compute pipeline through DXC. The fixture used synthetic data with the title files outside the test environment. Assisted by Codex (GPT-6.2-Sol High).
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
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.
git fetch -u origin '+refs/pull/20/head:github-bot/gh-20'
git switch 'github-bot/gh-20'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-20'
git switch 'github-bot/gh-20'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-20'
git switch 'github-bot/gh-20'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-20'
git switch 'main'
git merge --squash 'github-bot/gh-20'
git switch 'main'
git merge --ff-only 'github-bot/gh-20'
git switch 'main'
git merge 'github-bot/gh-20'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.