test(gpu): validate combined SR/FG and bound readback allocation #613

Manually merged
github merged 8 commits from github-bot/gh-613 into main 2026-11-29 08:21:24 +00:00 AGit
Owner

@⁠JoeY54 on GitHub · 2026-11-28 01:52 UTC · original
JoeY54:test/vn03e-combined → main · +1579 −7 · 11 files · 8 commits · merged 2026-11-29 08:16 UTC

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 bc11036eb6 shares 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.

**@⁠JoeY54** on GitHub · 2026-11-28 01:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/613) `JoeY54:test/vn03e-combined` → `main` · +1579 −7 · 11 files · 8 commits · merged 2026-11-29 08:16 UTC 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 111c14ee32b0ab2165b99f78a06aeef4a0264597. This branch includes that prerequisite because it is not merged; #527 itself is unchanged. [E-only diff](https://github.com/JoeY54/VIctory-NVIDIA-contrib/compare/111c14ee32b0ab2165b99f78a06aeef4a0264597...bc11036eb60daf191f6adf694a25a6a6753ce29c). 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](https://github.com/JoeY54/VIctory-NVIDIA-contrib/blob/bc11036eb60daf191f6adf694a25a6a6753ce29c/docs/vn03e-combined.md). AI-assisted by OpenAI Codex; tests manually executed by the owner. ## Shared-token and async follow-up Head bc11036eb60daf191f6adf694a25a6a6753ce29c shares 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.
Add initialized input textures, full RGB readback checks, strict failures and a skip-evaluation negative control. Use exact SDK render sizes and a single requested-mode query; report bounded warm-up and synchronized host timings. Shut down capability-only checks without creating a device.

Co-authored-by: OpenAI Codex <[email protected]>
Read the shared initialized plan instead of the initializer's return type, compatible with the interface change proposed in PR237. Record the focused runtime matrix, negative controls, timing limits and final smoke rerun.

Co-authored-by: OpenAI Codex <[email protected]>
Add upscaler-check --validate-framegen [--lifecycle] [--frames N] [--focus-wait S]:
an original scrolling fixture with depth, motion and HUD-less colour, presented
through Streamline's proxy at the requested multiplier and paced to 16.7 ms,
with SDK status, per-present generated-frame counts and DXGI's own present
count checked together.

DLSS-G makes no frames while its window is not foreground (Streamline:
'DLSS-G disabled: window not focused', status 0); earlier FG checks therefore
saw one frame per present at every multiplier, and PresentMon agreed. The probe
waits for focus and for DLSS-G to resume (after a resize or new swap chain),
and fails an unfocused phase with that reason.

One pause of about 7 presents is accepted per phase: DWM promoting the window
to a hardware plane (Independent Flip). Lifecycle covers off, on, maximum,
off again, resize, resize back and swap-chain recreation. SDK and DXGI counts
measure presentation, not generated-image correctness.

The fixture reuses one command list and paces from a deadline: host time per
frame p50 1.13 -> 0.86 ms with FG, present interval 18.1 -> 16.8 ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: OpenAI Codex <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:57:27 +00:00
Keep unwaited SR opt-in; terminate through the host GPU failure path if a post-submit signal or completion wait cannot establish safe resource reuse. Add slow-interval and peak-memory diagnostics.

Co-authored-by: Claude Opus 5.5 <[email protected]>

Co-authored-by: OpenAI Codex <[email protected]>
No textual conflicts. Three of main's changes need the probe code to
follow them:
- the swap chain sits in Presentation's presenter field (main's retry of
  failed swap-chain creation): the present helpers reach it there;
- present_planes takes whether the frame is a movie: the synthetic probe
  frame is not;
- an optimal-settings answer is recorded with the mode's minimum and
  maximum render sizes beside the optimal one, as streamline records it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings #527's update for main into this branch. The conflict is the
single-plane present in the frame-generation probe: it takes main's movie
argument (false) and keeps this branch's closing brace. The combined
present and the combined probe's optimal-settings record follow main the
same way as #527's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github manually merged commit 33f2c4162c into main 2026-11-29 08:21:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!613
No description provided.