perf(gpu): WC metadata shadow, scoped copy barriers, dual-CCD list placement, resting filter & 512 late-list cap (Wave 9B) #425
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/425"
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 Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T07:49:35Z.
Wave 9B: Raw CPU FPS, VRAM Drain & Legacy Pipeline Library Guard
Ports verified GPL-3.0 upstream CPU/GPU frame-time optimizations cleanly onto MiniVI (
ab8e337) without regressing PRs #415, #417, #421, #422, or #423.Ported Optimizations & Upstream Attribution
ReTerryDavis/ReVIctory commit
1ee967b(GPL-3.0):crates/victory-gpu/src/cores.rs,crates/victory-gpu/src/list/thin.rs):parse_l3_cache_records(),l3_of_sets(),cache_cores()(VICTORY_CACHE_CORES=0to disable, on by default), andfast_by_cache()so uniform-efficiency-class dual-CCD X3D CPUs identify the larger-L3 CCD as fast sets.GetLogicalProcessorInformationEx(RelationCache, ...)records via raw-pointer offset reads (offset_of!(SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, Anonymous)8-byte header) so 56-byteRelationCacherecords (including the final record) are read safely without forming an 80-byte&SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXreference.list_other()(VICTORY_LIST_OTHER=0to disable, on by default),list_sets(), andcores::translates(), called fromlist/thin.rsworker startup so list translators run on non-fast sets (second CCD / E-cores) away from the submitting lane and its helpers.cores::tests::dual_ccd_cache_detection_and_list_other_placementandcores::tests::parse_l3_cache_records_reads_final_56_byte_record.crates/victory-gpu/src/descriptor/host.rs):stride_shadow: Box<[AtomicU32]>andaddress_shadow: Box<[AtomicU64]>toHostHeapand checks them inwrite_stride()/write_address()before issuing WCwrite_volatilestores, skipping redundant write-combining bus flushes when slot metadata is unchanged.crates/victory-gpu/src/host/place.rs):copy_barrier_desc(before, raytracing)andcopy_barrier()using an enhancedD3D12_GLOBAL_BARRIERscoped to shader/copy/indirect/index stages (plusD3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTUREwhencrate::hwrt::active()is true) and buffer accesses (excludingRENDER_TARGETandDEPTH_STENCILpipelines), falling back towait_for_all()when enhanced barriers orID3D12GraphicsCommandList7are unavailable.place_copy()andplace_source()transition barriers throughRec::barriers()instead of directResourceBarrier().host::place::tests::copy_barrier_desc_excludes_render_and_depth_targetscovering bothraytracing = falseandraytracing = true.Bits::has&RESTINGfilter (crates/victory-gpu/src/watch.rs):Bits::has()andstatic RESTING: Bitschecked inGuards::rests()before probingGuards::opened, set inGuards::opened_at(), and cleared on expiry inGuards::rests()(preservingrest.max(hot)semantics).watch::ask_holds::resting_filter_tracks_opened_blocks_and_clears_on_expiry.ReTerryDavis/ReVIctory commit
aefb79b(GPL-3.0, GPU parts only):crates/victory-gpu/src/host.rs):VICTORY_LATE_WAIT_LISTS(late_most()) default from 256 to 512 to prevent per-frame submission stalls waiting on lists in flight.Intentionally Skipped / Preserved from Prior MiniVI PRs
crates/victory-gpu/src/host/rec.rs(coalesced direct barriers with UAV/aliasing folding guards) is untouched;host/place.rsusesRec::barriers()andRec::deref()flushing viarec.cast::<ID3D12GraphicsCommandList7>().VICTORY_LANE_PRIORITY/VICTORY_HELPER_PRIORITY(Part::Lane/Helper/Beside) registration and tid-deduplication logic incores.rsis preserved intact.descriptor.rsbounded placed-view table/eviction, cross-watch-page descriptor mirroring,descriptor/host.rssingle-borrowMIRROR_CACHEwithviews_entry_alive/slot.touch(), andwatch.rsopen_resolved_with()alias open count (ALIASES[1]) are all preserved intact.1ee967b(N/A in MiniVI):soft.rswrite-watch filters (host/refresh.rs,shadow.rs,watch.rs),Claims/BUSYTTAS spinlocks (MiniVI uses 64-shardGUARD_SHARDS),host/scratch.rs,list/groups.rs, andlist/thin.rscalls < 512urgent-yield guard (none of these subsystems exist in MiniVI).aefb79b:apps/victory/build.rs,launcher.rs,Cargo.toml,Cargo.lock(zlib DLL compression — strictly out of scope).draw.rs(bake::Picks::These/aside::texture_pass_here/ahead::wait_idle): N/A in MiniVI (MiniVI uses synchronousBAKE_UPLOADwithBAKE_SERVEDfast-skip).vram.rs(plan()): N/A in MiniVI (MiniVI has novram.rs;host.rs::vram_keep_below()already uses 5_000 ms up to 95% and 600_000 ms belowline - 2%).tyr0nsur/Darnerf3840d7, PR #192, GPL-3.0): MiniVI'spipeline/library.rsonly loads from a singlelibrary_dir()with no adapter-scoped subdirectory / legacy-root fallback, so PR #421'smade_by_another_build()(VICTORY_LIBRARY_KEEP_OLD=1) already guards the sole library directory for bothhost-pipelines.binandhost-pipelines.next.Verification
cargo xtask policy: PASS (asset policy: 365 files ok)cargo clippy --workspace --all-targets -- -D warnings: PASS (0 warnings, 0 errors)cargo test -p victory-gpu --lib -- cores place: 53 passed, 0 failed, 2 ignoredcargo test -p victory-gpu --lib -- cores::tests host::place::tests host::rec::tests pipeline::library::tests::a_library_from_another_builds_translator_is_not_loaded: PASScargo test -p victory-gpu --lib -- --test-threads=1 local_shapes_cache_resolves_and_deduplicates_across_threads resting_filter_tracks_opened_blocks_and_clears_on_expiry: 2 passed, 0 failedcargo test -p victory-gpu --lib -- host::batch_tests:: descriptor::tests::(excluding parallellocal_shapes_cache, verified serialized above): 34 passed, 0 failed, 1 ignoredcargo test -p victory-gpu --lib --features diagnostics -- open_resolved_with_counts_cleared_clean_aliases resting_filter_tracks_opened_blocks_and_clears_on_expiry: 2 passed, 0 failedImported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T08:02:02Z.
Triage (
7c1ed141, CIcheckPASS,MERGEABLE):+351/-26across 6 files, zero opt-in toggles —VICTORY_CACHE_CORES=0&VICTORY_LIST_OTHER=0are default-on with=0kill-switches,VICTORY_LATE_WAIT_LISTSraises default256 -> 512): dual-CCD L3-cache placement, WC metadata shadow (stride_shadow/address_shadow), scopedD3D12_GLOBAL_BARRIERbuffer-copy barriers, lock-free resting filter (watch.rs), and 512 late-list cap.crates/victory-gpu/src/host.rswith#426(whichever merges second will need a quick rebase).triage: needs gpu test— awaiting Gate 2 Audit (#282) + Gate 3 1440p/4K plain---releaseA/B verification.