Skip to content

test(agc): expect no commit charge on macOS - #12262

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
tkcm01:test/agc-overlay-commit-macos
Oct 29, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
tkcm01:test/agc-overlay-commit-macos

Conversation

@tkcm01

@tkcm01 tkcm01 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What

Since #10487, ReadCommitCharge (Execution/src/PerformanceOverlay.cpp) reads Committed_AS and CommitLimit from /proc/meminfo on every host other than Windows. macOS has no /proc, and it has no system commit charge or commit limit. So the function returns nothing there, and page 2 leaves the commit part of its COMMIT line out, which is what it does for any source a run doesn't have. Only the tests assumed a reading:

  • agc_performance_overlay_statistics required one on every system and fails with the system's commit charge and limit cannot be read.
  • agc_performance_overlay required the first page 2 sample to hold one.

On macOS the statistics test now requires no reading. The page 2 test requires the sample to hold a reading exactly when ReadCommitCharge returns one, the same way the next check ties host imports to the device's support. USAGE.md now says what the line shows on macOS. The overlay's code is unchanged. Linux and Windows still require a reading in the statistics test.

This follows #9971, which read the RAM line from task_info on macOS. No macOS figure maps onto a commit charge, so this change doesn't invent one. Announced on #1.

Tested

macOS 27.0.1 (26A434), Apple M4 (10-core GPU), Apple clang 21.0.0, x86-64 Release build under Rosetta 2, MoltenVK 1.4.2 from the Vulkan SDK 1.4.363.0. libSceAgcDriver doesn't link on macOS from main alone, so the tree is main 9fc181dde5 plus the open PRs @imellag listed on #1 (#7631, #7804, #10552, #11249, #11447, #10669, #11554) and #12076. The overlay source and both tests are the same there as on main.

  • ctest -R '^agc_performance_overlay(_statistics)?$' -V with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:
    • Without this change, 3 of 3 runs: the system's commit charge and limit cannot be read, and page 2's first sample does not read the commit charge, the unimplemented calls, the compile backlog and the present mode.
    • With it: both pass 5 of 5. The later page-fault checks also pass on macOS.
    • Validation messages: the same four VUID-VkDeviceCreateInfo-pProperties-04451 lines without and with the change, from the tests' own instance, which doesn't enable VK_KHR_portability_subset. This change adds none, and the validation layer was found.
  • Full ctest -j4 --timeout 120 with Vulkan: 2584 tests. Without the change, 61 failed. With it, 60 failed: the two overlay tests now pass, and guest_jxr_stream failed once. That test is a flake: it also aborts without this change (once in 5 runs alone with --repeat until-fail:30), and this change doesn't touch it.
  • Windows, through the fork's Build workflow on this change merged with main: the 464 selected tests passed. agc_performance_overlay_statistics passed; agc_performance_overlay skipped because the runner has no GPU.
  • python3 tools/check_conventions.py --base upstream/main: passed. tools/pr_overlap.py lists only PRs that touch other parts of USAGE.md, and feat(agc): scale the presentation with FSR 1 under ANYPS5_UPSCALE=fsr #10043, which doesn't touch these lines.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Apple M4 (10-core GPU), MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), macOS 27.0.1
  • AI-assisted: yes

🤖 Generated with Claude Code

ReadCommitCharge reads /proc/meminfo outside Windows, and macOS has no
/proc, so it returns nothing there and page 2 leaves the commit part of
its COMMIT line out, as it does for any source the run doesn't have.
The statistics test required a reading on every system, and the page 2
sampler test required the first sample to hold one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tkcm01 tkcm01 mentioned this pull request Oct 28, 2026
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 3786 docs/user/USAGE.md
PR 5021 docs/user/USAGE.md
PR 5925 docs/user/USAGE.md
PR 6924 docs/user/USAGE.md
PR 7642 docs/user/USAGE.md
PR 9345 docs/user/USAGE.md
PR 9508 docs/user/USAGE.md
PR 10193 docs/user/USAGE.md
PR 10861 docs/user/USAGE.md
PR 10920 core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp
PR 10970 docs/user/USAGE.md
PR 10983 docs/user/USAGE.md
PR 11107 docs/user/USAGE.md

@github-actions github-actions Bot added docs agc libSceAgc* labels Oct 28, 2026

@MarcZX10 MarcZX10 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.

The changed tests now require a commit-charge sample exactly where the platform provides one, and the documentation states that macOS shows page faults without a COMMIT value. The production overlay is unchanged. The reported macOS validation-layer runs compare baseline and change, and current Windows CI passes; conventions and intake checks pass as well. No blocking issue found.

@maskym

maskym commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Windows + NVIDIA result for head c3814cb7a4, merged into main 3b979d42a9 (the PR's GPUs tested line names no NVIDIA run on Windows).

This PR's own tests: agc_performance_overlay (1.81 s), agc_performance_overlay_statistics, _device_selection and _device_selection_cpu, all passed.

Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER (vendor 0x10de, device 0x1e84; Vulkan loader 1.4.357 from the NVIDIA driver 621.01), Khronos Validation Layers nightly 1.4.366 (b2b44c0d37) through VK_ADD_LAYER_PATH, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, BUILD_TESTING=ON, Ninja. Build clean.

Same focused run on main 3b979d42a9 and on this tree, same machine and GPU: VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, VK_LOADER_DEBUG=error,warn,layer, ctest --test-dir build -R '^(agc|guest_video_out|video_out)' --parallel 4 -V.

The tree also carried the open PRs #12298, #12272, #12256, #12250, #12234, #12228, #12211, #12210, #12209, #12208, #12207, all merged cleanly, so the run is a joint one. Not run on a PS5.

AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine.

@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the diff against ReadCommitCharge (no /proc/meminfo on macOS, so it returns nothing and the overlay already omits the commit part), the two test changes and the USAGE.md line; Linux and Windows still require a reading, and Windows CI plus @maskym's NVIDIA run pass; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants