Skip to content

test(runtime): check complete frames after held presents (Codex) - #5928

Merged
shayderrr merged 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:codex/held-present-full-frame
Nov 23, 2026
Merged

shayderrr merged 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:codex/held-present-full-frame

Conversation

@evilclanker9000

@evilclanker9000 evilclanker9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: BUILD-1898 / EGEN-HELD-PRESENT-FULL-FRAME

Depends on: #3815 (merge-order overlap in the held-work section; the watchdog and image verdict are independent).

What and why

Step 2b of vk_presenter_sync_test used only the center pixel to verify the old frame, the composed frame after the held queue is released, and the final blit. A bad edge pixel or a capture truncated after the center therefore passed. Reuse the full-frame comparator for all three captures and require the reported extent to match the swapchain. Keep RGB tolerances at 2, 12, and 2 and retain the existing color and size checks in step 2.

Tested

  • Built and ran the actual vk_presenter_capture_colour_test.cpp on a Codex Linux CPU, with warnings as errors, on both commits. All four CTest registration tests passed on both commits.
  • An isolated CPU harness compiled the actual step 2b comparison from main and from fb0c2866. In both RGBA and BGRA, main accepts a stale edge pixel, 14 of 15 pixels, or transposed dimensions. The new check rejects each and accepts the correct three-frame sequence. A wrong center pixel fails before and after.
  • Independent Windows/Vulkan run at fb0c2866 on RTX 4070 Ti, NVIDIA 610.88, MSVC 19.44, and Vulkan validation 1.4.363. All three full-frame comparisons in step 2b passed without skips or validation errors. The vk_presenter_capture_colour CPU test and the positive and negative synchronization validation controls also passed. Independent review.

AI-assisted: yes

AI-assisted.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

@SirKingg SirKingg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent Windows/Vulkan validation and review of head fb0c2866a68868d6dbf1218d7c26cafe9399a9b8. NVIDIA GeForce RTX 4070 Ti, driver 610.88; MSVC 19.44, Vulkan SDK/validation layer 1.4.363.

  • vk_presenter_sync: PASS, no skip, with LEONIDA_VK_VALIDATION=1 and 0 validation errors. The step 2b success line is reached only after all three read_back calls and full-frame comparisons (old, composed, and final blit) succeed.
  • vk_sync_validation: PASS; deliberately missing barrier reported a hazard and the synchronized case reported none, confirming synchronization validation was active. vk_presenter_capture_colour: PASS.
  • Separate CPU-only synthetic 5x3 RGBA and BGRA inputs for each of the three expected colours: valid image accepted; independently corrupted edge pixel and one-pixel truncation rejected. This is not a GPU capture modification.
  • #3815 remains an open overlapping change; this run tested this PR head alone, not the combined/rebased result. No game files. AI-assisted.

@LocranKing

Copy link
Copy Markdown
Contributor

Tested fb0c2866a on NVIDIA GeForce RTX 3060 Ti (driver 621.01, Windows 11 Home Build 26200, MSVC 14.44.35207, Vulkan SDK 1.4.363.0, LEONIDA_VK_VALIDATION=1, VK_LOADER_LAYERS_DISABLE=~implicit~): pass

  • scripts\build_runtime.ps1: clean build (built gta6rt.exe, 0 warnings in PR files)
  • vk_presenter_capture_colour_test.exe: exit 0
  • vk_presenter_sync_test.exe: exit 0 (vk_presenter_sync_test: ok, 0 Vulkan validation errors)
  • ctest --test-dir runtime/build -R ^(vk_presenter_capture_colour|vk_presenter_sync)$ --output-on-failure -V: 2/2 passed (0.89s)

AI-assisted. No game files.

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Reviewed test coverage in PR #5928: test(runtime): check complete frames after held presents (Codex).

Scope: runtime/test/vk_presenter_capture_colour.h, runtime/test/vk_presenter_capture_colour_test.cpp, runtime/test/vk_presenter_sync_test.cpp
Diff: +35 / -15 across 3 file(s).

The change stays inside the stated scope and the touched files line up with the description. No unrelated production paths are pulled in, and the stated behavior is directly exercised by the diff. I'm approving this one.

Reviewed by shayderrr via automated batch review.

@shayderrr

Copy link
Copy Markdown
Collaborator

Thanks @evilclanker9000 - I went through test(runtime): check complete frames after held presents (Codex) and the diff around runtime/test/vk_presenter_capture_colour.h. The change is tight, the rationale matches the code, and there's nothing here that needs another pass from my side. Approved and squash-merging it into main now. Nice work.

@shayderrr
shayderrr merged commit a09865c into ItsNotRexed:main Nov 23, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants