test(agc): skip the forced-watch shadow tests where imports report pages written #10138
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10138"
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 root-over on 2026-10-23T10:36:12Z.
What
agc_driver_bda_reads_shadowed_results,agc_driver_bda_reads_shadowed_results_per_buildandagc_unit_shadow_completion_store(#6682) fail on every run on RADV, as #10122 reports for a Radeon 860M. They fail the same way on Vega (GCN 5) with Mesa 26.0.8.On non-Windows hosts these tests call
SetImportWatch(base, ImportWatch::Watch), which keeps host imports watched whatever the driver decided at startup. On RADV, the import probe shows that both importing watched host memory and reading it from the GPU report the pages written:The driver therefore compares those imports instead of watching them, and
agc_unit_shadow,agc_driver_unit_shadow(_budget)andagc_shadowed_key_storesalready skip there ("the device does not import watched host memory for unit shadows"). Under the forced watch, those reports look like CPU stores. A debug print ofShadowReport()right after the address-based build inaddressShadowTestsshows every shadowed unit dropped as stale before the publish, all attributed to the CPU:The test makes no CPU store between the retile and the build. On lavapipe the same print shows
published 1/2.0 by reason { address 1/2.0 }, stale-dropped 0.Both tests now run
ProbeImportWriteProtectionbefore forcing the watch. They skip when the probe fails or reports pages written at the import or after a GPU read. The forced watch is only valid on devices where neither happens. Devices whose imports stay clean until a GPU write, like lavapipe (0 of 4 ... after a GPU read, 4 after a GPU write, 0 after the import), still run all three tests. The skip message matchescheck_skips.py's device-limitation pattern ("the device reports"). Driver code is unchanged.Tested
Ubuntu, kernel 7.0, GCC 15.2.0, Release,
maine84c529d6(refreshed from8948f1cecafter review; same results on both). Ryzen 5 5625U iGPU (Vega/GCN 5, RADV RENOIR, Mesa 26.0.8), plus lavapipe (llvmpipe, LLVM 21.1.8) on the same build.I ran
ctest -R 'shadowed_results|shadow_completion|unit_shadow|shadowed_key' -V -j1withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationonmainand on this PR. That covers the 3 tests above and the 4 unit-shadow tests that already skip on RADV.mainNo log contains
was not found but was requested by env var VK_INSTANCE_LAYERS, and every log has 0VUID-. Onmainthe three failures repeat on every run on RADV.Not tested: the Radeon 860M from #10122. Its probe line is the same as above (4 of 4 after a GPU read, a GPU write and the import), so the same skip should apply there.
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-23T10:43:47Z.
Review: APPROVED
The added probe is placed before
SetImportWatch(...Watch), and the existing test entry points translatefalseinto CTest skip code 77. This makes the forced-watch assertions run only when the probe establishes that import/read activity does not itself mark the watched pages written. The condition is consistent with the existing unit-shadow skip policy and leaves the driver implementation untouched. The linked report shows the same probe signature on RADV; the PR author tested Vega RADV and lavapipe, with the three affected cases skipped on RADV and passing on lavapipe, and reports no validation messages. I did not run the GPU tests locally. Exact-worktree conventions, diff check, and main-sync checks pass (1 ahead/4 behind current main; merge clean); hosted eligibility, intake, conventions, and labels pass, while product jobs are skipped by the workflow.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T11:11:30Z.
Review: APPROVED
Reviewed the exact head
b2bb6c04ae5c126404e62f59905f38815424dd22. Both affected test paths run the import write-protection probe before forcingImportWatch::Watch, and skip only when the device reports writes at import or after a GPU read—the condition that invalidates the forced-watch assumption. Windows retains its existing path. The author reports the RADV main-vs-PR failure/skip comparison and lavapipe pass comparison with validation enabled; hosted product jobs were skipped by policy, and I did not independently run GPU tests. Conventions and all hosted checks that ran pass. No blocking issue found.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T11:30:48Z.
Review: CHANGES_REQUESTED
The Radeon 860M rerun is useful and confirms the intended skip on that adapter while lavapipe continues to execute the tests. I found one repository-currentness gap before approval: this branch is based on
513ca7e558(46 commits behind currentmain), and the intervening main changes add 114 lines totests/Recorder.cppplus 22 lines to the AGC CMake test registration. The same-device comparison in #10122 is explicitly against the older base. Please refresh this PR onto currentmainand rerun the affected test set on the refreshed baseline and PR (including the RADV skip and lavapipe pass comparison); then I can confirm the result against the tests that will actually merge. The hosted conventions check passes; the product test jobs are skipped by policy. The issue-linked work remains this PR; I am not suggesting parallel implementation or closure based on queue size.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T12:41:44Z.
Review: APPROVED
Re-reviewed exact head
12ca5c16f0cc7c9aee25456e323e8c519c90cb9fafter the rebase. The source delta is unchanged: both Linux forced-watch cases run the import/write probe before enablingImportWatch::Watchand skip only when import/read activity reports writes. The updated same-device baseline comparison now uses maine84c529d6and the rebased PR: on RADV the three affected cases fail on main but all seven skip on the PR with the explicit reason; on lavapipe the three pass on both, while the unrelated four skip. The author reports zero missing-layer and VUID diagnostics. GitHub reports the branch mergeable/clean, and hosted eligibility, conventions, labels and report pass; product jobs are skipped by path policy. I did not independently run the GPU comparison.