test(agc): fail the required nonzero-lead CPU publish lane with its reason on Windows #12168
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12168"
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 dantdmdarealguy on 2026-10-28T01:02:02Z.
What
-DANYPS5_REQUIRE_CPU_LEAD_TEST=ONregistersagc_driver_sparse_dma_buf_cpu_lead, which runsagc_driver_sparse_dma_buf_import_tests --require-cpu-leadwith noSKIP_RETURN_CODE. The option was added in #9521 (debfe27cde) as a lane that "fails instead of skipping when the nonzero-lead dma-buf CPU publish cannot run". On Linux every skip in that mode printsrequired lane: the skip above is a failure, the nonzero-lead CPU publish was not exercisedand exits 1. On Windows,main(SparseDmaBufImport.cpp:28) ignores the argument, prints onlyskipped, udmabuf imports are Linux onlyand exits 77. So the lane is reported asFailed, but nothing says why.The Windows
mainnow uses the sameSkipCodeas the Linux skips. With--require-cpu-leadit prints the required-lane line and exits 1. Without it, it still skips with 77.SkipCodemoves above the#ifdef _WIN32unchanged, and the Linux code is otherwise unchanged.The lane stays registered on Windows. If it were registered only on Linux,
ONwould register nothing on Windows andctest -R cpu_leadwould report no tests and exit 0. That is the silent pass the option exists to rule out.No CMake change. #11437 (macOS guards) edits the same
#ifdef _WIN32lines (L26-28) and will conflict textually. Whichever merges second rebases;SkipCodesits outside the platform guard, so it also serves #11437's#ifndef __linux__path.Tested
Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release,
-DANYPS5_REQUIRE_CPU_LEAD_TEST=ON.ctest --test-dir build -R agc_driver_sparse_dma_buf --output-on-failure:main:agc_driver_sparse_dma_buf_cpu_leadfails and prints onlyskipped, udmabuf imports are Linux only. Run directly, the binary exits 77.agc_driver_sparse_dma_buf_cpu_leadfails and printsskipped, udmabuf imports are Linux onlyfollowed byrequired lane: the skip above is a failure, the nonzero-lead CPU publish was not exercised. The binary exits 1.agc_driver_sparse_dma_buf_importisSkipped(exit 77) on both.OFF:agc_driver_sparse_dma_buf_importis skipped andpatched_librariespasses.cpu_leadis not registered, onmainand on the change.ctest -V -R agc_driver_sparse_dma_bufonmainand on the change, withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1. Neither log has the missing-layer line or anyVUID-. The Windows path returns before opening a device.Arch Linux WSL2, GCC 16.1.1, Release,
-DANYPS5_REQUIRE_CPU_LEAD_TEST=ON. I configuredmainand the change separately. The 181CTestTestfile.cmakefiles and their 2575add_testlines are identical once the build directory names are made the same. There is no/dev/udmabufthere, andctest -V -R agc_driver_sparse_dma_bufgives identical output on both:skipped, host imports are unavailable: /dev/udmabuf is not accessible, then the required-lane line,cpu_leadFailed, the default testSkipped.The nonzero-lead publish itself is not exercised here: that needs a Linux device that imports dma-buf memory.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T03:37:24Z.
Review: CHANGES_REQUESTED
The behavior change is coherent: Windows now emits the required-lane diagnostic and returns failure only when
--require-cpu-leadis set, while the default path still returns the skip code. The reported Windows and Linux controls demonstrate the intended distinction; no nonzero-lead publish itself was exercised because the available Linux host has no/dev/udmabuf. Exact-head conventions and diff checks pass, and the merge preview into currentmainis clean; hosted Windows passes and Linux is path-skipped.There are two repository follow-ups before merge:
git merge-treeconfirms a content conflict between the two heads.CONTRIBUTING.mdrequires the authors to coordinate merge order and record the dependency. Please agree which PR lands first and setDepends on: #11437ornoneaccordingly (and update #11437 if needed).cccdaa2, 31 upstream commits behind currentmain; please rebase onto currentmainafter coordinating the overlap and rerun the focused checks.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T10:05:20Z.
Review: CHANGES_REQUESTED
Blocking follow-ups: (1) open #11437 conflicts in
SparseDmaBufImport.cpp; the checklist saysDepends on: none, and the authors have not recorded an agreed order. Please coordinate and update both PR checklists. (2) Currentmainis3a40945e62; this head is 468 commits behind it (merge basecccdaa2734). Rebase after resolving the overlap and rerun the focused CPU-lead lane checks. The hosted Linux check is skipped; Windows cannot validate the Linux udmabuf execution path.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:09:12Z.
Review: APPROVED
Re-checked — approved
What I checked
5850210d062d6751146e4ea74d8f6dab4955f76eagainst fetchedmain2960e9a6e7.git diff --checkis clean;mainhas not changed this file since the branch's refresh.Depends on: #12168, so this PR correctly keepsDepends on: none. Hosted Windows, conventions, eligibility, and report checks pass; Linux and specialized jobs were skipped.Test evidence
The author reports the
--require-cpu-leadtest failing as intended on Windows and on Linux without/dev/udmabuf, and confirms the default path remains skipped. The actual nonzero-lead publish was not exercised because no Linux udmabuf device was available; this test-only change explicitly makes that absence fail in the required lane rather than reporting a false pass. I did not run the platform tests locally.The earlier order and current-file follow-ups are resolved. No blocking issue remains.