Repository navigation
test(agc): expect no commit charge on macOS - #12262
Conversation
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>
|
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
Windows + NVIDIA result for head This PR's own tests: 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 Same focused run on
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. |
|
Checked the diff against |
What
Since #10487,
ReadCommitCharge(Execution/src/PerformanceOverlay.cpp) readsCommitted_ASandCommitLimitfrom/proc/meminfoon 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 itsCOMMITline out, which is what it does for any source a run doesn't have. Only the tests assumed a reading:agc_performance_overlay_statisticsrequired one on every system and fails withthe system's commit charge and limit cannot be read.agc_performance_overlayrequired 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
ReadCommitChargereturns 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_infoon 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.
libSceAgcDriverdoesn't link on macOS frommainalone, so the tree ismain9fc181dde5plus 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 onmain.ctest -R '^agc_performance_overlay(_statistics)?$' -VwithANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:the system's commit charge and limit cannot be read, andpage 2's first sample does not read the commit charge, the unimplemented calls, the compile backlog and the present mode.VUID-VkDeviceCreateInfo-pProperties-04451lines without and with the change, from the tests' own instance, which doesn't enableVK_KHR_portability_subset. This change adds none, and the validation layer was found.ctest -j4 --timeout 120with Vulkan: 2584 tests. Without the change, 61 failed. With it, 60 failed: the two overlay tests now pass, andguest_jxr_streamfailed 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.main: the 464 selected tests passed.agc_performance_overlay_statisticspassed;agc_performance_overlayskipped because the runner has no GPU.python3 tools/check_conventions.py --base upstream/main: passed.tools/pr_overlap.pylists only PRs that touch other parts ofUSAGE.md, and feat(agc): scale the presentation with FSR 1 under ANYPS5_UPSCALE=fsr #10043, which doesn't touch these lines.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code