Skip to content

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

Merged
adriadam10 merged 3 commits into
boykopovar:mainfrom
Chuk49:fix/agc-capture-skip-float-probe
Oct 23, 2026
Merged

adriadam10 merged 3 commits into
boykopovar:mainfrom
Chuk49:fix/agc-capture-skip-float-probe

Conversation

@Chuk49

@Chuk49 Chuk49 commented Oct 21, 2026

Copy link
Copy Markdown

What

Replaces #8465, which the open-PR limit closed before it could be reopened.

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 71401e331.

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 28 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 27/28 27/28 27/28
this PR 28/28 28/28 28/28
  • 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, run on base 44e3389c8 before updating to the current main:

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

Sam added 2 commits October 20, 2026 15:01
…aptures

The start-up f32 denormal flush probe already stays out of the pipeline
counters and the pipeline journal, but APS5_DUMP_COMPUTE_PIPELINES still
captured its pipelines. On a device that runs the probe, every capture
directory gained twelve driver-internal records that count toward the
128-record limit, and agc_compute_pipeline_capture_run found 14 captures
for a fixture with two programs.
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 674 docs/dev/BUILD.md
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 1835 docs/dev/BUILD.md
PR 2434 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/BUILD.md
PR 5431 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7307 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7618 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7922 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8014 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9348 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9400 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9431 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9432 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9672 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9673 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9674 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9675 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9676 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9842 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9891 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9892 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9893 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9895 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9898 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10194 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/BUILD.md

@github-actions github-actions Bot added docs agc libSceAgc* labels Oct 21, 2026
@MaxLikesCode

Copy link
Copy Markdown
Contributor

RTX 4090 (Ada) on Windows, head 0560c1f09 merged onto main cecb540a6 (clean), the 26 tests matching compute_pipeline|branch_past_endpgm|float_flush|denorm:

  • main: 26 of 26 in 3 runs without and 3 with the validation layer, agc_compute_pipeline_capture_run included.
  • this PR: 26 of 26 in the same 6 runs.
  • No run on either side logs a VUID-.

main passes here because this device does not run the probe: no log has a [float-controls] line. So this is the other half of the condition in the description, a device without the probe, and the change keeps it passing there.

NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, ctest --test-dir build -R <tests> -V. Validation runs add VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Vulkan-ValidationLayers vulkan-sdk-1.4.363.0, implicit layers disabled); the loader log shows the layer inserted in every Vulkan test process, and no log has was not found but was requested by env var VK_INSTANCE_LAYERS.

AI-assisted: yes (Claude Code)

@Lander0606

Copy link
Copy Markdown
Contributor

AMD iGPU on Linux (RADV) data point: head 0560c1f095 against its base 50efb5c405, without merging onto current main.

Setup

  • Radeon 860M (Ryzen AI 7 350, 1002:1114, RADV KRACKAN1), Mesa 26.2.5, Vulkan 1.4.354, Fedora 44, kernel 7.2.11.
  • Built in an Ubuntu 24.04 container with GCC 13.3, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON. The tests ran on the Fedora host, with VK_DRIVER_FILES limited to RADV.
  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest -j1 -V -R 'compute_pipeline|branch_past_endpgm|float_flush|denorm' (28 tests), three runs without and three with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (1.4.341).
Without the layer With the layer
base 50efb5c405 27/28, 27/28, 27/28 27/28, 27/28, 27/28
this PR 0560c1f095 28/28, 28/28, 28/28 28/28, 28/28, 28/28
  • Base: the failure is agc_compute_pipeline_capture_run in every run, with Expected 1 to 12 compute captures, found 14.
  • 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 20 times in each 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.

On this machine the same failure shows on current main f075f91737, with Mesa 26.2.5 and with Mesa 25.2.8 (RADV), while llvmpipe passes the test.

…float-probe

# Conflicts:
#	core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
@adriadam10 adriadam10 self-assigned this Oct 23, 2026
@adriadam10
adriadam10 merged commit a0fb7c2 into boykopovar:main Oct 23, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the new condition against the journal guard (probingFloatControls at VulkanDevice.cpp:5238), the BUILD.md claim, and the RADV/RTX 4090/Radeon 860M runs in the thread; #8432 is already merged and the merge with main is clean; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants