test(agc): enable VK_KHR_portability_subset once in the Recorder test device #21965
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21965"
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 kurexw on 2026-11-16T23:35:46Z.
What
tests/Recorder.cppbuilt its test device by chainingVkPhysicalDevicePortabilitySubsetFeaturesKHRand addingVK_KHR_portability_subsetby hand. A few lines later, the sharedAgcDriver::Tests::PortabilitySubset::Enablehelper chains the struct and adds the extension a second time. On a device that exposesVK_KHR_portability_subset(MoltenVK), the device create info therefore carried the struct twice. With the validation layer, every Recorder-binary test process loggedVUID-VkDeviceCreateInfo-sType-uniquetwice. That error shows up in every macOS run of the AGENTS.md GPU procedure, which comparesVUID-counts.This removes the hand-written block and keeps the shared helper, which queries the features, chains them and enables the extension once. Nothing else in the file read
portabilityFeatures. On devices without the extension, neither path did anything, so nothing changes there.Tested
macOS 27.2 on an Apple M4 (MoltenVK 1.4.2 from the LunarG Vulkan SDK 1.4.363.1, x86-64 build under Rosetta).
agc_driver_recorder_tests, onmain459f4f8c22and on this branch, three runs per side.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer.Insert instance layer "VK_LAYER_KHRONOS_validation"(layer 1.4.363) per run on both sides. None logged the missing-layer message.VUID-lines per runVUID-VkDeviceCreateInfo-sType-uniqueThe two failures are
agc_driver_recorder("a kept vertex window was not mirrored") andagc_small_tiled_shadow_label("a label stored a small image inside a pending large tiled one instead of trapping its reads"). Both fail with the same message onmainand are unrelated.Not tested: Linux, Windows or other GPUs, where the extension is absent and the removed code didn't run.
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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T02:42:18Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the optional note below is informational.
What I ran
Reviewed head
fa529d485ed6211067f2adfc4b6bfed26a436f6a. I read the prepared description, commit summary, manifest and diff, then usedrepo_read.pyto inspect the changed code’s surrounding context and the shared portability helper. I did not run tests or other commands.Results
Findings
Blocking
None.
Non-blocking
The description reports macOS/MoltenVK results and notes that other platforms and GPUs were not tested. No additional issue was verified in the inspected code.
Sources
Not verified
I read the changed hunk and surrounding
Recorder.cppcode (lines 560–665), not the entire 17,858-line file. The manifest lists only that changed file; its full text was excluded from the review folder as too large. I also read the full sharedPortabilitySubset.hpphelper and selected call-site context inBdaDevice.cppandPerformanceOverlay.cpp. I did not independently verify the author-reported test runs, other changed-file behavior, other platforms or GPUs, or physical-console behavior.To get this to a good state
Nothing is required.