test(agc): skip the multisample target checks without formatless multisampled storage writes #17152
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17152"
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-08T12:18:31Z.
What
Since #16086 (
45414a37af), a draw over nonuniform initial multisample color contents uploads them. The upload needsshaderStorageImageMultisampleandshaderStorageImageWriteWithoutFormat. Without them,PrepareMultisampleTargetForDraw_nid_no_patchstill refuses withinitial multisample color samples require enabled formatless multisampled storage image writes(MultisampleTarget.cpp:1466). The tests that came with the upload assume every device has both features. On a device withoutshaderStorageImageMultisample, five of them fail onmain:mainagc_driver_native_color_initial_nonuniform,_lifetime,_hookagc_driver_native_color_initial_nonuniform_capabilitiesinitial upload capability refusal differs: …: the device's own refusal comes before the storage-range and image-format refusals the test expectsagc_driver_sample_multisample_targetCheckOverwrittenTarget's draw over a partly overwritten target, which runs before this test's ownshaderStorageImageMultisampleskipHere that device is an Intel HD Graphics 630 (Mesa ANV). The same five fail on an HD 520 in the test runs of #17056 and #16967. CI's lavapipe has both features, so CI doesn't see this.
This PR changes only
SampleMultisampleTarget.cpp, and the library is unchanged:--initial-nonuniform*modes returns 77 after printing… skipped, the device does not enable multisampled formatless storage writes. That is the wordingMultisampleReadback.cppuses for the same pair of features. Before skipping,_lifetimestill runs its uniform half (a clear, with no upload)._capabilitiesstill checks the three missing-capability refusals and the unsupported-tiling refusal. The tiling check moves ahead of the skip because the library checks tiling first.CheckOverwrittenTargetis unchanged. On a device that can't, it expects the draw to refuse with the capability message and to leave guest memory unchanged. It then zeroes the color memory and draws again, the flow it had before #16086, so the guard checks after the draw still run on every device.shaderStorageImageMultisample, because the guest color upload those checks reach requires both (MultisampleTarget.cpp:245). Its line becomesmultisampled target fills, stores and swizzle modes skipped, the device does not enable multisampled formatless storage writes.The skip lines on the HD 630:
Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release,
BUILD_TESTING=ON, onmain105c9e4d91. The PR changes only this test's source, so every other test binary is the same asmain's; the split suite onmain105c9e4d91shows these five as the only HD 630 failures in this binary.The ten tests of
agc_driver_sample_multisample_target_tests(agc_driver_sample_multisample_target, the sevenagc_driver_native_color_initial_*,agc_driver_native_fmask,agc_driver_native_msaa_vertex_input), under Xvfb,tools/check_skips.pyon each run's JUnit file:mainshaderStorageImageMultisamplefalse)native_fmaskas before), 3/3;check_skips.pyexit 0native_fmaskskippedWith the Khronos profiles layer (SDK 1.3.275) reporting one feature as false,
ctestonce per device:mainshaderStorageImageMultisample, on all three devicessample_multisample_targetskip;check_skips.pyexit 0shaderStorageImageWriteWithoutFormat, on all three devicescheck_skips.pyexit 0The second row is why the default mode's skip now requires both features: with this PR's other changes but the old skip,
sample_multisample_targetgot pastCheckOverwrittenTargeton the GTX and llvmpipe and then failed in the fill checks withuploading multisampled guest color requires formatless multisampled storage image writes.With
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(layers 1.3.275),ANYPS5_REQUIRE_VULKAN=1,ctest -V, once per device: nowas not found but was requested by env var VK_INSTANCE_LAYERS; VUIDs the same onmainand this PR (none on the HD 630, 30 ×VUID-VkDeviceCreateInfo-pNext-pNexton the other two).The 264 source-scanning tests (
conventions_*,public_headers*,check_*,tools_*) pass.check_conventions.py,check_test_registration.py,check_main_sync.py(1 ahead, merges cleanly) andcheck_compile.py --build build(1 translation unit) are clean.tools/pr_overlap.py --branchcompared 3 of the 12 PRs that share the file. The other nine conflict withmainelsewhere, so I merged the file three-way with each PR head: #6987, #6989, #6995, #7002, #7642, #9508, #9915, #10193, #10233, #13928 and #13929 merge cleanly with this PR, and #6808 has the same 6 conflicts withmainwith or without it.Amoenus (who wrote #16086's fixtures) reviewed this head and ran the ten modes on Windows 11 with an RTX 5080 and an AMD Radeon (1002:13c0): 40 passed, 0 skipped, 0 failed, no VUIDs or sync hazards: https://github.com/boykopovar/AnyPS5/pull/17152#issuecomment-6743368293
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 coptergui-ops on 2026-11-08T12:57:18Z.
Review: APPROVED
Reviewed at current head. Pure test change in tests/execution/SampleMultisampleTarget.cpp: adds FormatlessMultisampleWrites helper (storageImageMultisample && storageImageWriteWithoutFormat) and either skips (VulkanTestSkipped / case-continue) or exercises a device-own-refusal branch in the five tests that assume both features, matching the PR body's per-test failure table on Intel HD 630 (Mesa ANV). Production code untouched; refusal-message assertions pin the exact error text from MultisampleTarget.cpp:1466. No bot pending pairs; no shared files with any other open PR in this wave. Conventions checker: 11 findings, all pre-existing on main (baseline noise), no new findings.