Repository navigation
victory-shader: fix NVIDIA access violation in heap_direct_texture_reads_mark_their_heap_index - #3465
kalberts0089-hash wants to merge 1 commit into
Conversation
…at least one root constant The test's shader has no user data, so it passed an empty Vec to SetComputeRoot32BitConstants: a count of 0 with Rust's dangling placeholder pointer (0x4). NVIDIA's driver reads the pointer even with a count of 0 and faults (STATUS_ACCESS_VIOLATION in nvwgf2umx.dll on an RTX 4060); WARP doesn't. Size the buffer with .max(1), as the root signature (emit/host.rs) already declares at least one constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
WARP test report ( OS: Windows 11 Pro 10.0.26200 (build 26200.9974), x64
Review note: the one-line change AI-assisted (Claude). Aggregate counts only; no game files used. |
|
Confirmed on an RTX 3070 8 GB (Ampere), driver 616.56, Windows 11. This is the crash we have been skipping in every VIctory run (#2571).
Full I checked the cited lines: the root signature declares AI-assisted (Claude Code, Claude Opus 5.5). |
|
Heads-up: I've since found this overlaps with #2739 (same |
Fixes the access violation reported in #3445.
The test's shader has no user data, so it built an empty
Vecand passed its dangling pointer (0x4) toSetComputeRoot32BitConstantswith a count of 0. NVIDIA's driver reads the pointer anyway and crashes (STATUS_ACCESS_VIOLATIONinnvwgf2umx.dll); WARP doesn't.This adds
.max(1)atmemory_tests.rs:731, matching the root signature (emit/host.rs:229) andemit/host.rs:610. I kept it to this one line rather than skipping the call inHost::dispatch, since that would leave a declared root parameter unset.Tested on an RTX 4060 (driver 610.88):
cargo test -p victory-shader --no-fail-fast: 299 passed, 3 failed (the 3 failures are the unrelated ones in NVIDIA RTX 4060: test failures and a crash from descriptor heaps capped belowHEAP_VIEWS(1 << 21) #3445)Done with Claude Code's help.