GPU: compile our run-time HLSL with DXC when the system compiler refuses it (Wine/Proton) #20
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!20
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ErRusso on GitHub · 2026-11-24 20:06 UTC · original
ErRusso:runtime-hlsl-dxc-fallback→main· +497 −193 · 10 files · 9 commits · openFixes #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.
@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 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.@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.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.
@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.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.@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.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.
@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 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.
@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
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.@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
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.
@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_47installed (winetricks), so Wine's builtin compiler was never exercised. Measured matrix and the correction: #6Correction: 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.
@marquezinii on GitHub · 2026-11-24 21:50 UTC · original
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.@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:
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.@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
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.
@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::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.@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 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.
@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()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.@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: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.
@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 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).
@Filip722 on GitHub · 2026-11-25 22:06 UTC · original
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.
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.Merge
Merge the changes and update on Forgejo.