test(gpu): validate combined SR/FG and bound readback allocation #613
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/613"
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 JoeY54 on 2026-11-28T01:52:29Z.
The existing probes validate SR and frame generation separately. This adds
--validate-framegen --combined: each initialized synthetic SR output feeds the HUD-less FG input and two-plane compositor, with first/final RGB reference checks and an expected-failure skip-SR control.Readback now reserves packed storage before mapping and restores the actual entry resource state in one copy submission, removing two extra synchronized submissions from the combined check.
Depends on #527, pinned at
111c14ee32. This branch includes that prerequisite because it is not merged; #527 itself is unchanged. E-only diff.Validation: owner-run RTX 5090 Windows debug build, four focused probe CPU tests, scoped all-targets Clippy (exit 0 with warnings), and asset policy (293 files) passed. Positive 120-frame smoke and expected skip-SR failure passed. Baseline and optimized matrices each passed five processes: 600-frame 2x/6x, seven lifecycle phases, and two 3600-frame 2x runs. Matching frame-count SR hashes agree. Hardware tests used the local integration of #527 plus this patch; the public cherry-pick has the same stable patch ID and identical probe files, but was not separately rebuilt or hardware-tested.
The 1 Hz sampled end-stage private-memory increment decreased from 46.78 MiB to 31.62/31.63 MiB (about 15.15 MiB less). This is not a whole-process/VRAM percentage, instantaneous peak measurement, or FPS claim. One optimized lifecycle interval maximum of 42.739 ms is retained.
Coverage is static synthetic SR output and FG presentation counts, not generated-image quality, graceful fallback, device-loss recovery, fullscreen, same-process SDK reinitialization or leak freedom. Lifecycle replacement disables FG between fixtures. Full workspace/all-features suites were not rerun. Details: validation notes.
AI-assisted by OpenAI Codex; tests manually executed by the owner.
Shared-token and async follow-up
Head
bc11036eb6shares one SR/FG token, adds opt-in unwaited SR and slow-interval/peak-memory diagnostics. The default remains waited. If Signal fails after queue submission, or completion waiting fails/reports device removal, the probe takes the existing fatal host GPU path instead of releasing resources or resetting the allocator without established completion. This is strict failure handling, not recovery.Final private integration: cargo check/build passed; scoped all-targets Clippy with -D warnings passed; 4 probe unit tests and the existing host fence-removal classification test passed; asset policy passed (305 files). Six RTX 5090 cases passed: shared sync 2x 600, shared async 2x 600, legacy split sync 2x 600, shared async 6x 600, all seven async lifecycle phases, and the expected skip-SR negative failure. All positives exited 0 and the negative exited 1 with NaN detection and orderly shutdown. Matching 600-frame SR hashes agree. Timing was not a controlled benchmark; CPU test compilation overlapped part of the GPU matrix.
The public patch has the same stable patch ID as the private integration and passes cargo check -p victory-gpu (inherited warnings). GPU runs apply to the private integration; the public transplant was not separately hardware-tested. This final run did not repeat GBV, the full workspace, 18000 frames, or actual Signal/device-loss fault injection. Earlier follow-up evidence covers 21 configurations including GBV and a five-minute run, on its earlier revision.
Graceful feature fallback, device-loss recovery, same-process SDK reinitialization, fullscreen and motion/temporal image quality remain outside the completed static-probe validation. This update does not claim full acceptance of those gates.
Acceptance extensions
The latest commit adds opt-in initialization-time degradation (unsupported FG multiplier -> SR-only; SR fixture initialization error -> native FG fixture), a moving split-boundary SR reference with matching motion vectors, and a bounded PowerShell process supervisor. The recovery strategy is explicitly fresh-process restart; same-process SDK/device reconstruction is deferred.
Final private integration: five GPU cases passed (strict/degraded FG cap, strict/degraded SR init,60-frame moving reference); recovery passed after one injected fault, and persistent faults exhausted exactly two attempts. Five focused CPU tests include stale-image and NaN rejection. Build, strict scoped Clippy and asset policy306files passed. Public cargo check passes with existing warnings; private/public patch IDs match. Hardware evidence applies to the private integration, not a separate public hardware run.
Bounds: degradation currently covers those initialization cases, not arbitrary runtime SR/FG failure or missing FG initialization. Dynamic checking covers SR pixels away from an8-pixel edge band; generated FG image pixels and disocclusion quality are not captured. Each-frame readback perturbs pacing, so no performance conclusion. Recovery tests used controlled fault injection, not a physical GPU reset. These limitations are retained explicitly; the original broad E goals are not silently declared complete.