Fix descriptor type and bounds checks in meshlet buffer loads #3408
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!3408
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3408"
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?
@Aforno on GitHub · 2026-11-29 22:52 UTC · original
Aforno:codex/meshlet-descriptor-bounds→main· +282 −90 · 10 files · 3 commits · closed without mergingWhat changed
A meshlet compute dispatch could read a descriptor through the wrong D3D12 buffer class. On the tested RTX 5060, guest-computed indices also reached the host's temporary table slots. DRED placed the interrupted command at
ExecuteIndirectwith meshlet culling enabled.The host now records constant buffers, unordered buffer views, and private slots in its per-slot metadata. The translator uses that information for guest-selected scalar and untyped vector buffer reads. Byte and halfword reads use the same type check for both dwords of a straddling load. Raw multi-dword reads honor the existing
WIDEoptimization switch.A separate diagnostics commit adds
VICTORY_D3D12_GBV_SHADER=<shader hash>. With the D3D12 debug layer and GPU-based validation enabled, this instruments pipelines that use the selected shader. The first commit cherry-picks the diagnostics build prerequisite from #3086 with the original author's attribution. It can be dropped once that fix lands upstream.Test evidence
WIDErefinements in this draft.WIDEchanges the emitted code for a heap-selected scalar load. The existing scalar buffer boundary test also passed withWIDEoff and on.VICTORY_SCALAR_SPLITSexpectation and also failed on upstream main. The clean upstream GPU suite likewise recorded four failures, three shared with this run.716a0c99. Related CI repair: #3385.Related work
@dyshay on GitHub · 2026-11-30 03:12 UTC · original
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.Pull request closed