feat(agc): host system report and an actionable missing-Vulkan-feature message #12690
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12690"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T02:31:48Z.
What
A host system report for bug reports, and an actionable message when the GPU lacks something the game requires.
Gap on
main: the facts maintainers ask for (docs/dev/GAME_TESTING.mdstep 3, the bug form's System field) are typed by hand. The driver name and version exist only in a performance trace summary, which needs a title that presents frames, so a start that fails early cannot produce them. A GPU lacking a required extension or feature stops with one line such asVulkan presentation: VK_KHR_8bit_storage is unavailable: no GPU, no driver, only the first missing item, nothing to try.ANYPS5_HOST_REPORT=1prints one report to stderr when the presenting Vulkan device is chosen: commit, OS, CPU, threads, memory, CPU gate, SDL linked and compiled versions, GPU (name, type, ids, Vulkan version, driver name/info/raw version, largest device-local heap, every device found, surface present modes, requested present mode), each required and optional Vulkan item as present or missing, shader cache state and size, and theAPS5_/ANYPS5_/VK_/SDL_variables. Unset, empty or0prints nothing; any other value stops the start with an error naming the variable.ANYPS5_GPUcan select, and the report switch. The existing checks stay as a backstop.HostReport.cpp(facts, formatter, redaction, parser, message) has no driver or environment access;HostReportSources.cppreads the machine;HostReportVulkan.cpptakes avkGetInstanceProcAddrso tests answer the queries with a fake;VulkanDevice.cppgets one call after device selection.Commits: 26, each feature followed by its test commit (facts and formatter, path/URL/MAC redaction, named redaction, env parser, missing-feature message, collector, unavailable section, real sources, GPU queries, device hook, report hook), then one docs commit per statement.
Open PRs touching the same files: #12379, #12536 and #12569 touch
VulkanDevice.cpp, the AGCCMakeLists.txtandUSAGE.md/debt docs. My edits there are one insertion each (an include pair, a helper and one block after device selection, source and test registrations, one USAGE section, one debt line). No code of any other PR is used.Tested
Linux 6.1 x86_64, GCC 12, throwaway archive build with the CPU gate patched (this host's Xeon E5-1620 v2 fails it), llvmpipe (Mesa 22.3.6) under Xvfb. Rebased on
3a2b919816.agc_host_reportandagc_host_report_vulkanpass (under 1 s each). The Vulkan test answers every query with a fake driver.mainat319621ba2ebefore the rebase, same host):agc_driver_presentation_pass,agc_performance_overlay,agc_performance_overlay_device_selection,agc_driver_present_mode,video_out_flip_decodepass on both. Thevideo_out_flip_*modes labels, lifetime, controls, overlay, resolution, fresh and eop were run directly withSDL_VIDEODRIVER=x11under Xvfb on both and pass.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation):VUID-lines 0 on branch and baseline,was not found but was requested0 on both.ANYPS5_HOST_REPORT=1onvideo_out_flip_tests labelsprinted the report once fromVulkanDeviceon llvmpipe; unset and0printed none;2andyesexit 1 withANYPS5_HOST_REPORT must be 0 or 1, not '2'. The report held no account name, host name or home path.HostReport.cppandHostReportVulkan.cppin scratch copies (dropped sorts, each redaction rule, name-boundary checks, each sanitized field, parser values and text, message parts, collector exception and null handling, filter prefixes, each required item, heap choice, type names, missing entry point). Four survived at first (a whole-word check hidden by the fixture, the trailing-separator home name, the first device-local heap, one parser message mutant that did not compile); the fixtures were tightened and all four then fail. No assertion is left un-controlled in those two files.VulkanDevice.cpphook andHostReportSources.cpp(covered only by the manual run above).check_conventions.py --base upstream/main,git diff --check, header audit,env_reference.py --check.Not run: Windows and macOS (their branches are written from existing PerformanceTrace and HostCpu code), a hardware GPU, a console, a failing GPU on the real device path (the missing-item message is tested with a fake driver only), the
cpu_gatefailure case on a real run (a lacking CPU stops the game before the report).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)