GPU: restore indirect and card-copy shaders under Proton #1489
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1489"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T16:42:43Z.
With Wine's built-in D3DCompile, the NVIDIA-based renderer can fail to create the indirect argument clamp and the card-copy comparison pipeline. The title then drops indirect work and the renderer falls back to host-backed copies.
This ports ErRusso's runtime compiler helper from #20 and uses it for the two indirect clamps' shared constructor and the card comparison pipeline. The existing system compiler is tried first. The fallback uses an installed DXC, including the explicit
VICTORY_DXCsetting. The HLSL, barriers and bounds remain the same. The card comparison shader, constructor, and physical fixture move into their own module.On Bazzite 44 and GE-Proton11-14, the original clamp and card pipeline failed their physical RTX 5060 Laptop fixtures. Both passed with the fallback. The standalone PR head on
3e573d2passed those two physical checks, all three DXC tests, seven scheduler regressions, and the full 281-file asset-policy check. Windows MSVC release diagnostics with Rust 1.98.1, driver 615.78.08 and vkd3d-proton 3.2.0.In a separate offline Series S integration with #1486, the clamp fix reached a rendered 3D scene and the on-water objective. Adding the card comparison fallback lowered the reported copy-back phase from 71.9 to 25.1 ms in a short comparable gameplay crop. Throughput in those samples was 2.75 and 3.05 rendered FPS, respectively. The later mission failure still reproduced. These were single runs at the same checkpoint.
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T16:49:38Z.
The Windows CI run stops at the texture-test precedence lint already present on the base commit
3e573d2. Main's CI reports the same failure. #1485 covers that line. The focused Windows MSVC tests and the two physical RTX shader checks in the PR description passed.Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-27T17:08:39Z.
I reproduced both failures on the Wine branch at
907a771ewith Wine 11.22’s built-ind3dcompiler_47, an RX 7900 XT, RADV 26.3.1 and vkd3d-proton71cae091b06571e. Both the argument clamp and the card compare passed under the same setup when I selected Microsoft’s compiler.I ported these two calls to the fallback on the Wine branch. Both host pipelines now build with Wine’s DLL and DXC 1.9.2609, and the Microsoft DLL path still passes without loading DXC. I used the existing DXBC parser for the
RTS0check, with a fixture that puts those bytes inside a different chunk so the fallback doesn’t treat them as a root signature. Wine port and resultsImported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T18:30:33Z.
Retested these changes on current main
f299fbatogether with #1486. The RTX 5060 Laptop under GE-Proton11-14 and vkd3d-proton 3.2.0 passed the compositor, indirect-clamp, and card-compare hardware fixtures, the three compiler and seven scheduler tests, and all 15 Wave64 cases. Full asset policy passed.The offline Series S replay rendered the boat objective and, after a retry, showed clear water with visible steering, acceleration, and camera response. The matched early view still measured about 3.05 rendered FPS. A later driving sample averaged 3.10 FPS and the traces repeatedly showed the same 500 ms pipeline wait with seven pipelines outstanding. This was a combined integration check against the newer renderer.
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by OctoAlgo on 2026-11-27T18:48:14Z.
Tested
b344f5b74under Proton 11 on an RTX 5090 (driver 620.73.04, Series X profile), on mainf299fba1aplus #1006, which this card needs.E5005 ... 'Load4'for the card compare,E5005 ... 'InterlockedOr'for the clamp, each followed bytrying DXC). No clamp or compare warnings afterwards.Not tested: Windows, AMD, Series S, a cold first start. The 2.78 → 3.72 step is not cleanly attributed to the card compare; the two builds also differed in two small things.
(written with AI assistance)
Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-27T21:17:19Z.
Additional retail startup A/B on an RTX 4060 desktop (8 GB VRAM, 16 GB system RAM), Linux, NVIDIA 620.73.04, GE-Proton11-14 / vkd3d-proton 3.2.0 (
cae8353ed7959c4+).I applied your exact #1489 delta (
b344f5b74c974b602914c8b0a498b000158897eaagainst3e573d2) cleanly to2eade68cade9b2f8cd2511cc97328e83f58508c3with the same local adaptation of Filip722's #830 in both arms (backing comparison). Credit also to ErRusso's original #20 compiler helper. Rust 1.98.1, cargo-xwin 0.24.2, locked MSVC release, separate build targets. The candidate had Microsoft's DXC 1.9.2609 x64 DLL and accompanying validator available through the explicitVICTORY_DXCpath; the release ZIP matches the upstream SHA-256.Both launches used independent clones of the same retired profile/prefix, fresh external driver-cache directories, Series X,
--res 1080to1440, 1920×1080 fullscreen client, 30 FPS cap, BVH builder and water light enabled, no deliberately omitted passes, and mixed physical backing (448 MiB pagefile-first allowance). Neither run had a recorded manual or scripted advance. The old prefix already contained the earlier onboarding state.DXC failed toono argument clampno batched argument clampthe compare could not be madea buffer's host copy is in the card's memorylog eventsno host pipeline libraryIn the candidate the two original system-compiler diagnostics were
E5005onRWByteAddressBuffer.Load4andInterlockedOr, each immediately followed bytrying DXC. During loading, the host-copy reports changed from zero copies to one 174 MB copy, and later the per-buffer placement messages appeared extensively. These are log-event counts, not unique buffers or proof of correct GPU readback. The compile/load and runtime-path observations are consistent with the intended improvement; no independent physical fixture was run in this particular comparison.Unfortunately both retail launches showed illustrated loading artwork followed by a black frame with an FPS overlay, then exited. No live 3D scene, representative gameplay FPS, audio correctness or actual controller response was established in either arm. Neither crossed the 512 MiB host-memory guard, and no new OOM kills or recorded kernel GPU faults occurred. The separate missing native pipeline-library warning persists. This is one startup run per arm, not a gameplay performance benchmark or a claim that these changes solve the remaining title failure.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-28T17:54:10Z.
Hardware test & runtime caller audit on
main368967f+ #1489 (b344f5b) on CachyOS Linux (Ryzen 7 9800X3D, RTX 5080 16 GB, driver620.73.04,GE-Proton11-14/vkd3d-proton,x86_64-pc-windows-msvcviacargo-xwin,VICTORY_DXCset):Passing on #1489 as-is:
dxc::tests:::3 passed; 0 failed(0.49s)indirect::tests::argument_clamp_builds:okhost::card_compare::tests::card_copy_compare_builds_on_the_configured_device --ignored:ok(0.46s)Two remaining runtime
D3DCompilesites missed on the368967fbase:crates/victory-gpu/src/host.rs:1470(host::compile): called bycrates/victory-gpu/src/ambient.rs:521(all 7cs_5_1compute passes forVICTORY_AMBIENT/VICTORY_AMBIENT_AIR/VICTORY_AMBIENT_SPECULAR, with embedded[RootSignature(RS)]),host::PlanePassdepth-plane twins (host.rs:1516), andresource.rs:4625. On368967f+ #1489 unmodified,ambient::tests::the_passes_buildpanics on Proton withHRESULT(0x80004005)(ambient.rs:859) because Wine's built-ind3dcompiler_47omitsRTS0, leaving the stand-in ambient/reflection passes broken wheneverVICTORY_BVH_BUILDER=0.crates/victory-gpu/src/inplace.rs:767(Rig::shade): usesRWByteAddressBuffer::Load+[RootSignature(RS)](VICTORY_INPLACE_PROBE) and also still callsD3DCompiledirectly (asdxc.rs's module docs mention).Verified fix: Routing
host::compileandinplace::Rig::shadethroughcrate::dxc::compilemakesambient::tests::the_passes_buildpass (ok,0.55s) on the same RTX 5080 +GE-Proton11-14setup alongsidedxc::tests::(3/3) andcard_copy_compare_builds_on_the_configured_device. Folding those two call sites into #1489 would cover all runtime HLSL passes on Proton.(AI-assisted code audit, hardware test execution, and summary.)
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-28T18:07:09Z.
Thanks @BitWuehler for testing and identifying the remaining callers. I reproduced
ambient::tests::the_passes_buildfailing with0x80004005on an RTX 5060 Laptop (8 GB), Bazzite 44, NVIDIA 615.78.08 and GE-Proton11-14 / vkd3d-proton 3.2.0. A Series S checkpoint replay also reported that the built-in compiler refusedisnan, followed by a failure to build the indirect-light stand-in. The same replay reported a depth-plane twin pipeline creation failure.The branch is now updated through
368967f. Follow-up commit974a2c92reuses the existing compiler fallback for the remaining host shader helper and the in-place probe. Windows MSVC release and asset policy passed. On the physical RTX adapter, all five ambient tests (including creation of all seven pipelines), three compiler tests, the depth-plane fixture, indirect clamp, card comparison and three tiling tests passed. The existing opt-in/debug tiling test remained ignored.Current main CI fails at the texture-test precedence lint that returned with the replacement tree. The follow-up is confined to the host compiler call paths.
In the matching replay, all seven ambient shaders and the depth-plane pixel shader took the DXC fallback. The prior pipeline errors disappeared. The stationary boat sample after a checkpoint retry was 4.98 FPS before and 4.77 FPS after the change, with minimum free VRAM of 1,992 and 1,981 MiB. These were single runs. The patched boat responded to camera and throttle input. Both runs showed initial rendering artifacts and needed a retry before the comparable view.
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-28T19:53:06Z.
The latest commit checks the DXBC part table for
RTS0. I reproduced a false positive with a small compiled pixel shader whose literal had those bytes in its instructions. The regression failed before the change and passed with both Wine's compiler and native FXC.On the RTX 5060 Laptop under GE-Proton11-14, the focused compiler, ambient, clamp, and depth-plane checks passed (11 total). The separate compositor fixture returned the same
0x80004005on both revisions of this branch. Its fix is in #1486.Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-28T20:11:35Z.
I reproduced this on Wine 11.22 with the built-in
d3dcompiler_47. The pixel shader compiled to a 428-byte DXBC container. The raw byte scan foundRTS0, while the parser at5ea2c1c1found no root signature part. The Wine fork already uses the same table check in borntofrag34/VIctory-7900XTX#30.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.