fix(descriptor): honor VICTORY_DYNAMIC_SLOTS on PORTABLE_VIEWS hosts and port VICTORY_RAW_VIEW_CLAMP #255
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from TaynanGT/Vice-Tay. Originally posted by Vladimir-Human on 2026-11-27T12:31:15Z.
Summary
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.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T12:42:01Z.
@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.
Imported from TaynanGT/Vice-Tay. Originally posted by Vladimir-Human on 2026-11-27T13:32:48Z.
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.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T13:37:26Z.
@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.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:14:44Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed