Repository navigation
Conversation
… color targets Every case in agc_driver_gcn_multisample_color_fill uses a 2-sample target, and MultisampleTarget.cpp refuses one when the device's framebufferColorSampleCounts lacks that count. lavapipe exposes only 1 and 4 samples, so the test failed at its first case there. It now checks the same limit first and skips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
What
agc_driver_gcn_multisample_color_fill, added by boykopovar#25802, fails on Mesa lavapipe at its first case:Every case in the test uses a 2-sample PS4 texture or target (
Samples = 2).MultisampleTarget.cpprefuses a host target whose sample count is not in the device'sframebufferColorSampleCounts(Require((context.limits.framebufferColorSampleCounts & samples) != 0, ...)). lavapipe 25.2.8 reports onlySAMPLE_COUNT_1_BITandSAMPLE_COUNT_4_BITthere (vulkaninfo), so on lavapipe the test can't reach any of its checks.The test now checks that same limit right after it gets the graphics context. Without 2 samples, it prints
skipped, the device lacks 2-sample color targets (framebufferColorSampleCounts 0x5)and returns the skip code (77, fromagc_add_default_test). On a device that has 2-sample color targets it runs exactly whatmainruns. No production code changes.On lavapipe this leaves the test with nothing to check. Changing the sample count isn't an option, because 2-sample PS4 surfaces are what boykopovar#25802 models.
agc_gcn_color_target(boykopovar#25802'sMultisampledFootprintsAndFills) doesn't need a GPU and still checks the footprints on lavapipe.The check covers only the color attachment, the limit
MultisampleTarget.cpprefuses on. The test also samples 2-sampleR32_SFLOATimages and reads them back as 2-sampleR32_UINT. A device that has 2-sample color targets but can't sample those formats at 2 samples would still fail, as onmain. I didn't add checks for limits I haven't seen fail.Tested
Ubuntu 24.04, kernel 6.8, GCC 13.3.0, Ninja, Release,
BUILD_TESTING=ON. Headb4fc0b8fcconmain4b0f137c86. GPU: Mesa lavapipe 25.2.8 (llvmpipe (LLVM 20.1.2, 256 bits)),/dev/udmabufavailable. Validation layer built from source, 1.4.335.Focused runs,
main's test file and this branch's in the same build tree, 3 runs each, 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_gcn_multisample_color_fill$' -V:mainskipped, the device lacks 2-sample color targets (framebufferColorSampleCounts 0x5)Every log shows
Insert instance layer "VK_LAYER_KHRONOS_validation", none showswas not found but was requested by env var VK_INSTANCE_LAYERS, and none containsVUID-.Full
ctest --test-dir build --output-on-failure -j6on this branch: 7131/7139 pass,agc_driver_gcn_multisample_color_fillis skipped, andagc_gcn_color_targetpasses. The 8 failures are in other test executables, built from files this PR does not touch:agc_driver_image_sample_lod_clamp_shader_lane: lavapipe before Mesa 26.1 clamps before the sampler bias; test(agc): leave the LOD bias -192 case out on lavapipe before Mesa 26.1 boykopovar/AnyPS5#27777 fixes the test.agc_driver_image_filter_mode_three: lavapipe has no min/max filtering ofR8G8B8A8_UNORM; test(agc): check filter mode 3 on devices without min/max filtering boykopovar/AnyPS5#27671 fixes the test.agc_driver_image_d16_load: since fix(shader): pack D16 image reads toward zero and saturate 32-bit integers as RDNA2 does boykopovar/AnyPS5#22750, a 16_FLOAT signaling NaN comes back quieted on lavapipe. Not addressed here.agc_driver_scattered_runs: Mesa before 26 (fix(agc): probe sparse dma-buf binds before binding imports sparsely boykopovar/AnyPS5#21649).guest_json_copy_failure,guest_json_float_failure(SIGSEGV),guest_libressl3_object_header(timeout) andnkwebkit_wtf(abort): host-side tests unrelated to AGC.main's Linux CI job has not finished a run since boykopovar#25802 merged: its 34 push runs since then are cancelled (32) or queued (2).python3 tools/check_conventions.py --base origin/main: all checks passed.python3 tools/pr_overlap.py --branch: no open pull request shares files or exports with this branch.Not tested: any real GPU or console. On a device whose
framebufferColorSampleCountsincludes 2 samples, which is true of the NVIDIA GPUs boykopovar#25802 was tested on, the new check passes and the test runs whatmainruns.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
Summary by CodeRabbit