test(agc): enable the portability subset with its features in the recorder tests' device #13942
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13942"
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 imellag on 2026-10-31T13:18:13Z.
What
agc_driver_recorder_testscreates its own Vulkan device intests/Recorder.cppand never enablesVK_KHR_portability_subset. The spec requires it whenever the physical device lists it (VUID-VkDeviceCreateInfo-pProperties-04451), and MoltenVK does. So withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationon macOS, every registration of that executable that creates the device logs the error. That hides any real validation error in those tests, as on #8887, whose newagc_storage_flush_wait_mip_chainruns in this executable.When the device lists the extension, the test now queries
VkPhysicalDevicePortabilitySubsetFeaturesKHR, enables the extension, and chains the queried features into the device'spNext. Enabling the extension alone isn't enough: the layer then treats every portability feature as off, and the same 77 tests log 148 other errors (imageViewFormatReinterpretation-04466134 times,imageView2DOn3DImage-0445910,vertexAttributeAccessBeyondStride-044574). The struct is in Vulkan's beta header, soRecorder.cppgetsVK_ENABLE_BETA_EXTENSIONS, the way #11554 does it forVulkanDevice.cpp. On devices without the extension, which covers Linux and Windows drivers, nothing changes.Tested
macOS 27.2, Apple M4 Pro, MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), x86-64 Release under Rosetta 2.
maindoesn't build the driver on macOS on its own, so both sides use the support branchsupport/macos-boot-1030c(05bd71a66b):main21a556f567+ the open macOS PRs. None of them touches this test.With
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer, the 77 registrations ofagc_driver_recorder_tests:VUID-VkDeviceCreateInfo-pProperties-04451150 times.VUID-line.agc_recorder_failed_checkon all three sides; it is outside this change.VK_LAYER_KHRONOS_validationfromVK_INSTANCE_LAYERSin every log, and none haswas not found but was requested by env var VK_INSTANCE_LAYERS.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyreports one conflicting line, with #13931 (pipeline binaries): it adds its own feature structs at the same place beforeVkDeviceCreateInfoinRecorder.cpp, so whichever lands second keeps both blocks. It could not compare 58 PRs that conflict withmain.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T13:31:55Z.
Review: APPROVED
Reviewed — looks good
The exact-head change correctly enables the portability-subset extension and the feature set it advertises for the recorder-test device; the author reports that this removes the validation errors on MoltenVK.
What I ran
Head
6e03c6ba7e3ad04c533db2fb1215997ecc5fa92e; base73f4f7e06e4f210a8c6570e335fd654dc0a86134; merge preview was clean. Environment: Linux, Python 3.11.2, GCC 12.2.0.Results
Unedited conventions-check output
Findings
Blocking
Non-blocking
Sources
Recorder.cppat head6e03c6ba7e3ad04c533db2fb1215997ecc5fa92e.Not verified