test(agc): skip the readback test's storage migration without multisampled storage images #22078
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22078"
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 GiannisG1 on 2026-11-17T04:18:46Z.
What
agc_driver_native_color_readbackfails onmain(b412486d3e, after #20579) on an Intel HD Graphics 630 (Mesa 25.2.8 ANV, which reportsshaderStorageImageMultisample = false):The four-sample pass of
Readback()checks storage migration (fragments == Samples). It writes per-sample values withStoreSamples, a guest compute store to the multisampled target, which the recompiler can emit only withshaderStorageImageMultisample(SpirvDescriptors.cpp:139). The backtrace atShaderRecompiler::FailEmitisReadback→StoreSamples→CompileProgram→ShaderRecompiler::Recompile. The test's fixture fails, not the driver's readback: the two-sample pass before it reads back through the same driver path and passes. Because the test stops there, its four- and eight-sample, integer-format and refusal cases never ran on such a device.The stencil-plane check in the same file already gates its
StoreSamplesoncontext.storageImageMultisample(theif (context.storageImageMultisample)block inCheckClaimedTargets), and #7191 skips the multisampled target test the same way. This PR gates only the storage migration step on that flag and printsnative color readback: storage migration skipped, the device lacks multisampled storage images. The sampled load before it (CheckUniform(LoadSamples(...), Ones, "before storage migration")) still runs on every device.Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release, head on
mainb412486d3e, under Xvfb.ctest -R '^agc_driver_native_color_'(10 tests), 3 runs per device:mainnative_color_readbackfails as aboveelementBytes1–16) and refusal casesshaderStorageImageMultisamplemasked off (Khronos profiles layer) takes the skip and passes.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V -j1 -R '^agc_driver_native_color_', onmain0766863ef6and this PR's commit on it (it merges cleanly), on the HD 630, the GTX, llvmpipe and lavapipe (Mesa 26.0.8). The loader inserts the layer in all 10 tests on each device and none reports it as not found; neither side logs aVUID-,SYNC-HAZARD-,UNASSIGNED-or other validation message. On0766863ef6,native_color_readbackfails on the HD 630 as above and passes on the other three; with this PR all 10 pass on all four, and the HD 630 prints the skip line.check_conventions.py,check_main_sync.py(merges cleanly) andcheck_compile.pyare clean.pr_overlap.py --branchcould not compare #6808, #7642, #9508, #10193, #13928, #13929, #17338, #17956 and #19557, which conflict withmainand change this file. None of their diffs changes a line of this block or the lines next to it.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 Jazeupoi on 2026-11-18T14:54:07Z.
Review: COMMENTED
Tested on a second device without multisampled storage images: Apple M4 with MoltenVK 1.4.2 (Vulkan SDK 1.4.363.1), macOS 27.0.1, x86_64 Release under Rosetta.
Base:
main3055e5830cwith #17425 and #11049 (needed for the macOS build) and #22932 (libc paths, unrelated). "This PR" is the same tree with head56c515a27fmerged. All^agc_driver_native_colortests (10), 3 runs each, withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1(ctest -V):not foundlinesVUID-agc_driver_native_color_readbackfailsOn the base it stops as in the description, right after the two-sample pass:
SPIR-V module emission failed: storage image multisampling is unavailable on the target device. With this PR it printsstorage migration skipped, the device lacks multisampled storage images, and the cases that never ran before now pass: the 4-sample RGBA16F pass, the integer formats with element sizes 1 to 16 bytes, and the refusal checks.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T04:18:41Z.
Review: APPROVED
Reviewed — looks good
The change guards the test’s multisampled storage migration with the device capability while retaining the sampled readback check on devices without that capability.
What I ran
Reviewed head
56c515a27f85dfbd22e1f82920302033283f757band its prepared diff. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were run in this review. The author-reported results were not independently verified. The only changed file,
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp, was read around the changed block and itsReadbackfunction; other portions of the 2,355-line file were not read. No files were excluded by the manifest.To get this to a good state
Nothing is required.