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

Open
github-bot wants to merge 4 commits from github-bot/gh-613 into main AGit
Owner

@⁠JoeY54 on GitHub · 2026-11-28 01:52 UTC · original
JoeY54:test/vn03e-combined → main · +1288 −7 · 10 files · 4 commits · open

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.

**@⁠JoeY54** on GitHub · 2026-11-28 01:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/613) `JoeY54:test/vn03e-combined` → `main` · +1288 −7 · 10 files · 4 commits · open 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...480939379f42537dda12c004c85e699938f3bc57). 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/480939379f42537dda12c004c85e699938f3bc57/docs/vn03e-combined.md). AI-assisted by OpenAI Codex; tests manually executed by the owner.
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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/613/head:github-bot/gh-613'
git switch 'github-bot/gh-613'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-613'
git switch 'github-bot/gh-613'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-613'
git switch 'github-bot/gh-613'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-613'
git switch 'main'
git merge --squash 'github-bot/gh-613'
git switch 'main'
git merge --ff-only 'github-bot/gh-613'
git switch 'main'
git merge 'github-bot/gh-613'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.