Linux (Wine + vkd3d-proton), RTX 2080 Ti: reaches the opening cutscene; four fixes, a mesh-launch problem, and lighting at exact zero #14
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/fablinoo--kelvaroq#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@arbelonson-source on GitHub · 2026-11-26 19:38 UTC · original
Environment
dxgisources/native.zipwith Rust 1.98.1 andcargo xwin. It has the sameVICTORY_*switches as the shippedkelvaroq-engine.exe, plus the fix below.Result
The title boots, the menus run at 30 fps, the story loads, and the opening cutscene plays: subtitles and credit cards show, and it ran 22+ minutes without a crash. But the 3D picture is black, at 0.1–0.3 fps.
What it took, in order
8b48f0e) emits invalid SPIR-V for several compute shaders: an unterminated merge block, or a merge block shared by two headers. NVIDIA's Linux compiler crashes on them (SIGILL invkCreateComputePipelines), and winevulkan exits with code 3. I reproduced it natively with the dumped SPIR-V. dxil-spirvb540c8a(what vkd3d-proton master pins) converts all 112 shaders I saw to valid SPIR-V. Rebuilding vkd3d-proton 3.1 with it fixes the crash.victory-loader/src/console_cpu.rs) declines guarded or uncommitted lines. When the safe write is refused, it returns 0, and the illegal instruction goes unhandled:0xc000001dat the 12-byte loop0f 01 fc 48 83 c0 40 4c 39 d0 72 f4, 22 minutes in. On the console the store faults into the runtime's front-of-chain handlers (write-watch guards, lazy commit), which open the page. The fix zeroes such a line with ordinary stores from the handler, so the same handlers resolve it. Free memory is still declined. A test fails without the fix and passes with it. In a 22-minute run, 77 lines went through the fault; each was a crash before. Diff below. Upstream victory-fork has the same early return inconsole_insn.rs: fxceless/victory-fork#1380.R8_UINTtarget (E_INVALIDARG). Upstream victory-fork already turns blending off on integer targets (pipeline/host.rs);f85101bpredates that.D3DCompile(depth planes from their twins, the indirect argument clamp). Wine's built-ind3dcompiler_47fails on them (E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'). The onewinetricks d3dcompiler_47installs (6.3.9600, Windows 8.1 SDK) rejects the targets (X3506: unrecognized compiler target 'cs_5_1'). A Windows 10+d3dcompiler_47.dllworks. Without it: "no pipeline to draw a depth plane from its twin" and "no argument clamp: indirect execution dropped". A version check at startup would make this obvious.VICTORY_MESH_LAUNCH(on by default) draws no world geometry here. The log reportsindirect mesh dispatches: the largest group count asked for 0, and the depth buffer and G-buffer of the cutscene's first 3D frames hold one character only. WithVICTORY_MESH_LAUNCH=0, the records are non-zero (largest 493, about 12,000 groups a frame), and the world fills the depth buffer, G-buffer and shadow maps. The unit testmesh_records_are_launched_by_the_amplification_stagepasses on this GPU under the same stack, so the shader itself works; the difference is in how a real run's records are reached. Not root-caused.(The title's own hang watchdog also fired during the slow load; I worked around it outside the engine.)
Still open: the lighting writes exact zeros
Captured with the diagnostics build (
VICTORY_CAPTURE_WORLD=1 VICTORY_DUMP_TARGETS=1; real values from the log'starget valueslines), with all of the above applied:df11dcd012cd7382, 320×180 groups) writes exactly 0 to its outputs. So does a full-screen composite (c19a0b6c544d5e78) that reads the sky target.VICTORY_WAVE64_PAIRED=0, with--console series-s(1920×1080 internally), and withVICTORY_LEVELS_ON_DEMAND=1.Not tested yet: whether dxil-spirv
b540c8a(needed for 1) mistranslates these two shaders. The older converter crashes the driver during the load (1), so that test needs replacement shaders.Issue #11 (RTX 5070, Windows) sees the cell's window light, so this zero is probably specific to this stack.
Performance
The cutscene runs at 0.1–0.3 fps, almost all of it on the CPU. For example: about 8 s a frame of texture refreshes across threads, 2.9 s of that asking the write watch; copies of 130–200 MB a frame in 1.7–5.7 s; and about 100 million emulated console-CPU instructions in 20 minutes (CLWB, MONITORX/MWAITX, CLZERO).
Diff: CLZERO on guarded or uncommitted lines (against
sources/native.zipof 0.2.0)(Offered as a diff rather than a pull request: CONTRIBUTING asks for a
Co-authored-byline on every commit that wouldn't be accurate here.)@TeraByte38 on GitHub · 2026-11-26 21:15 UTC · original · edited 2026-11-26 21:18 UTC
how the hell did you get the exe to load? this is what i get: #13
@Suyash728 on GitHub · 2026-11-26 21:26 UTC · original
@arbelonson-source I use CachyOS (arch btw too)... I'm still sourcing the game files. Do you run this repo's exe using wine/proton and that's it right? no additional setup required?
@pickles976 on GitHub · 2026-11-27 21:08 UTC · original
A concrete shader identity cross-check from our local retail 1.0.2.1 shader-info output: your pixel hash
c19a0b6c544d5e78isMotionBlur / MotionBlur / pass 7 / PS_MotionBlurLowRes_6191104a_Wrapped, paired with VS0d007b998ee2d8b2. That is a useful narrowing of “full-screen composite”; it does not establish that the effect name is its actual resource producer in this run.df11dcd012cd7382did not match our extracted shaders.rpf effect listing, so I cannot identify that compute stage from this evidence.Our RTX 4060 Laptop / Wine 11 mixed stack has a related but not identical observation: recognizable G-buffer/depth, yet exact-zero FP16 colour at the native FFX input boundary, with exact-zero output after a successful call. Your nonzero HDR/sky values therefore should not be treated as the same proven resource chain. Reference: https://github.com/Marvisak/VIctory/issues/841#issuecomment-7227226100 .
One diagnostic pitfall we corrected locally: bracketing a selected dispatch while always copying a global HDR texture did not prove that the dispatch bound that texture as its UAV. A real-GPU fixture now binds a different native texture through the descriptor slot, verifies every resulting pixel there, and verifies that the global/metadata texture stays zero. Actual-title measurement with that corrected probe is still pending; I am not claiming your capture has this defect.
Actionable next evidence would be command-ordered actual bound SRV/UAV identities, root/table offsets, dimensions/formats, and pre/post values for these two hashes, including original indirect arguments if applicable. This distinguishes zero inputs, an empty optional draw, and an executing shader producing zero without assuming every full-screen pass is the missing HDR producer. No asset/image uploads needed.
Local identity evidence:
.compat-runtime/logs/verify-scene-shader-effects-20261127T081804Z/console.log:3774-3784. No new title run or gameplay claim. AI-assisted source/evidence review with OpenAI Codex / GPT-6 Astra.