test(agc): run agc_driver_mesh_tests under ctest #1811
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1811"
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 gerardlesan on 2026-10-08T20:01:35Z.
What
agc_driver_mesh_tests(tests/Mesh.cpp) checks the translation of NGG geometry programs to mesh shaders. It draws triangle lists, strips and fans, indexed and indirect, and reads the pixels back. It wasEXCLUDE_FROM_ALLand never registered, so it ran nowhere;tools/check_test_registration.pylisted it inKNOWN_UNRUN. On an RTX 4060 it passes. This PR registers it with the other AGC driver tests, as #1187 did foragc_driver_bda_device_tests.Why register it although CI skips it: no other test covers this translation, so a regression there would show up only as broken geometry in a title. Contributors already post full-suite runs on real GPUs (NVIDIA, AMD on Windows and RADV in #1012), and each of those runs now includes it.
Three cases had to change first:
ANYPS5_REQUIRE_VULKAN=1VK_EXT_mesh_shaderLLVM ERROR: Cannot emit physreg copy instructionThe test now opens its device with
OpenVulkanTestDeviceand returnsVulkanTestSkippedin each skipped case. Its skip messages use theskipped, <reason>form of the other device tests (skipped, the device has no VK_EXT_mesh_shader,skipped, the device has no mesh shader compiler that handles these programs (llvmpipe)), which the skip guard in #1028 accepts as device limitations.The llvmpipe failure is in LLVM's code generation, not in the SPIR-V this project produces:
mesa-vulkan-drivers) and Ubuntu 24.04's LLVM 20.1.2, every one of the 15 draws that builds a mesh pipeline aborts, each run on its own. The 16th, the fan with a restart index, is refused before compilation, as the test expects.llvm::TargetLowering::SimplifyDemandedVectorEltsduring the same compilation.spirv-val --target-env vulkan1.1spv1.4.llvmpipe is recognised by its device name (
llvmpipe (LLVM …)).VulkanDeviceexposes no device type, and adding an accessor for one test seemed more than the fix needs.Caveats:
VK_EXT_mesh_shaderwas not measured: every device here supports the extension.apt-get installpulls into a clean Ubuntu 24.04 container.Tested
Arch Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release,
BUILD_TESTING=ON,main94b1eecb. NVIDIA RTX 4060 Laptop GPU (driver 615.71.09), and lavapipe.mainand on this branch. Devices: the RTX 4060; lavapipe from Ubuntu 24.04'smesa-vulkan-drivers25.2.8 withGALLIUM_OVERRIDE_CPU_CAPS=avxandANYPS5_REQUIRE_VULKAN=1, as in the Linux job; and no ICD (VK_ICD_FILENAMESpointing to a missing file), with and withoutANYPS5_REQUIRE_VULKAN. Arch's lavapipe 26.2.4 also exits 77 on this branch.ctest -R '^agc_driver_mesh$' --repeat until-fail:3: passed on the RTX 4060 (1.4 s), skipped on lavapipe.tools/check_test_registration.py build:433 test executable(s), 2 built and not run as recorded, none new(3 onmain).ctest --output-on-failure, RTX 4060): 490 of 490 passed, 0 skipped. The one test added to the run isagc_driver_mesh.tools/check_skips.py(at1ea58302) on this test'sctest --output-junitfile:1 test(s) skipped, all expectedon CI's lavapipe, and with--job windowswithout a device. The earlierMesh tests skipped: llvmpipe …wording failed it.tools/check_conventions.pywith this title and description: all checks passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T20:52:36Z.
One CI interaction to coordinate before merge: open PR #1028 adds a Linux CTest skip guard. Its current
DEVICE_LIMITATIONrule accepts skip output mentioning narrow subgroups or an unavailable device/extension. This test printsMesh tests skipped: llvmpipe fails to compile the mesh programs, so that rule will classify the llvmpipe skip as unexpected and fail CI if #1028 lands first (the Windowsagc*rule does accept this test). Please coordinate with #1028’s author/reviewer on a narrow exception for this known llvmpipe compiler failure, or another explicit handling, and make sure the combined heads pass the guard.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T20:52:49Z.
CI status: upstream Build, Conventions and Progress runs for head
0a4cbfaare allaction_required; none has run. CONTRIBUTING says fork workflows require maintainer approval. Please request that approval and wait for the upstream checks, especially the combined skip-guard case noted above.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T20:54:15Z.
One contribution-rule item: head
0a4cbfadiverges from current upstreammain0447793(1 commit ahead, 4 behind). CONTRIBUTING requires PR branches to be based on currentmain; please rebase and rerun upstream checks on that head before final review.Imported from boykopovar/AnyPS5. Originally posted by gerardlesan on 2026-10-08T21:45:10Z.
Thanks. Addressed in the force-push to
1d696822:main(94b1eecb).skipped, <reason>form of the other device tests:skipped, the device has no VK_EXT_mesh_shaderandskipped, the device has no mesh shader compiler that handles these programs (llvmpipe). #1028'stools/check_skips.py(at1ea58302) accepts both. On this test'sctest --output-junitfile it reports1 test(s) skipped, all expectedon the Linux job's lavapipe (Mesa 25.2.8), and with--job windowswithout a device. The previous wording failed it, as you said. Neither PR needs an exception, and the merge order does not matter.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T02:44:15Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/CMakeLists.txtL629core/libs/prx/libSceAgcDriver/CMakeLists.txtL629Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T08:30:16Z.
Ran this on Windows with a device, since the description lists Windows as not tested.
Setup: Windows 10 (19045), RTX 3060 Laptop GPU (NVIDIA 616.92,
mesh=1), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head1d696822merged ontomain6cc0503d. I also merged #2093, becausemaincurrently can't buildagc_driver_testsandagc_shader_fusion_testswithout it.agc_driver_meshruns under ctest, not skipped, and passes 10/10 (Mesh tests passed, about 1.8 s).tools/check_test_registration.pypasses (none new).🤖 Addressed by Claude Code