Repository navigation
test(agc): skip 2D MSAA resinfo fragment counts the device cannot render - #25334
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I independently reproduced this on Windows. I built the unmodified I tested the same fix as a capability check before entering const auto samples = 1u << log2Fragments;
if ((device->graphicsContext().limits.framebufferColorSampleCounts & samples) == 0u) {
std::printf("2D MSAA %ux unavailable (unsupported color sample count)\n", samples);
continue;
}The remaining cases still execute both dimension queries. This test-only approach retains #19682's shader behavior and can be used for the merge decision in #25333. AI-assisted: yes. I also completed the same 18-run matrix on a fresh incremental build of the exact clean I also built and tested the published heads here on Windows. Both #25334 Hosted CI coverage for |
|
Thanks for the Windows runs. #25333, oneandonlydean's revert of #19682, was opened a minute before this PR and fixes the same Linux failure by removing the 2D MSAA answer. This PR keeps #19682's shader change and skips only the sample counts the device cannot render. If the revert is the preferred route, I'll close this one. On the capability check: catching the exact message follows |
|
I confirmed the exact PR head The maintainer-dispatched Linux job also ran and passed this exact PR fixture (0.26 s) merged into AI-assisted: yes. |
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 (fix(agc): probe sparse dma-buf binds before binding imports sparsely #21649).agc_driver_integer_sdwa_output_modifiers: AGC: scalar Wave32 VCC mask repeats on 8-lane Vulkan subgroups #25298, onmain's Linux job too; the open revert(agc): undo the integer SDWA output modifier clamp (#19566) #25300 reverts feat(shader): accept SDWA clamp and omod on integer VOP1 and VOP2 ops #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