fix(agc): leave the float-controls probe's pipelines out of compute captures #8465

Closed
Chuk49 wants to merge 0 commits from upstream-pr/8465 into main
Chuk49 commented 2026-10-20 13:06:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Chuk49 on 2026-10-20T13:06:20Z.


What

The start-up f32 denormal flush probe (ProbeFloat32FlushToZero, from ac14d6317) creates compute pipelines through the normal dispatch path while probingFloatControls is set. That flag already keeps them out of computePipelinesCreated and the pipeline journal (RecordComputePipeline), but not out of APS5_DUMP_COMPUTE_PIPELINES.

So on every device that runs the probe (shaderDenormFlushToZeroFloat32 plus a denormBehaviorIndependence other than NONE), each capture directory gets twelve driver-internal records. They count toward the 128-record limit and are not the title's pipelines. agc_compute_pipeline_capture_run fails there, because it expects 1 to 12 captures:

Expected 1 to 12 compute captures, found 14

Its fixture (agc_driver_branch_past_endpgm_tests) has two programs: it captures 14 with the probe and 2 with APS5_NO_HW_F32_FLUSH=1. The probe was added after the capture test, and lavapipe does not run the probe, so Linux CI does not see it.

The capture condition now also checks !state->probingFloatControls, like the journal. BUILD.md says the probe's pipelines are not captured.

Overlap: #8432 rewrites the same if (wide environment on Windows). Whichever lands second needs a one-line merge.

Tested

Arch Linux (Omarchy), kernel 7.2.5, GCC 16.2.1, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON, base main 44e3389c8.

Focused tests: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -j1 -V -R 'compute_pipeline|branch_past_endpgm|float_flush|denorm'. That is 27 tests, including agc_compute_pipeline_capture*, agc_compute_pipeline_replay, agc_driver_branch_past_endpgm, agc_driver_f32_denormal_flush and the *_denormal_modes tests. Three runs each:

Run 1 Run 2 Run 3
main 26/27 26/27 26/27
this PR 27/27 27/27 27/27
  • main: the failure is agc_compute_pipeline_capture_run every time, with the message above.
  • This PR: the test reports 2 captured pipelines replayed without dispatch. The probe still runs and still selects hardware flush ([float-controls] f32 denormal flush: hardware).
  • Validation: the loader inserted VK_LAYER_KHRONOS_validation in every Vulkan test of every run (VK_LOADER_DEBUG=layer). No log contains was not found but was requested by env var VK_INSTANCE_LAYERS, and neither side logs a VUID- line.

Full suite with the same environment, ctest -j16 --timeout 120:

  • main: 1704/1709.
  • This PR: 1705/1709.
  • The four remaining failures are known and unrelated:
    • agc_driver_guest_memory_lifetime: #7784, fixed by #7849.
    • agc_driver_bda_device: #7584 / #7829.
    • agc_driver_tessellation: the Mesa crash, #5444.
    • agc_driver_image_array_window_past_layer_limit: being looked at separately.
  • tools/check_skips.py: 22 skips, all expected.

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: AMD Radeon 8060S (Strix Halo, RDNA 3.5), RADV STRIX_HALO, Mesa 26.2.2, Arch Linux
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4936178420 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8465). Originally posted by [Chuk49](https://github.com/Chuk49) on 2026-10-20T13:06:20Z. --- ### What The start-up f32 denormal flush probe (`ProbeFloat32FlushToZero`, from `ac14d6317`) creates compute pipelines through the normal dispatch path while `probingFloatControls` is set. That flag already keeps them out of `computePipelinesCreated` and the pipeline journal (`RecordComputePipeline`), but not out of `APS5_DUMP_COMPUTE_PIPELINES`. So on every device that runs the probe (`shaderDenormFlushToZeroFloat32` plus a `denormBehaviorIndependence` other than NONE), each capture directory gets twelve driver-internal records. They count toward the 128-record limit and are not the title's pipelines. `agc_compute_pipeline_capture_run` fails there, because it expects 1 to 12 captures: ``` Expected 1 to 12 compute captures, found 14 ``` Its fixture (`agc_driver_branch_past_endpgm_tests`) has two programs: it captures 14 with the probe and 2 with `APS5_NO_HW_F32_FLUSH=1`. The probe was added after the capture test, and lavapipe does not run the probe, so Linux CI does not see it. The capture condition now also checks `!state->probingFloatControls`, like the journal. `BUILD.md` says the probe's pipelines are not captured. Overlap: #8432 rewrites the same `if` (wide environment on Windows). Whichever lands second needs a one-line merge. ### Tested Arch Linux (Omarchy), kernel 7.2.5, GCC 16.2.1, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`, base `main` `44e3389c8`. Focused tests: `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -j1 -V -R 'compute_pipeline|branch_past_endpgm|float_flush|denorm'`. That is 27 tests, including `agc_compute_pipeline_capture*`, `agc_compute_pipeline_replay`, `agc_driver_branch_past_endpgm`, `agc_driver_f32_denormal_flush` and the `*_denormal_modes` tests. Three runs each: | | Run 1 | Run 2 | Run 3 | |---|---|---|---| | `main` | 26/27 | 26/27 | 26/27 | | this PR | 27/27 | 27/27 | 27/27 | - **`main`:** the failure is `agc_compute_pipeline_capture_run` every time, with the message above. - **This PR:** the test reports `2 captured pipelines replayed without dispatch`. The probe still runs and still selects hardware flush (`[float-controls] f32 denormal flush: hardware`). - **Validation:** the loader inserted `VK_LAYER_KHRONOS_validation` in every Vulkan test of every run (`VK_LOADER_DEBUG=layer`). No log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`, and neither side logs a `VUID-` line. Full suite with the same environment, `ctest -j16 --timeout 120`: - `main`: 1704/1709. - This PR: 1705/1709. - The four remaining failures are known and unrelated: - `agc_driver_guest_memory_lifetime`: #7784, fixed by #7849. - `agc_driver_bda_device`: #7584 / #7829. - `agc_driver_tessellation`: the Mesa crash, #5444. - `agc_driver_image_array_window_past_layer_limit`: being looked at separately. - `tools/check_skips.py`: 22 skips, all expected. ### 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: AMD Radeon 8060S (Strix Halo, RDNA 3.5), RADV STRIX_HALO, Mesa 26.2.2, Arch Linux - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-20 13:06:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T13:06:38Z.


Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291551643 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8465#issuecomment-6291551643). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T13:06:38Z. --- Thank you for your contribution! Authors with no pull requests merged into `main` can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

Pull request closed

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!8465
No description provided.