test(agc): isolate the depth clear cases per recorder and cover plane fills against a UAV clear #7391

Merged
AlxcBTW merged 1 commit from upstream-pr/7391 into main 2026-10-18 20:22:24 +00:00
AlxcBTW commented 2026-10-18 04:27:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-18T04:27:45Z.


What

Follow-up to #7178. The maintainer resolved the merge conflict with #7131 (plane fills) when merging it, so the driver code is already right and this PR changes only tests/execution/DepthClearHle.cpp.

  • Each case re-activates the test device's recorder. The DCB submit creates a second device that activates its own recorder, so the cases depended on the order they ran in. After a driver submit, the driver's recorder is re-activated before the next submit.
  • New PlaneFillCase: a plane fill followed by a UAV clear of the depth plane leaves the clear value, and a plane fill after a UAV clear leaves the fill value. It covers the interaction of #7131 and #7178, which no test covered. It passes with the merged driver code; it is regression coverage, not a fix.

I checked whether the merged RecordClear (resets both fills) and RecordClearValue (resets none) can drop a pending fill of the other aspect or keep a pending fill alive after a UAV clear. Every RecordClear caller passes the whole pending set, and every storage access applies pending clears before the UAV is handed out, so neither happens. No driver change.

Tested

  • Linux (Ubuntu 24.04, Mesa 25.2.8 lavapipe), fork CI on this commit (bb86b5f35) plus the CI scaffolding commit: 561 of 561 passed, among them agc_driver_depth_clear_hle (2.17 s) and agc_driver_depth_plane_fill (0.14 s). Not run on Windows or on a hardware GPU.
  • Order independence: before the isolation fix, PlaneFillCase failed when it ran after the DCB submit case. With it, the case groups and the off/on modes in reversed orders passed 60 of 60 runs on the fork CI (an earlier branch of this change, with extra order arguments that are not part of this PR).
  • Seen while doing that, unrelated to this PR: repeated plain runs of agc_driver_depth_clear_hle occasionally die with SIGSEGV inside libvulkan_lvp.so while the driver's second device is alive. The test binary from before this change does the same in 0 to 3 of 20 runs.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Mesa 25.2.8 lavapipe, Ubuntu 24.04 (fork CI); no hardware GPU
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4906354798 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7391). Originally posted by [AlxcBTW](https://github.com/AlxcBTW) on 2026-10-18T04:27:45Z. --- ### What Follow-up to #7178. The maintainer resolved the merge conflict with #7131 (plane fills) when merging it, so the driver code is already right and this PR changes only `tests/execution/DepthClearHle.cpp`. - Each case re-activates the test device's recorder. The DCB submit creates a second device that activates its own recorder, so the cases depended on the order they ran in. After a driver submit, the driver's recorder is re-activated before the next submit. - New `PlaneFillCase`: a plane fill followed by a UAV clear of the depth plane leaves the clear value, and a plane fill after a UAV clear leaves the fill value. It covers the interaction of #7131 and #7178, which no test covered. It passes with the merged driver code; it is regression coverage, not a fix. I checked whether the merged `RecordClear` (resets both fills) and `RecordClearValue` (resets none) can drop a pending fill of the other aspect or keep a pending fill alive after a UAV clear. Every `RecordClear` caller passes the whole pending set, and every storage access applies pending clears before the UAV is handed out, so neither happens. No driver change. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Linux (Ubuntu 24.04, Mesa 25.2.8 lavapipe), fork CI on this commit (bb86b5f35) plus the CI scaffolding commit: 561 of 561 passed, among them `agc_driver_depth_clear_hle` (2.17 s) and `agc_driver_depth_plane_fill` (0.14 s). Not run on Windows or on a hardware GPU. - Order independence: before the isolation fix, `PlaneFillCase` failed when it ran after the DCB submit case. With it, the case groups and the off/on modes in reversed orders passed 60 of 60 runs on the fork CI (an earlier branch of this change, with extra order arguments that are not part of this PR). - Seen while doing that, unrelated to this PR: repeated plain runs of `agc_driver_depth_clear_hle` occasionally die with SIGSEGV inside `libvulkan_lvp.so` while the driver's second device is alive. The test binary from before this change does the same in 0 to 3 of 20 runs. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: Mesa 25.2.8 lavapipe, Ubuntu 24.04 (fork CI); no hardware GPU - [x] AI-assisted: yes
LeandroLP23 commented 2026-10-18 16:33:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T16:33:25Z.


AMD on Windows: the tests this PR names pass on an RDNA 3.5 GPU.

Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release. main 6efb7261b with this PR (bb86b5f35) merged, together with #7296, #7446, #7377, #7445, #6708, #6748, #6785, #6706, #6613, #7449, #7489, #7484, #7514. They were built once, so the result is for the combination; each merge was clean.

  • agc_driver_depth_clear_hle, agc_driver_depth_plane_fill: pass, 3 runs of 3.
  • Every agc_* test on the combined build: 713 of 716 pass. The 3 that fail, agc_driver_host_import_lifetime, agc_driver_quad_pixel_mask and agc_driver_layered_volume_vertex_no_gpl, fail the same way on unchanged main here, so none comes from these PRs.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6252346841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7391#issuecomment-6252346841). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-18T16:33:25Z. --- AMD on Windows: the tests this PR names pass on an RDNA 3.5 GPU. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release. `main` `6efb7261b` with this PR (`bb86b5f35`) merged, together with #7296, #7446, #7377, #7445, #6708, #6748, #6785, #6706, #6613, #7449, #7489, #7484, #7514. They were built once, so the result is for the combination; each merge was clean. - `agc_driver_depth_clear_hle`, `agc_driver_depth_plane_fill`: pass, 3 runs of 3. - Every `agc_*` test on the combined build: 713 of 716 pass. The 3 that fail, `agc_driver_host_import_lifetime`, `agc_driver_quad_pixel_mask` and `agc_driver_layered_volume_vertex_no_gpl`, fail the same way on unchanged `main` here, so none comes from these PRs. AI-assisted
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7391
No description provided.