test(agc): check MSAA storage emission without the device's support #2016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2016"
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 arvindfroi on 2026-10-09T05:07:54Z.
What
PrepareMultisampledStorageinagc_driver_prepared_shaders(from3e47c30e,4b5a3952) only inspects the SPIR-V the recompiler emits for multisampled storage writes and atomics. It takes its target from the device, though. On a device withoutshaderStorageImageMultisample, such as MoltenVK, the emission fails withstorage image multisampling is unavailable on the target device. The test and its_indirect,_uncachedand_debugvariants then fail.The target now has the
StorageImageMultisamplecapability, so the emission is checked on every device. The check that a target without it is refused still removes it. Nothing else changes.Tested
macOS 27.0, Apple M3 Pro, MoltenVK 1.4.2.
maindoes not build on macOS yet, and its GPU tests only run there with #2015, so I tested onmainmerged locally with the arm64 macOS libraries (mugurc/AnyPS5#3) and #2015.agc_driver_prepared_shaders,_indirect,_uncachedand_debugfailed with the message above.agc_driver_prepared_shaders*tests pass.shaderStorageImageMultisample, the target already had the capability, so nothing changes. Not run on Linux or Windows here.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by Zheorgyan on 2026-10-09T09:47:06Z.
same setup as on #2015, all five
agc_driver_prepared_shaders*tests pass on an M1 Pro with MoltenVKImported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T11:54:08Z.
Windows results on a device that has
shaderStorageImageMultisample, as the description notes this wasn't run on Linux or Windows: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,-DANYPS5_ENABLE_SPIRV_TOOLS=ON.7fc025e1cherry-picked onto currentmaind70b8998(it applies cleanly).agc_driver_prepared_shaders*tests pass, including_debug_failure.guest_video_out_wqhd_detection_no_vulkan, same as onmain).AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:07:16Z.
Checked the change is test-only and keeps the "target without the capability is refused" case (it still erases the capability afterwards).
agc_driver_prepared_shaders*(all five) pass locally on Linux/RADV, CI is green, and the M1 Pro (MoltenVK) and Windows/RTX 5060 Ti runs above confirm both sides; merging.