Ambient: raise stays inside the image it writes (Xid 13 under Vulkan at DLSS Performance) #3044
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3044
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3044"
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?
@atorata on GitHub · 2026-11-29 19:44 UTC · original
atorata:fix/raise-bounds-vulkan→main· +8 −1 · 1 files · 1 commits · openFixes the Xid 13 (MMU fault) part of #2769 (that report: "with DXC v1.7.2207 (so
raisecompiles) ... the card faulted (Xid 13)").What it changes
raise(the diffuse stand-in,crates/victory-gpu/src/ambient.rs) bounds its threads bywidth/height, which are the depth's size (words[6..8] = views.depth_size), but it is dispatched over the image's size (views.size) and writeslight[p]. When the depth is larger than the image, the threads past the image pass the check and write outside the texture.D3D12 drops out-of-bounds UAV writes, so on Windows this is invisible. Under vkd3d-proton/Vulkan it faults the card:
NVRM: Xid 13 ... Graphics SM Warp Exception ... MMU Fault, then the title's watchdog.With DLSS Performance on the Series S profile the sizes differ on every frame: the title's upscaler context is made at 1280x720 (
FidelityFX: the title's upscaler made at a size its shipping FSR4 accepts ... asked_render=[960, 540] ... made_render=[1280, 720]) while DLSS renders 960x540 (a stand-in for the indirect light role=Resolve size=[960, 540]). At DLSS Quality both are 1280x720 and nothing is written outside.The change checks the image's own size too (
light.GetDimensions), asreflect_light,bound_lightandclear_airin the same file already do. 8 lines in the HLSL, no Rust change.How it was tested
71cae091bbesidevictory.exe, DXC v1.9.2609 (raisebuilt withor()/select()as in #2160). Series S, 1920x1080 output, FSR 3 frame generation 2x, ray tracing off.0x...=0xf812b60), so the same instruction. No Xid 13 in about 1.5 h at DLSS Quality (720p), where depth and image sizes match.numthreads(8, 8, 1), not a translated title program).cargo testpassed for the crates it touches: not run; I could only cross-compile on Linux (cargo xwin build --release, it builds), and the helper is compiled at run time.raise_opt_in_chroma_scrub_filters_spikes_and_preserves_scene_tones_on_hardware_and_warpexercisesRAISEon D3D12 and WARP and would be the one to watch on Windows.Checked for overlap
raisebuild under Proton; does not touch these lines), #2769 (the report). No open PR changesraise's bounds.@stasadance on GitHub · 2026-11-30 04:21 UTC · original
Confirming on Linux: RTX 4090, NVIDIA 620.73.04, kron4ek Wine 11.23, vkd3d-proton GE cae8353, Series S profile, DLSS + frame generation. We had Xid 13 (device lost) at world entry; with this PR applied (plus the folded code-table bound, #3695), several sessions in-world with no Xid and clean exits.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.