feat(gpu,shader): opt-in VirtualDescriptorPager + SLOT_VIEW_MAP (t252) for NVIDIA 1M view heap cap #1297
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1300"
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?
Imported from fxceless/victory-fork. Originally posted by POMXARK on 2026-11-26T13:05:45Z.
Ref #1199 (Follow-up Virtual Descriptor Pager Draft PR ported cleanly onto
ceb9e1f).100% opt-in via
VICTORY_VIEW_PAGER=1(autoonPORTABLE_VIEWScapped hosts) orVICTORY_VIEW_PAGER=force— completely inactive by default (VIEW_PAGER = false, shadertranslation_fingerprintkeys cleanly onview_heap_paged()).Design summary
victory-shader(emit/shader.rs,emit/lower.rs,emit/mod.rs): adds root SRVSLOT_VIEW_MAP(t252,SLOT_VIEW_MAP_COUNT = 2^21) and translatesRootType::ResourceHeapindices through a bounds-clamped lookup intot252only whenview_heap_pagedis enabled.victory-gpu(descriptor/pager.rs,descriptor/host.rs,draw.rs,pipeline/host.rs): preserves direct1:1physical slots belowcount, reserves[count + pool .. null_slot)for disjointDYNAMICtables, and pages overflow virtual slots through a Clock Second-ChanceVirtualDescriptorPagerwithview_mapupdates andmade_nowlock-free fast-path guarded cleanly (index < self.count).Verification (Windows 11 + NVIDIA GeForce RTX 5080 on
ceb9e1f)cargo test --release -p victory-shader:220 passed; 0 failed(3ignored, includingpaged_resource_heap_emits_valid_dxil_with_view_map_srvDXIL validator check)cargo test --release -p victory-gpu descriptor:::37 passed; 0 failed(includingpaged_host_heap_maps_slots_past_portable_views_on_d3d12and allpager::tests)Imported from fxceless/victory-fork. Originally posted by POMXARK on 2026-11-26T19:35:01Z.
Merged
fxceless/victory-fork:mainintofeat/virtual-descriptor-pagerand resolved both merge conflicts (crates/victory-gpu/src/descriptor/host.rsrelease(id, first, n)+crates/victory-shader/src/emit/mod.rs).Re-verified on Windows 11 + NVIDIA RTX 5080:
cargo check -p victory-gpu -p victory-shader: PASScargo test --release -p victory-shader: 234 passed; 0 failed (4 ignored)cargo test --release -p victory-gpu descriptor::: 43 passed; 0 failedMarked Ready for Review.
Imported from fxceless/victory-fork. Originally posted by POMXARK on 2026-11-27T11:38:07Z.
Merged upstream
main(9a9091d1) and resolved conflicts cleanly (preserving upstreamMIRROR_NOT_VIEW,TwinState, and moving the view-map test intolower_tests.rs). Re-verified on Windows release:cargo check -p victoryOK,victory-shader253/253 PASS,victory-gpu -- descriptor::43/43 PASS.Imported from fxceless/victory-fork. Originally posted by POMXARK on 2026-11-27T11:38:34Z.
Merged upstream
main(9a9091d1) and resolved conflicts cleanly (preserving upstreamMIRROR_NOT_VIEW,LaneState, and moving the view-map test intolower_tests.rs). Re-verified on Windows release:cargo check -p victoryOK,victory-shader253/253 PASS,victory-gpu -- descriptor::43/43 PASS.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.