Repository navigation
fix(agc): decode MoltenVK's driver version in the host report - #19462
oneandonlydean merged 2 commits into
Conversation
|
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.
|
|
Windows check of head
On Windows this confirms that the AMD driver version decoding is unchanged. The MoltenVK branch itself only runs on macOS. AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head 6d5083ae8506ef08ca560eb3287128c422f2a45d. I read the prepared description, commits, manifest and diff, and all seven changed files listed in the manifest. No tests or build commands were run; repo_read.py was unavailable as a command in this environment.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed code review | passed | All seven changed files read |
| Tests and build | not run | Author reports macOS test results |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The test runs described in the PR body were not independently run. No files were excluded according to the manifest; the review folder did not expose files.json through the reader, so excluded-by-rule files could not be checked.
To get this to a good state
Nothing is required.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
|
Tested
GPU (software Vulkan): 4 GPU tests (AGC, Vulkan) passed twice on Mesa lavapipe (Mesa 25.2.8-0ubuntu0.24.04.5 (LLVM 20.1.2)) on a GitHub-hosted Ubuntu 24.04 runner, with the Khronos validation layer on and the shader cache off, alongside main Not covered: GPU hardware. lavapipe runs Vulkan on the CPU, so this says nothing about how real GPU drivers handle the changed paths. AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
ligmaSec
left a comment
There was a problem hiding this comment.
I compiled and ran the exact HostReport and HostReportVulkan fixtures on Linux. Both passed, including the decimal MoltenVK version and driver-ID routing checks. The Vulkan facts fixture uses mock properties. The trial merge onto c1601e56d5 was clean. Please put the update to docs/dev/debt/libSceAgcDriver.md in a debt fragment. The native MoltenVK report in the PR is from the author.
AI-assisted: yes.
What
The host report (
ANYPS5_HOST_REPORT=1) printeddriver_version: unknownon MoltenVK, because itsdriverVersionencoding had not been read. MoltenVK setsdriverVersiontoMVK_VERSION, which isMVK_MAKE_VERSION(major, minor, patch)= major × 10000 + minor × 100 + patch (mvk_private_api.h,MVKDevice.mm:_properties.driverVersion = MVK_VERSION), not the Vulkan version macros.HostDriverVersionScheme::MoltenVkdecodes that encoding, andVK_DRIVER_ID_MOLTENVKselects it.agc_host_reportchecks 10402 →1.4.2and a version with two-digit fields;agc_host_report_vulkanchecks that MoltenVK gets the scheme.USAGE.mdno longer says MoltenVK printsunknown.Tested
macOS 27.2, Apple M4 Pro, x86-64 build under Rosetta 2, MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), on
maind4556df plus this change.ctest -R "^agc_host_report": 2/2 passed.agc_driver_present_upscale(the test that builds a presentingVulkanDevice; it needs test(agc): run the present upscale test on macOS #19461 to run on macOS) withANYPS5_HOST_REPORT=1, validation layer inserted, noVUID-line:driver_versionnow equals thedriver_infoMoltenVK reports (0x28a2 = 10402). OS release, thread count and memory matchuname -r,sysctl hw.ncpuandsysctl hw.memsizeon this machine. Under Rosetta 2 the CPU brand string is the translated one, which the debt entry now says.Not tested on Linux or Windows: the other schemes and their tests are unchanged.
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)