Recover 12 acyclic wave32 shaders, expand NVIDIA dynamic slots, and add VRAM-tiered MiniVI launcher #1
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1"
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 Forkei on 2026-11-27T22:50:39Z.
Summary
Cleanly rebased on
Androtim/MiniVIf3c0c33(including upstreamtrustno1-coder/VIctory-NVIDIA 64d4931: water light without dark blocks, F1 instant save, PS4 pads, placed-view padding fix, audio DSP convolutions, early arena reservation, and memory switches), plus Iterations 4–6 visual, shader, VRAM, CPU, HLE memory safety, loader, and launcher improvements.What this PR adds
crates/victory-shader/src/emit/lower.rs: Starts the code constant table after the program's instructions unless a fixed offset reads inside code (preventing RTX 5090 Xid 13 faults and multi-GB driver local-memory bloat on NVIDIA GPUs).crates/victory-shader/src/emit/lower.rs,crates/victory-gpu/src/shader_cache.rs: Clamps pixel float colour outputs to[-65024, 65024](VICTORY_HDR_CLAMP=0to disable) to avoid FP16+Inf/tonemapper black blobs/glints.crates/victory-shader/src/emit/lower/amd.rs: Gives uniform buffergetDimensionsqueries an independent non-uniform heap handle (not counted innonuniform_handles), fixing the AMD RDNA 4amdxc64compiler crash on 10 compute shaders (PR #559 / DexNom PR 62).crates/victory-gpu/src/compose.rs,crates/victory-gpu/src/ambient.rs: Adds bit-level NaN/Inf-safe saturate (VICTORY_COMPOSE_NAN=0to disable) in the two-plane composer and scrubsNaN/Inf/negative values on bothfoundandwasinambient::raise.calculateLOD& Wave32 Widening (includes PR #560):PSV0's string table to matchdxil.dll1.6/1.7 rules, reconciled unused floatTEXCOORDinputs sharing a packed pixel row with unused constant/system inputs (SV_IsFrontFace), appliedPSV0output interpolation modes to mesh shaders (HwStage::Ms), emittedundeffor unused coordinate channels on arraycalculateLOD.f32.group == 64) compute shaders on Wave32 GPUs (hair shadow masks, water volumetrics transmission, particle/decal trails) without widening loop back-edges, and fixedemit_programdiscardingNEEDSwhenVICTORY_LOOPS_WAVEstays atwave64(too_wide, PR #560 regression test included).x86-64-v3Baseline, Zero-Copy Single-Flight Shader Cache & GPU Hot-Path Speedups (includes PRs #537, #547, #548, #552, #516, #532, #558, #481, #512, #497, #498):-C target-cpu=x86-64-v3(AVX2/BMI1/BMI2/FMA) in.cargo/config.tomlalongside single-flight zero-copy chunkedCache::get_or_convert_chunksincrates/victory-pipeline/src/cache.rsandshader_cache.rs(while keepingpanic=unwindforcatch_unwindsafety invictory-gpu).pool::is_pooled(&resource)so committed fallback textures don't hitE_INVALIDARG(0x80070057), gatesCountingGlobalAllocbehind#[cfg(feature = "diagnostics")], uses runtime-dispatched AVX2 non-temporal stores (_mm256_stream_si256) for snapshot copies>= 64 KiB, defaultsVICTORY_FAULT_UNLOCKEDon (=0to disable) while hoistingsoft_runsout ofGUARDS.lock(), and scalestexspk_cap_ms/VICTORY_TEXTURE_CATCHUPwith >12 GiB VRAM headroom and catch-up backlogs.VICTORY_DLSS_RANGE=0to disable), enforcesVICTORY_WC_NO_BACK_MIN_KBcutoff forVICTORY_WC_BAR=1(=2legacy), addsrtx_generation()workstation RTX detection, device method0x218loose FSPX compute pipelines + scalar bit ops (PR #506), expanded NVIDIA dynamic slots (262,144 -> 278,528), hot-path scratch allocation removal (PR #498), pipelinewait_once(PR #497),VICTORY_LAZY_COMPARE_MB(PR #501), andVICTORY_WINDOW_GROW=1(PR #477).VICTORY_KEEP_RAM_GB(includes PRs #538, #551, #541, #549, #533, #572, #91, #568):XMemMapPhysicalPages,alias_as, andmap_aliasesvalidate all source pages before unmapping destinations.crates/victory-loader: Supports multiple reachableSTUBSregions forclzeroloops >2 GiB apart (console_insn.rs), useschecked_addon TLS/DIR64 RVAs (prepare.rs), pauses mouse capture/warp while dragging/resizing (lifecycle.rs), updates Series X 1440p UI scaling (native_1440p.rs), makesvictory warminheritvictory-settings.txt+playdefaults (warm.rs), capswindows_own_runtime_tells_its_versioncleanly (main.rs), and addsVICTORY_KEEP_RAM_GB(SetProcessWorkingSetSizeExhard minimum working set inrun.rs/play.rs/play-minivi.ps1 -KeepRamGb).play.rs,menu.rs,scripts/play-minivi.ps1,play-foxhound.ps1,play.ps1,Play-VIctory.cmd— includes PRs #490, #544, #542, #511, #563):731a39171b568298) by default, adds HEAT HAZE / FACES F1 menu toggle, stops making Streamline/FSR3 FG swapchains ready when FG is off unless-FrameGenReady/--framegen-readyis requested, defaultsVICTORY_CARD_AWAKE=0, keepsVICTORY_HOME/VICTORY_ADAPTER/VICTORY_KEEP_RAM_GBacross restarts, and passesVICTORY_MENU_EXE/VICTORY_MENU_CWDacross F1 restarts so apostrophes and working directories survive.Rig Specs Tested On
Run Settings & Profile
release(x86-64-v3) @2bd9eed(rebased ontof3c0c33)series-s/1080p(native-1080p), plus retail1440ppatch verificationoffDLSS qualityDLSS 4xVICTORY_*Overrides:.\scripts\play-minivi.ps1 -Build release -Preset native-1080p -Dlss quality -FrameGen 4x(VICTORY_EARLY_DEPTH=1,VICTORY_NAN_SCRUB=1,VICTORY_HOST_WAVE=32)shaders.rpfcorpus DXIL validation, targeted RTX 5070 Ti PSO validation on RDNA4-touched compute shaders, fullcache-minivishader cache rebuild (25,773shaders), full workspace clippy & unit tests.Measurements & Verification
victory.exe translate --validate(shaders.rpf,VICTORY_HOST_WAVE=32, SDK10.0.26100.0dxil.dll):--validate --pipelines(f16876929fa64f9f,878933b499cfa14d,a4df980a1c65fdbe): 3 / 3 emitted, validated, and created valid RTX 5070 Ti PSOs.victory.exe shaderscache rebuild (VICTORY_EARLY_DEPTH=1,VICTORY_NAN_SCRUB=1): 25,773 shaders cached cleanly (212untranslated) in 193 s (down from 211 s prior tox86-64-v3+ zero-copy chunk cache).0offline validator/PSO regressions; fullx86-64-v3release binary builds cleanly (2m 27s).cargo clippy --workspace --all-targets --locked -- -D warnings(and--all-features)cargo test --locked -p xtask(6 passed, 0 failed)cargo test -p victory-shader --locked -- --test-threads=1(297 passed, 0 failed, 4 ignored)cargo test -p victory-gpu --locked -- --test-threads=1(464 passed, 0 failed, 37 ignored)victory26/26,census2/2,victory-core13/13,victory-formats42/42,victory-game3/3,victory-hle185/185+ integration1/1,victory-loader49/49+ integration2/2+1/1,victory-pe36/36,victory-pipeline12/12)play-minivi.ps1,play-foxhound.ps1,play.ps1)Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T00:43:35Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-rebase· CI (check):noneThis PR no longer merges cleanly into
main.To change the verdict: Rebase onto current
mainand resolve conflicts; CI and triage will run again automatically.Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T01:37:56Z.
Closing as superseded by newer merged/tracked work per #276 (Core Architecture Rewrite Backlog).
Pull request closed