Repository navigation
Conversation
|
Tested
No game data used. |
|
Independent confirmation on an RTX 4080 (Linux, vkd3d-proton), a whole-package check, and a test I hit the same crash on a second NVIDIA card and traced it to the same cache key independently, so here is what I can add. Environment: Arch-based Linux, kernel 7.3; Core i5-13600K; GeForce RTX 4080 16 GB, driver 620.73.04; GE-Proton11-12's Wine with vkd3d-proton In the game (one run each):
Across the whole package (no GPU involved):
The 39 are 26 pixel and 13 compute programs: 22 One caveat: the dxil-spirv command line ( This looks like the remaining A test. DaviTostes noted the diff has none. I wrote one in the style of the existing synthetic programs: a compute program that loads a 2D image UAV and then runs No game data is attached; the dumps stay on my disk. AI-assisted (Hermes). |
|
Independent reproduction on RTX 5090 / NVIDIA 620.70.06, Wine 11.22 and vkd3d-proton 3.2.0: before an equivalent local cache-key fix, the captured After keying by both resource-property words, the corresponding generated SPIR-V passed |
|
Tested on a third card: RTX 4070, driver 620.70.06 (nvidia-open), Wine 11.22, vkd3d-proton 3.2.0 (Proton Experimental 11.0-20261112), Ryzen 7 9800X3D. Build:
So this fixes the driver crash for me too. Related: #144. |
|
Thanks all for the independent reproductions on the RTX 4070/4080/5090 and for the package-wide numbers. I've added @gingertonik's regression test from #226 to this PR (cherry-picked with attribution as ce945d6). |
…into the integration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
…x runtime Replaces this branch's own fix of the same bug (reverted above): main already annotates an atomic's handle as U32, and Marvisak#177 keys the handle cache by the element type too, which is the whole fix for the float OpAtomicUMax that crashed NVIDIA's compiler on Linux. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Confirmed on a native Linux build (no Wine; vkd3d-proton, RTX 5090, NVIDIA 620.73): with this change |
Adapt the validated lowering from flapwarp78 (VIctory Marvisak#48) and Tarcisio (VIctory Marvisak#305), and key typed handles by both resource properties from Ortomanic (VIctory Marvisak#177). Gate the runtime on the typed and descriptor-heap capabilities and test both dwords against hardware. (cherry picked from commit 26cc0b15c12e6ac6339929754b01c4ce4660c26b)
handle() keys its cache by resource kind only, so an image atomic that
followed a size query of the same view (getDimensions on a float4
handle) reused that handle: the i64 atomic ran on a RWTexture2D<float4>
annotation ({4098, 1033}) instead of DXC's {4098, 261}. Reported by
jeremygold02 on #539. The 64-bit path now makes its own heap handle; the
general fix of the cache key is #177.
translate --validate on shaders.rpf unchanged (vertex/pixel 12690,
compute 1672).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…urrent main" This reverts commit f2c8e5f.
…stalls Host::execute waited for each submission with no end. A host that loses its device need not signal the fences of the work it dropped: vkd3d-proton after a GPU fault does not, and by default does not report the device removed either. The title's submit thread then stays in our wait, its render thread blocks on its full submission ring, and 30 s later the title's own watchdog ends the run at image+0x23cf683 (Marvisak#1118), with nothing of ours in crashes.log to say that the GPU faulted. The wait now goes in 250 ms slices: * between slices the device is asked whether it was removed; if so the wait ends and the existing check after the submission reports it; * a submission still running is said so at 10 s and 20 s; * at 25 s it is given up with a report of its own ("has not finished a submission ... and reports no removal"). The limit is below the title's 30 s so the run ends with the cause, not with the title's null write. vkd3d-proton's own source calls a wait of over 5 s a lost device; Windows resets a device after about 2 s. A fence that comes is taken as before; a device that is removed and signals (Windows) is reported by the check after the wait, as before. Tested on Linux only (RTX 5080, driver 620.70, GE-Proton11-6's Wine, vkd3d-proton 30b0eb9), on main + Marvisak#177 + Marvisak#259, where the world faults the GPU in every run (Xid 13, fixed by Marvisak#542): * without this, with or without VKD3D_CONFIG=fault: the title's crash at +0x23cf683 24 to 30 s after the Xid, in 9 of 9 runs, and no report; * with this and VKD3D_CONFIG=fault: "device removed: 0x887A0005" 4 s after the Xid; * with this and vkd3d-proton's defaults: the two warnings, then the stall report 25 s after the submission began. New unit test of the wait (no GPU); cargo test --workspace under Proton: 333 passed, the same ten environmental failures as main; clippy -D warnings with and without --all-features; cargo xtask policy. Not run on Windows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
This is still needed on the new The log shows nothing at default Wine debug settings. With I ported the change by hand onto Thanks to @Ortomanic for finding this and for the fix. A rebase onto the new |
…(port of fork Marvisak#177) A block the query does not report resident is still probed with a one-byte read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
A title buffer object's copy is, with VICTORY_IN_PLACE=1, the title's memory too: placed from the 64 KiB boundary at or below the buffer (views find their bytes by address), past its end by 256 bytes where the allocation has them. A placed buffer's end only needs to be committed pages, not 64 KiB. A remap drops in-place title buffers over it as well. Buffers over many separately mapped 64 KiB views (MEM_MAPPED, one allocation each) are still copied: one heap cannot span them, and tile mappings into heaps opened over process memory were not reliable under vkd3d-proton here. Measured (RTX 5080, proton-cachyos 11.0, the title loading its world, with Marvisak#259, Marvisak#177 and Marvisak#1849 on top for NVIDIA under Wine): 3,335 title buffers and 2,117 loose windows in place, none refused, no device errors; 8 large buffers (378 MB) over separate views still copied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test report: Linux + Proton on an RTX 3060 (Ampere, 32-lane), where this fixes 704 pixel and 6 compute pipelines the driver refuses on Setup: Ubuntu-based host, NVIDIA RTX 3060 12 GB (Linux driver), GE-Proton11-14 (vkd3d-proton 3.2.x), VIctory diag builds cross-compiled for What fails on With this PR:
Not done here: No game data attached. AI-assisted (Claude Code). |
|
Confirmed on an RTX 5090 under Wine + vkd3d-proton (GE-Proton11-14), This branch conflicts with current AI-assisted (Claude); measured on my machine. |
…stalls Host::execute waited for each submission with no end. A host that loses its device need not signal the fences of the work it dropped: vkd3d-proton after a GPU fault does not, and by default does not report the device removed either. The title's submit thread then stays in our wait, its render thread blocks on its full submission ring, and 30 s later the title's own watchdog ends the run at image+0x23cf683 (Marvisak#1118), with nothing of ours in crashes.log to say that the GPU faulted. The wait now goes in 250 ms slices: * between slices the device is asked whether it was removed; if so the wait ends and the existing check after the submission reports it; * a submission still running is said so at 10 s and 20 s; * at 25 s it is given up with a report of its own ("has not finished a submission ... and reports no removal"). The limit is below the title's 30 s so the run ends with the cause, not with the title's null write. vkd3d-proton's own source calls a wait of over 5 s a lost device; Windows resets a device after about 2 s. A fence that comes is taken as before; a device that is removed and signals (Windows) is reported by the check after the wait, as before. Tested on Linux only (RTX 5080, driver 620.70, GE-Proton11-6's Wine, vkd3d-proton 30b0eb9), on main + Marvisak#177 + Marvisak#259, where the world faults the GPU in every run (Xid 13, fixed by Marvisak#542): * without this, with or without VKD3D_CONFIG=fault: the title's crash at +0x23cf683 24 to 30 s after the Xid, in 9 of 9 runs, and no report; * with this and VKD3D_CONFIG=fault: "device removed: 0x887A0005" 4 s after the Xid; * with this and vkd3d-proton's defaults: the two warnings, then the stall report 25 s after the submission began. New unit test of the wait (no GPU); cargo test --workspace under Proton: 333 passed, the same ten environmental failures as main; clippy -D warnings with and without --all-features; cargo xtask policy. Not run on Windows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
What
handle()inemit/lower.rscached heap handles by(block, load, first, sampler, props.0). When a program reads a texture UAV as float and uses it atomically, both annotations shareprops.0(RWTexture2D), so the atomic got the cached float handle. dxil-spirv then emitsOpAtomicOr %floaton a float texel pointer, which is invalid SPIR-V (spirv-val: "AtomicOr: expected Result Type to be integer scalar type").On NVIDIA (RTX 5080, driver 620.73, vkd3d-proton under Wine) the driver's compiler crashes in
vkCreateComputePipelineson that SPIR-V as GTA VI enters its world (programsc12c1f7296419a5b,8358f9eef7931421).Change
The element type (
props.1) is part of the cache key, so the atomic gets its ownu32handle as the texture-atomics note inemit/mod.rsintends.Testing
cargo test -p victory-shader: 56 passed.VKD3D_SHADER_DUMP_PATH) and ranspirv-val --target-env vulkan1.3: 2 invalid before, 0 after.vkCreateComputePipelinesdriver crash no longer occurs (it reproduced in 3 of 3 runs before).