test(agc): skip 2D MSAA resinfo fragment counts the device cannot render #25334
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25334"
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 peacocksir on 2026-11-21T23:07:53Z.
What
agc_driver_image_resinfo_dimensionfails onmainon Mesa lavapipe, the Vulkan device of the Linux CI job:AGC graphics: the device cannot render color with the target's sample count. #19682 added 2D MSAA T#s with 2, 4 and 8 fragments to it, and binding one goes throughMultisampleTarget.cpp, which requires the count inframebufferColorSampleCounts. lavapipe reports onlySAMPLE_COUNT_1_BITandSAMPLE_COUNT_4_BIT, so the 2-fragment case throws and the 4- and 8-fragment cases never run.main's own Linux job shows the same failure atef7dc4452d(run 44949893769, joblinux, runneranyps5-3-linux-2).Each 2D MSAA case now catches exactly that message, the way
ResolveTestsinPackedFloatColorTarget.cppdoes, and prints<n>-fragment 2D MSAA resinfo skipped, the device lacks <n>-sample color attachments(matched byDEVICE_LIMITATIONintools/check_skips.py). Any other exception is rethrown, and the remaining fragment counts still run. A device that supports all three counts runs exactly whatmainruns. No production code changes.Tested
Ubuntu 24.04.4, kernel 6.8, GCC 13.3.0, Ninja, Release,
BUILD_TESTING=ON. Headf7a60a3842onmaind3a7b0bcd8. GPU: Mesa lavapipe 25.2.8 (llvmpipe (LLVM 20.1.2, 256 bits), 8-lane subgroups),/dev/udmabufavailable. Validation layer built from source, 1.4.335.Focused run,
main's test file and this branch's in the same build tree, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '^agc_driver_image_resinfo_dimension$' -V:mainAGC graphics: the device cannot render color with the target's sample count2-fragment 2D MSAA resinfo skipped, the device lacks 2-sample color attachments,8-fragment ... 8-sample ...,image resinfo dimension tests passedBoth logs show
Insert instance layer "VK_LAYER_KHRONOS_validation", neither showswas not found but was requested by env var VK_INSTANCE_LAYERS, and neither containsVUID-.The 4-fragment case still runs on lavapipe and still checks #19682's fix: with #19682's two shader changes (
ResourceMaterializer.cpp,SpirvImageEmitter.cpp) reverted locally, this branch fails withimage_get_resinfo: the 2D MSAA query returned 8x8x0 levels 0, RDNA 2 returns 8x8x0 levels 1after the 2-fragment skip line. That was checked at the first base,ef7dc4452d; since thenmainchanged neither the test file,MultisampleTarget.cppnorcheck_skips.py.Full
ctest --test-dir build --output-on-failure -j6at the head above: 6550/6556 pass. The 6 failures are in other executables, which this change does not touch, and each also fails withmain's code on this machine:agc_driver_scattered_runs: Mesa before 26 (#21649).agc_driver_integer_sdwa_output_modifiers: #25298, onmain's Linux job too; the open #25300 reverts #19566.agc_driver_draw_allocations,agc_driver_draw_allocations_draw_pipeline,agc_driver_draw_allocations_plan_verify:[compute dispatch]reports about 480 to 570 allocations per warmed dispatch here. They also fail atmain3fc5088db0, with and without the validation layer, and pass onmain's Linux job; I have not found the cause.nkwebkit_wtf: aborts here, also atmain3fc5088db0; passes onmain's Linux job.On an earlier full run at
ef7dc4452d,agc_driver_frame_replay_rewind_copyfailed once (no memory delta was read while 1 submissions waited for the CPU) and then passed 3 of 3 on its own.python3 tools/check_conventions.py --base origin/main: all checks passed.tools/pr_overlap.py --branchcould not compare #7085 and #22724, both of which conflict withmain. I compared them by hand: both add mip-level cases to this file and neither touches the 2D MSAA loop.Not tested: real GPUs (no Windows or NVIDIA, AMD or Intel run), macOS, titles. On a device that supports 2, 4 and 8 color samples, the new catch is never reached.
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