fix(victory-gpu): bind zero fallback for missing root CBVs/SRVs and drop draws missing stride tables #458
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!458
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-458"
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?
@Lewandox on GitHub · 2026-11-26 23:45 UTC · original
Lewandox:fix/victory-gpu-bind-missing-root-views→main· +201 −27 · 3 files · 1 commits · openSummary
Fixes three cases in
draw::State::bindwhere a root descriptor declared in the compiled D3D12 root signature could be left unbound (uninitialized afterSet*RootSignature, or retaining a previous draw's stale GPU virtual address), causing undefined behavior / GPU page faults (DXGI_ERROR_DEVICE_REMOVED) on NVIDIA:SLOT_STRIDES&SLOT_TABLE_STRIDESwithout a bound view heap (draw.rs): previously logged once andcontinued, letting the draw/dispatch record with the stride table root SRV unbound. Now returnsfalseto drop the draw, matchingSLOT_MEMORY.draw.rs): whentabled == false(always true for root CBVs, and for root SRVs underVICTORY_ROOT_SRV_DIRECT=1), an unset root slot previouslycontinued without binding anything. Now binds a persistent 64 KiB zero-filled fallback buffer (Host::zero_root_gpu()), matching console null-CBV zero reads without leaving a D3D12 root descriptor uninitialized.draw.rs): whenroot_view(...)returnsNone(e.g.address == 0or unmapped memory), bindsHost::zero_root_gpu()(skippingUSER_VIEW_BIASsubtraction on the fallback address) instead ofcontinueing with an unbound slot, or drops the draw if the fallback buffer is unavailable.Verification
draw::missing_root_views_tests::bind_drops_missing_stride_tables_and_binds_zero_fallback_for_root_cbv(emits a minimal SM 6.6 compute DXIL viavictory_shader, no externaldxc.exerequired):cargo +stable-x86_64-pc-windows-gnu test --lib -p victory-gpu missing_root_views_tests -- --nocapture --test-threads=1-> 1 passed, 0 failed.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.