fix(descriptor,ambient): honor VICTORY_DYNAMIC_SLOTS on PORTABLE_VIEWS hosts and add opt-in chroma scrub #48
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/48"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Vladimir-Human on 2026-11-27T14:09:26Z.
Summary
Two targeted fixes for NVIDIA /
PORTABLE_VIEWShosts (with all new behavior strictly opt-in and existingVICTORY_RAW_VIEW_CLAMPaec85efandambient.rs826ba15magenta/violet paths preserved verbatim):dynamic_slots()off-by-one onPORTABLE_VIEWS-capped hosts (crates/victory-gpu/src/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 silently ignoredVICTORY_DYNAMIC_SLOTSand hard-capped dynamic slots at262,144(causingDynamicDescriptorTabledraw drops under heavy frame demand).dynamic_slots_fornow honors explicitVICTORY_DYNAMIC_SLOTSup toPORTABLE_DYNAMIC_CAP(524,288, keeping at least475,711title descriptor slots and preventingnull - extraunderflow) while never shrinkingcountwhen unset.HostHeap::newsubprocess regression test (VICTORY_DYNAMIC_SLOTS=393216), and a D3D12 HW/WARP OOB raw-view clamp execution test (raw_view_clamp_bounds_srv_and_uav_on_hardware_and_warp) exercisingraw_view_range,raw_at, andraw_uav_at(aec85efproduction code left untouched).VICTORY_AMBIENT_CHROMA_SCRUB=1for acid-green and electric-cyan probe spikes (crates/victory-gpu/src/ambient.rs):826ba15magenta/violet filtering verbatim unlessVICTORY_AMBIENT_CHROMA_SCRUB=1is set (passed cleanly via root constantuint chroma_scrub).g > 2.5 * max(r, b) && g > 0.02) and electric-cyan (r < 0.35 * min(g, b) && max(g, b) > 0.02) spikes left by unbuilt/stale screen probes on thin foliage edges.crates/victory-gpu/src/indirect.rs):#[cfg(test)] pub(crate) fn ononWarpHarnessfor test reuse.Verification
Verified on D3D12 hardware (NVIDIA GeForce RTX 4070 SUPER) and WARP (
VICTORY_D3D12_DEBUG=1,--test-threads=1,0D3D12 debug layer errors):cargo clippy -p xtask --all-targets --locked -- -D warnings: 0 warnings;cargo clippy -p victory-gpu --all-targets --locked(default &--all-features): 0 warnings inambient.rsand 0 new warnings indescriptor/host.rs/indirect.rs.cargo test -p victory-gpu --locked descriptor::host::tests -- --test-threads=1: 51/51 (HW default, HW--all-features, WARP).cargo test -p victory-gpu --locked ambient::tests -- --test-threads=1: 7/7 (HW default, HW--all-features, WARP).cargo run -p xtask --locked -- policy&cargo test -p xtask --locked: 6/6 passed.