fix(descriptor): honor VICTORY_DYNAMIC_SLOTS on PORTABLE_VIEWS hosts and port VICTORY_RAW_VIEW_CLAMP #255
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!255
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-255"
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?
@Vladimir-Human on GitHub · 2026-11-27 12:31 UTC · original
Vladimir-Human:fix/nvidia-dynamic-slots-and-foliage-chroma→main· +828 −27 · 3 files · 1 commits · openSummary
Scoped strictly to descriptor-heap dynamic slot sizing and OOB raw buffer view clamping (the ambient chromatic scrub was split out into a separate opt-in PR per review feedback; related to #168):
dynamic_slots()off-by-one onPORTABLE_VIEWS-capped hosts (descriptor/host.rs):probe_view_limit->PORTABLE_VIEWS = 1_000_000),null == 999_999 < PORTABLE_VIEWS, so the previousif null < PORTABLE_VIEWS { return DYNAMIC; }branch unconditionally ignoredVICTORY_DYNAMIC_SLOTSand hard-capped dynamic slots at262,144(causingDynamicDescriptorTabledraw drops under heavy frame demand in #168).dynamic_slots_fornow honors explicitVICTORY_DYNAMIC_SLOTSup toPORTABLE_DYNAMIC_CAP(524,288, preserving at least475,711title slots and preventingnull - extraunderflow) and uses spare headroom without shrinkingcountwhen unset.HostHeap::newsubprocess regression test (VICTORY_DYNAMIC_SLOTS=393216).VICTORY_RAW_VIEW_CLAMP(VIctory-NVIDIAaec85ef) + diagnostics meter (host.rs):raw_view_range,raw_at,raw_uav_at) against the backing resource size and 16-byte alignment, substituting safe null raw descriptors for past-end/unaligned/empty views and shortening tail-straddling views (withVICTORY_RAW_VIEW_CLAMP=0kill-switch).Changed Files
crates/victory-gpu/src/descriptor/host.rs:dynamic_slots_forfix,VICTORY_RAW_VIEW_CLAMP, unit +HostHeap::new+ HW/WARP OOB clamp tests.crates/victory-gpu/src/host.rs:raw_view_clampsdiagnostics frame-line counter.crates/victory-gpu/src/indirect.rs:#[cfg(test)]pub(crate)visibility onWarpHarness::onfor test reuse.Verification
Verified on local D3D12 hardware (NVIDIA GeForce RTX 4070 SUPER) and WARP (
VICTORY_D3D12_DEBUG=1,--test-threads=1,0D3D12 debug errors):cargo clippy -p victory-gpu --all-targets --locked -- -D warnings(default &--features diagnostics): 0 warnings.cargo test -p victory-gpu --locked descriptor::host::tests -- --test-threads=1: 57/57 passed (default &diagnostics, hardware + WARP).cargo run -p xtask --locked -- policy&cargo test -p xtask --locked: 11/11 passed.@TaynanGT on GitHub · 2026-11-27 12:42 UTC · original
@Vladimir-Human The portable-heap limit and the raw-view bounds have focused synthetic checks. I’d land those independently of the chroma change so we can measure the descriptor behaviour on its own. The chroma pass needs a matched moving shot of the foliage and still needs to preserve intended colour on sky, water and warm lighting.
fix(gpu): honor VICTORY_DYNAMIC_SLOTS on portable heaps, clamp raw views, scrub chroma spikes (#168)to fix(descriptor): honor VICTORY_DYNAMIC_SLOTS on PORTABLE_VIEWS hosts and port VICTORY_RAW_VIEW_CLAMP3986eb57e7tocdaaebc32f@Vladimir-Human on GitHub · 2026-11-27 13:32 UTC · original
Thank you @TaynanGT for the review! Split cleanly in
cdaaebc3:crates/victory-gpu/src/ambient.rscompletely from #255 so this PR is strictly focused on thedescriptor/host.rsdynamic_slots()PORTABLE_VIEWSfix andVICTORY_RAW_VIEW_CLAMP(+host.rsmeter andindirect.rstest visibility).VICTORY_AMBIENT_CHROMA_SCRUB=1), verified on D3D12 HW + WARP to preserve daylight, blue sky, coastal/deep water tones, warm sunset/lamp lighting, and natural/deep foliage bounce.-D warnings, default +diagnostics),descriptor::host::tests(57/57 HW + WARP, 0 D3D12 debug errors), andxtask policy.@TaynanGT on GitHub · 2026-11-27 13:37 UTC · original
@Vladimir-Human The split gives us a descriptor-only comparison in this PR and a separate visual change in #280. I’ll use the 57 descriptor checks as the functional baseline and keep the foliage comparison on the chroma branch.
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.