test(agc): run agc_driver_bda_device_tests under ctest #1187
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1187"
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 johnmaia on 2026-10-07T16:45:37Z.
What
agc_driver_bda_device_testswasEXCLUDE_FROM_ALLand never registered, so it ran nowhere (#22, #23 left it out pending #14 and #20). It now runs under ctest with the other AGC driver tests.devices.front(). It now ranks devices asVulkanDevicedoes (discrete, integrated, virtual, then the rest; Vulkan 1.1 or newer), so on a host with an iGPU it runs on the same GPU as the runtime.OpenVulkanTestDevicedoes, unlessANYPS5_REQUIRE_VULKANis set. The Windows job has no Vulkan driver.The BDA execution tests segfault on lavapipe on
maintoo: the third dispatch, a 32-bit read atguest + 1that spans both ranges, faults in llvmpipe's JIT code onvpbroadcastd (%rcx)withrcx = 0. The probe returns 0 for that read, and the only load through the probe result sits behindOpBranchConditional mapped && aligned. llvmpipe executes it anyway. WithAPS5_BDA_BYTE_READS=1, which removes that branch, all 22 dispatches pass on lavapipe.A 20-line GLSL shader reproduces it outside the project (
if (address != 0) value = Word(address).value;withaddress = 0): it crashes lavapipe at everyGALLIUM_OVERRIDE_CPU_CAPSlevel (sse2, sse4_2, avx, avx2, native on an Alder Lake CPU; Mesa 25.2.8, LLVM 20.1.2), and returns the right value on RADV and ANV. Reported upstream as Mesa #16515 (same AnyPS5 shader), same class as #16217.agc_driver_recorder_testshas the samedevices.front()and is also unregistered, but fails onmainon every device (an unchanged draw input was copied again); that is a separate PR.Tested
Linux, Ubuntu 24.04.5, GCC 13.3, Mesa 25.2.8; i3-12100 with RX 7600 (RADV) and UHD 730 (ANV).
ctest(Release,BUILD_TESTING=ON,ANYPS5_REQUIRE_VULKAN=1): 400/400 on the RX 7600; 400/400 on lavapipe alone with the CI settings (GALLIUM_OVERRIDE_CPU_CAPS=avx,--repeat until-fail:3), 21 skipped as before.agc_driver_bda_device_testsalone:ANYPS5_REQUIRE_VULKAN=1Checklist
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 github-actions[bot] on 2026-10-07T19:37:24Z.
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.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526core/libs/prx/libSceAgcDriver/CMakeLists.txtL526