GPU: compile our run-time HLSL with DXC when the system compiler refuses it (Wine/Proton) #20
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20"
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 ErRusso on 2026-11-24T20:06:27Z.
Fixes #6 (part 1).
What
Under Wine and Proton
D3DCompileis Wine'sd3dcompiler_47(vkd3d-shader), and it fails the host's own HLSL in two different ways: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.RWByteAddressBufferin their source). The container carries noRTS0chunk, soCreateRootSignatureover those bytes fails withE_FAILand the twins logno pipeline to draw a depth plane from its twin.crates/victory-gpu/src/dxc.rsnow compiles our HLSL in one place:D3DCompilefirst, as before;dxcompiler.dll) as shader model 6.0,*_5_1mapped 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.dllis looked for inVICTORY_DXC(the DLL or its folder), beside thedxil.dllshader validation already uses (the SDK ships them together), then the executable's folder and System32;dxil.dllcarries a zero digest, which D3D12 refuses: such containers are validated (and signed) in place,VICTORY_DXILnaming the validator if it is somewhere else.Callers routed through it: the clamp in
indirect.rs(make_for, and the tests'compile_cs),host.rscompile()(the depth-plane twins) andmake_card_work(the card compare),inplace.rsshade(). The refusal, the missing root signature and the fallback are logged once per compile, with entry and profile.Adds the
Win32_Graphics_Direct3D_Dxcfeature to thewindowscrate invictory-gpu(no new crates,Cargo.lockunchanged). README: the fallback and theVICTORY_DXC/dxil.dllrequirement under Wine.Testing
Run under Wine 11.22 with GE-Proton11-12's vkd3d-proton (
d3d12.dll/d3d12core.dlloverridden 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.pipeline::library::tests::a_rejected_blob_gives_an_empty_library, which fails identically with these changes stashed: vkd3d-proton does not implementID3D12Device1::CreatePipelineLibrary. Unrelated.resource::tests::a_depth_planes_twin_is_drawn_into_the_planefails before the root-signature part of this PR and passes after it — that test compiles the twins' vertex and pixel shaders throughhost::compile()and draws with them.indirect::tests::argument_clamp_buildsbuilds the clamp through the fallback (the host device exists under Wine; it is not a skip).dxc::tests::a_shader_the_system_compiler_refuses_is_compiled_by_dxc: the log showsthe system compiler refused it: Call failed. (0x80004005), then aDXILcontainer with a nonzero digest and anRTS0chunk, 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
487 passed, 0 failed, 7 ignored;victory-gpu --lib113 passed; clippy clean.litnow asks for no root signature and keepsD3DCompilebytes;main,planeandcornerask for one and keep it, so DXC is not entered on Windows. Forcing every compile through DXC: 113 passed, 19 DXC compiles. WithVICTORY_DXCpointing at a folder holding onlydxcompiler.dll: 113 passed.14a1f07):d3dcompiler_47refused the clamp (E5005: InterlockedMax), the card compare (E5005: Load4) and the in-place probe (E5005: Load), and accepted the twins' pixel shader withoutRTS0. DXC supplied all four. A run reached the prologue (frame 13,124; missionfbk_stry000_FBK_STRY000_INTRO; 32 peds, 3596 buildings), with the clamp, card compare, probe and twins all used.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.VICTORY_INPLACE_PROBEunset): DXC supplied the clamp and the twins' pixel shader;clamp used (bound)anddepth-plane twin usedwere logged at 1,434 draws/frame. The kernel then logged NVRMgpu_vaspace.cassertion 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.cfailure hangs an RTX 4060. The world remains blocked there for a separate reason. The intro-video flicker, theVICTORY_RELAY=2geometry dropout and the three untranslated skin shaders are also separate.AI-assisted: written with the pi coding agent at my request.
Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T20:20:10Z.
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 noRWByteAddressBufferin it — but leaves the[RootSignature(RS)]out of the container (noRTS0chunk), soCreateRootSignatureover its bytes fails withE_FAILand the twins keep loggingno pipeline to draw a depth plane from its twin. That is a second, silent failure mode next toE5005.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 noCreatePipelineLibrary), anda_depth_planes_twin_is_drawn_into_the_planefails before this commit and passes after it.Imported from fxceless/victory-fork. Originally posted by marquezinii on 2026-11-24T20:26:10Z.
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.dllfrom SDK 10.0.26100 (1.9.2602), PR head73a0c56.cargo test -p victory-gpu --lib, three ways:lit(see below), every compile with a root signature in its source came back fromD3DCompilecarrying it, so the new check keeps the system's bytes (12main, 2plane,corner).dxc()(a local patch that makessystem()fail, not part of this PR): 112 passed. That covers the clamp (cs_5_1, 3,851-byte source), the depth-plane twins (planeasps_5_1, both variants), the in-place probe, thecorner/litpair and the smaller compute sources; the in-place probe gives the same verdict as withD3DCompile.VICTORY_DXCpointing at a folder holding onlydxcompiler.dll(nodxil.dllnext 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 forRootSignaturein the whole source, not in the entry. The resource test that compileslit(ps_5_1) from a source whosecornerentry 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 withoutdxcompiler.dllit would logDXC failed toothere.Not tested: Wine/Proton itself.
Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T20:32:35Z.
Thanks for running the DXC path on native Windows — the forced-DXC pass and the compiler-without-
dxil.dllpass cover two branches no test had exercised.On the
litpoint: correct, and3bb3845scopes the check to the entry.asks_for_root_signatureties each[RootSignature(...)]to the declaration that follows it (skipping any attributes in between, such as[numthreads]), solitno longer triggers a retry whilemainandplanestill do. When an attribute cannot be tied to a declaration, orRootSignatureappears outside one, it answers yes: the conservative direction, since the answer only decides whether a second compile is attempted. New testa_root_signature_belongs_to_the_entry_it_sits_oncovers amain+litsource 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.Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T20:53:49Z.
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.rsandinplace.rsare byte-identical between578d459and1684989, 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_47still fails all of it. A smallD3DCompile-only program (no device), compiled against the same sources at1684989:E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'E5005: Method 'Load4' ...E5005: Method 'Load' ...RTS0So 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,Load4and 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 oldno argument clampwarning is gone whether the fallback ran or not. Absence of the old messages does not distinguish the two; the info lines do. Your1684989run is conclusive on its own, though: on unmodifiedmaina refused clamp still logs and the card compare would have switched off, and neither happened.I updated the README in
083da25to 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.
Imported from fxceless/victory-fork. Originally posted by oeirughrepuiohg on 2026-11-24T20:43:59Z.
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 viaVICTORY_DXC. Diag build ofd279e69+ VIctory #454 + the fallback, Series X,VICTORY_SHADER_LOOP_LIMIT=32,VICTORY_NO_WATCHDOG=1.In the world (two runs of ~25 min):
E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'), then built by DXC; indirect work runs (~4,000–5,000 draws/frame).Xidduring play, 8shader does not translatewarnings.Update: this PR's own head in the game, and the root-signature half matters visually. I then ran
3bb3845merged onto90228a7(+ VIctory #454), same setup: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.Xidso 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.
Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T21:06:20Z.
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
1684989it also built, and nono argument clampwarning appeared, so itsd3dcompiler_47accepted at leastCARD_COMPARE— the shader Wine 11.22 rejects withE5005: Load4here. 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
infolines (the system compiler refused one of our shaders: trying DXC,the system compiler left the root signature out...) and, on1684989, the old warnings would identify which of the four compiled and how.Imported from fxceless/victory-fork. Originally posted by ThomasHFWright on 2026-11-24T21:22:21Z.
Independent Linux title comparison: this PR fixes real helper-shader failures here, but a GPU execution fault still blocks the world.
Tested your
14a1f079delta applied to fork4e17478b, 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.0cae8353ed7959c4+. DXC/validator 1.9.2609, explicitVICTORY_DXC/VICTORY_DXIL.Both runs were offline, Series X, loop limit 256,
VK_NV_raw_access_chainsdisabled, 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, zeroDXC 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.
Imported from fxceless/victory-fork. Originally posted by rostaddotcc on 2026-11-24T20:49:24Z.
⚠️ 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_47installed (winetricks), so Wine's builtin compiler was never exercised. Measured matrix and the correction: https://github.com/fxceless/victory-fork/issues/6#issuecomment-7144945629Correction: 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 DXVKdxgi; 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-msvcat73a0c56, DXC 1.9.2609 (dxcompiler.dll,dxil.dll) beside the exe withVICTORY_DXCset.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_47accepted every runtime compile in a ten-minute run: zerono argument clampmessages, and the card compare built (10 copies of 492 MB, 23–53 MB per frame sent up). So nothing here distinguishes this branch from1684989: the world submitted 2 783 draws per frame average (4 781 peak) and looked the same as unmodified1684989(2 990 average, 7 967 peak). TheE5005failures in #6 do not reproduce on1684989with this Proton'sd3dcompiler_47— either the shader changed between578d459and now, or the compiler version matters. Worth pinning down before choosing between #20 and #21; if the failure no longer happens on currentmain, 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):
1684989The 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
d3d12must be overridden off (otherwise device creation returnsE_INVALIDARGand 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 withint3at 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.
Imported from fxceless/victory-fork. Originally posted by marquezinii on 2026-11-24T21:50:21Z.
Re-ran the current head
14a1f07on the RTX 5070 (driver 621.40, Windows 11), withdxcompiler.dll/dxil.dllfrom SDK 10.0.26100:cargo test --workspace: 487 passed, 0 failed, 7 ignored. Both clippy runs (default and--all-features) are clean, anda_root_signature_belongs_to_the_entry_it_sits_onpasses.cargo test -p victory-gpu --libas is: 113 passed. With a local print incompile(),litnow reports no root signature asked and keepsD3DCompile's bytes;main(12),plane(2) andcornerask for one and get it fromD3DCompile, so nothing goes to DXC on Windows.dxc()(local patch, as before): 113 passed, 19 DXC compiles.VICTORY_DXCpointing at a folder holding onlydxcompiler.dll: 113 passed.77708e1, pushed since, only changes the README, so this holds for the current head too.upstream-sync referenced this pull request2026-11-25 00:09:26 +00:00
Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T23:50:58Z.
Retested the edited correction, forcing the builtin compiler so the result cannot be the native-fxc one:
system32/d3dcompiler_47.dllis 370,547 bytes (Wine's builtin), not Microsoft's 4.3 MBfxc.WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n;d3dcompiler_47=b"withVICTORY_DXCunset:indirect::tests::argument_clamp_buildsfails atassert!(super::clamp().is_some()). The failure proves the host device existed; this is not the vacuoushost().is_none()path.VICTORY_DXCpointing atdxcompiler.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_47prefix.Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T03:48:34Z.
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
cratesdelta fromddff6a6^1..ddff6a6(PR head16b6305) to clean310c6eb. It applied without conflicts, butcargo test --locked --target x86_64-pc-windows-gnullvm -p victory-gpu --lib --features diagnostics --no-runfailed with fourE0308errors:host::compilenow takes&strfor entry and target; the newRig::newcalls still passPCSTRvias!.Verified fix on the combined tree: use ordinary string literals for both arguments at
corner,first,secondandwork(e.g.compile(WORK, "work", "cs_5_1")), and remove the now-unusedsimport 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.
Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-25T11:15:26Z.
Rebased onto current
main(8d14fb3) and fixed the test-only callers that @ArturoWolff reported on the combined tree.host::compiletakes&strfor entry and target, so:indirect.rsRig::new:compile(DRAW, "corner", "vs_5_1")and the three others;simport removed from that module.host.rsqueue tests:compile(ADD, "main", "cs_5_1")/compile(TWICE, ...).tiles.rs:compile(LOOK, "look", "cs_5_1"); unusedsimport removed.indirect/bench.rs: its localD3DCompilewrapper now callscrate::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-hlepasses.cargo xwin test --no-run --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib --features diagnosticslinks.victory-gpulib test binary: 174 passed, 4 failed, 5 ignored. Three failures areprofile::tests(unrelated to this change); the fourth isdxc::tests::a_shader_the_system_compiler_refuses_is_compiled_by_dxc, which fails with0x8007007Ebecause this host has nodxcompiler.dll. The two otherdxc::testspass.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.Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T11:46:05Z.
@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 samex86_64-pc-windows-gnullvmbinary twice under GE-Proton 11-14, selectingdxc::tests:: --test-threads=1 --nocapturein separate copies of the same prefix.0x80004005), then the fallback returned0x8007007E(module not found), matching your Wine 11.22 result.dxcompiler.dllanddxil.dllDXBCcontainer 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.
Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-25T11:51:11Z.
Confirmed, and thanks for the two-row run: the missing module is the whole of that failure.
dxc()returns0x8007007EfromLoadLibraryExWbefore DXC is entered, so nothing else in the fallback is exercised.One note on the container:
DXBCis what DXC writes too — the DXIL bitstream sits inside aDXBCcontainer as itsDXILchunk, so a 2,840-byteDXBCwithRTS0is 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.d4a36b1stops the test failing for a missing fixture: when the system compiler refuses the source and nodxcompiler.dllcan be loaded, it printsno 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): 3dxc::testspass, the fallback one printing the skip. WithVICTORY_DXCnaming DXC 1.9 beside itsdxil.dll: 3 pass, the container and root signature are checked, and D3D12 takes the signature and makes the compute pipeline.Imported from fxceless/victory-fork. Originally posted by Ortomanic on 2026-11-25T15:28:18Z.
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:0b0074eplus our Linux patches (#257, #258, #259, a second-plane composition) with this PR's headd4a36b1merged in; the merge was clean. DXC 1.9.2609.5 (dxcompiler.dllanddxil.dll) sits in the prefix'ssystem32;VICTORY_DXCwas not set.Result, one run to the prologue cell (14 five-second world lines, then stopped by the harness):
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 argument clamp, nocould not be made, nono pipeline to draw a depth plane from its twin.WINEDLLOVERRIDES=d3dcompiler_47=n, no DXC fallback) gives the same picture: 0 in 20 lines, 1 in 10, 3 in 2.4e17478with neither, the clamp failed to compile and about 4,700 indirect executions were dropped in every world frame.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.
Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T18:53:54Z.
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 patch951dc00, the retained log hasno argument clamp: indirect execution dropped error=Call failed. (0x80004005)and 41not boundedreport 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
d4a36b1d87007dc85a75a6d851ce5106c4e22c67onto that samec5820ac+951dc00tree. Only the manifest hunk required adapting: the receiving tree already has extrawindows-sysdiagnostics features, so I retained those and addedWin32_Graphics_Direct3D_Dxcto the existingwindowsfeatures. The other #20 hunks applied unchanged. Both the diagnostics release application andvictory-gpu --libtest 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.rsthat requires an actual FL11_0 D3D12 device and calls the productionmake_forwith its unchangedSOURCE. This is intentionally stricter thanargument_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.0x8007007E(module not found), exit 101With 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, andD3D12 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).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-25T22:06:50Z.
I reproduced a remaining direct D3DCompile call on main
9c184b3with #20 atd4a36b1.Host::make_card_inflightreturnedE_FAILand fell back to the older fetch path withVICTORY_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. RoutingCARD_FETCHthroughcompile(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.
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T16:48:10Z.
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 atd4a36b1forward 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).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T20:19:31Z.
The source-only review branch now contains upstream main
52ac4ecas an ancestor. It includes #1357's test-module move so the existing file-size CI failure stays covered. Review branchOn the same RTX 5060 Laptop with Bazzite 44, GE-Proton11-14 and vkd3d-proton 3.2.0, the physical card-creation fixture failed with HRESULT 0x80004005 when using the direct system compiler. With the fallback, the same fixture built the original compare, wide compare and in-flight fetch pipelines. The four DXC tests, 17 indirect tests with hardware selected, and six in-place tests passed. The DXBC parser now checks the part table for an embedded root signature, with a test for the same bytes in unrelated parts. The two software-only queue tests skipped on Proton. Windows MSVC Clippy with warnings denied and full asset policy passed.
The latest validation commit is 881e2b7037bc9bccf9e63a6b7ea8605e2c0a4135.
I also reproduced the failure in VI-BR-PORT at a31b9b1. On the same RTX 5060 under Proton, its production card-compare setup returned 0x80004005 through the system compiler. Routing that call through the shared compiler made the fixture pass. The title replay then recorded actual hardware compare and hash dispatches. This cross-check uses the same fallback logic as this PR.
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-26T23:19:55Z.
Independent physical-GPU execution check of the card-buffer part of ErRusso's #20 and Filip722's updated runtime-HLSL integration, extending the constructor-only evidence above.
Exact comparison:
450ed9bd8893fc67f2a3a768b589275579ad94a9(the review branch before the fallback update) versused33ac41f1b97b4840b620ecd57552371b0edc2c. Both built successfully from independent fresh Cargo targets (x86_64-pc-windows-gnullvm,diag,victory-gpu --lib, diagnostics, locked/offline). The only local source changes were an identical synthetic fixture and equivalent test-only readback logging. This is a branch-internal A/B of the earlier review snapshot, not validation of current main or the newer881e2b7037bc9bccf9e63a6b7ea8605e2c0a4135validation commit.Environment: RTX 4060 (8 GB, NVIDIA 620.73.04), GE-Proton11-14 / Wine 11.0 Staging, vkd3d-proton 3.2.0 (
71cae091b06571e), builtind3dcompiler_47forced, same native D3D12/DXGI overlay and pinned DXC/validator DLLs in both arms. Separate copies of the same initial prefix and initially empty per-case driver-cache directories; private virtual X only for device initialization. The actual adapter was checked in every test, with no software-device substitution or early device skip.In both arms, the direct system compiler returned
0x80004005:E5005forRWByteAddressBuffer.Load4in the basic/wide shaders andLoadin the fetch shader. Root extraction from those failed system compiles was therefore not reached. An independent ordinary FXC shader with an explicitly serialized root signature executed correctly in both arms (12 matched output/sentinel dwords). With the candidate,dxcompiler.dllwas actually loaded from the fixture executable's directory, and all three real constructors returned success. The baseline's two submission tests failed at the missing card-hash-pipeline assertion, before numeric readback.Beyond successful construction, the candidate checks completed on fenced queues:
VICTORY_CARD_SYNC_BATCH=0and=1; all 16 expected readback dwords matched. The nonzero/changing hash assertions passed, and all 256 bytes of recorded hash values agreed between the two modes.Neither arm stopped on the 512 MiB host-memory guard, reported an OOM kill, or had an observed kernel GPU-fault event. The healthy termination of these small tests does not resolve the separate retail device-loss problem. This isolates real execution/readback correctness on the tested older review snapshot; the later root-signature parser changes and integration on current main still need their own qualification. No title files, title launch, visual capture, graphics-quality reduction, FPS measurement, AMD, or native Windows validation in this comparison.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol Max).
Imported from fxceless/victory-fork. Originally posted by akimfomin on 2026-11-26T23:34:49Z.
Against current main
a42b627e78476d691042a2a12e8cd5fcf5e49d77, the exact #20 headd4a36b1has one conflict inhost.rs: its DXC call uses fixedCARD_COMPARE, while main selects the source at runtime. I extracted both current HLSL sources and compiled them with DXC 1.9.2602 atcs_6_0 -O3. Both succeeded and both containers have RTS0 (4,300 and 5,000 bytes).Keep the receiving tree's narrow/wide selector when routing through the fallback. For the full integration I would add the
VICTORY_CARD_HASH_WIDE=1case to the execution check so it detects a resolver silently forcing the narrow shader. The extraction establishes compilability and root-signature presence, separate from the existing physical execution report. PortBridge · AI-assisted source and compiler check.Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-27T03:25:48Z.
Follow-up to @akimfomin's narrow/wide selector point and the earlier review-branch execution comparison.
I checked whether the same failure still occurs on default main
81d54b06f728ade90e450acb67e8c2e0735b024d, with test-only instrumentation and no production changes. Fresh locked/offline Windows GNU LLVM test build, RTX 4060 (physical adapter, vendor10de, software flag 0), driver 620.73.04, GE-Proton11-14/Wine 11.0 Staging, vkd3d-proton 3.2.0 (71cae091b06571e), forced builtind3dcompiler_47. Each case uses a separate copy of the same game-free prefix seed and a fresh per-case driver cache.The fixture asserts that each selected source matches the receiving tree's environment-controlled
card_compare_source(). Builtin compilation rejects both compare shaders (E5005,RWByteAddressBuffer.Load4) and fetch (E5005,Load); production constructors fail with80004005. The selected-wide primary constructor also fails. None of the three submission cases reaches successful numeric readback. The explicit serialized-root control succeeds, with all 12 expected dwords matching. Fresh build exit 0; actual test children exit 101, despite a clean supervisor exit. No observed host OOM kill or kernel GPU fault (416 fault scans).The previous ErRusso/Filip722 review branch comparison remains 1/6 -> 6/6, but this expanded current-main baseline is not a matched A/B against that older branch. It establishes that the receiving tree still needs a compatibility fix. The next useful check is to preserve the runtime selector while integrating the fallback, and rerun these same five cases with fenced readbacks. This is not evidence of a gameplay fix or a performance gain; no title, visual capture or inputs were involved, and AMD/native Windows are untested here.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol Max).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T07:14:39Z.
Additional physical test on RTX 5060 Laptop (8 GiB), NVIDIA 615.78.08, and GE-Proton11-14 with vkd3d-proton 3.2.0 (
cae8353ed7959c4+). I ran a generated-data version of main9a9091d's in-place constants fixture with a committed pagefile section. The CPU-to-GPU reads across two mapped views, the read after a CPU update, and the GPU-to-CPU copy all succeeded. The next step failed in the systemD3DCompilecall for the fixture's root-UAV compute shader with0x80004005.Using the same DXC compiler helper as this proposal for that shader completed the dispatch, verified its write through the title-side mapping, and verified the GPU buffer remained usable after releasing the views and registry owner. The hardware test passed (1 passed, zero skipped). This exercises shader setup and the committed-section alias on Proton. A gameplay comparison with in-place constants is still pending.
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T07:35:01Z.
I updated the source-only review branch through main
9a9091d. The separate commit61bec79ab448ec444dfcc94623481ce0c5e016d7routes the new GPU detile shader through this PR's existing compiler helper.On the RTX 5060 Laptop with GE-Proton11-14, the original detile call returned DXBC without the embedded root signature and setup failed with
0x80004005. The helper supplied DXIL with the signature, and all 19 GPU readbacks in #1435 matched the CPU on the same device. I repeated the hardware test with the updated review branch. The Windows MSVC release build, four DXC tests, five pipeline tests and full asset policy also passed.Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T10:23:52Z.
Another compatibility result for the shared compiler fallback. On a local integration of VIctory-NVIDIA
7c04c617, both the plain and batched indirect argument clamps failed to initialize with Wine FXC on the RTX 5060 Laptop. The late trace showed about 4,100 indirect operations per frame dropped as unbounded, with a black world view.Routing their shared constructor through the DXC fallback kept their shaders, bounds and barriers intact. Both physical adapter fixtures changed from failing creation to passing two GPU readbacks each, including bounding a 100,000-group input to 65,535. In a matched cold Series S replay, that compiler-routing change rendered the opening room and the camera visibly responded to input. The two builds shared their separate compositor, card-compare and indirect-light prerequisites. GE-Proton11-14, vkd3d-proton 3.2.0, NVIDIA 615.78.08.
Assisted by Codex (GPT-6.2-Sol High).
Pull request closed