fix(agc): keep the old settle floor in agc_driver_linear_target_import_creation #26662

Closed
oneandonlydean wants to merge 2 commits from upstream-pr/26662 into main
oneandonlydean commented 2026-11-24 13:59:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-24T13:59:30Z.


What

agc_driver_linear_target_import_creation fails every run on Windows with private gate: a color target's import of direct memory under the settle floor was made where it would be compared.

Cause

The private gate imports a colour target inside a 512 KiB block (ResidentBytes / 4) and requires that none is made. Since #10443 the settle floor is 64 KiB plus one byte instead of 1 MiB, so 512 KiB now sits above the floor and the import settles at the import and is made. #10443 pinned APS5_SETTLE_FLOOR_KIB=1024 for the three agc_import_settle_* tests but not this one.

Change

Pin APS5_SETTLE_FLOOR_KIB=1024 for this test, the same way those tests do. The gate keeps checking what it was written for. Moving the target under the new floor instead would also work; this keeps the test's block size and the gate's meaning unchanged.

Test

Test registration only. On Linux, ctest -N -V shows the variable on the test. The failure is Windows-only, so Plyxen's run on Windows is the check (the report shows the test passing with this variable set on both Radeon and RTX 5080).

Fixes #26650

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5473577328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26662). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-24T13:59:30Z. --- ## What `agc_driver_linear_target_import_creation` fails every run on Windows with `private gate: a color target's import of direct memory under the settle floor was made where it would be compared`. ## Cause The private gate imports a colour target inside a 512 KiB block (`ResidentBytes / 4`) and requires that none is made. Since #10443 the settle floor is 64 KiB plus one byte instead of 1 MiB, so 512 KiB now sits above the floor and the import settles at the import and is made. #10443 pinned `APS5_SETTLE_FLOOR_KIB=1024` for the three `agc_import_settle_*` tests but not this one. ## Change Pin `APS5_SETTLE_FLOOR_KIB=1024` for this test, the same way those tests do. The gate keeps checking what it was written for. Moving the target under the new floor instead would also work; this keeps the test's block size and the gate's meaning unchanged. ## Test Test registration only. On Linux, `ctest -N -V` shows the variable on the test. The failure is Windows-only, so Plyxen's run on Windows is the check (the report shows the test passing with this variable set on both Radeon and RTX 5080). Fixes #26650 AI-assisted: yes
Plyxen commented 2026-11-24 15:44:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-11-24T15:44:12Z.

Review: COMMENTED


Windows run on the two GPUs of the report in #26650, AMD included: the test fails on main and passes with this head. One thing to fix before it can go through the queue: the conventions check fails on this head.

Setup: Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release. main 66328cd1ff, and this head 8ee154d051 merged onto it with --no-ff (a2ac9487ba, clean). ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (1.4.363), VK_LOADER_DEBUG=layer, ctest -R '^agc_driver_linear_target_import_creation$' -V, 3 runs per side and GPU.

Radeon gfx1036 iGPU, AMD 26.11.2 RTX 5080, NVIDIA 621.24
main 66328cd1ff fails 3 of 3, private gate: ... was made where it would be compared fails 3 of 3, same message
this head merged passes 3 of 3 passes 3 of 3
  • The loader inserts the layer in every run, none logs was not found but was requested, and there is no VUID- line on either side.
  • ctest --show-only=json-v1 gives the test ANYPS5_NO_SHADER_CACHE=1; APS5_NO_PIPELINE_JOURNAL=1 on main and adds APS5_SETTLE_FLOOR_KIB=1024 with this head, so APPEND keeps the two it already had.

Conventions. The conventions job fails on 8ee154d051 with five findings:

  • agc_driver_linear_target_import_creation_tests.cmake:1 and :2: the two comment lines (Comments are only for technical debt ...). python3 tools/check_conventions.py --base upstream/main --head 8ee154d051 reports the same two locally. None of the other fragments in tests/cmake/ has a comment, and the description already says why the floor is pinned.
  • The description: ### What is ## What, and the ### Tested and ### Checklist headings of the template are missing.

Not run: Linux, where the description says the failure does not occur, and any other test.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6042506695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26662#pullrequestreview-6042506695). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-11-24T15:44:12Z. **Review:** COMMENTED --- Windows run on the two GPUs of the report in #26650, AMD included: the test fails on `main` and passes with this head. One thing to fix before it can go through the queue: the conventions check fails on this head. **Setup:** Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release. `main` `66328cd1ff`, and this head `8ee154d051` merged onto it with `--no-ff` (`a2ac9487ba`, clean). `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (1.4.363), `VK_LOADER_DEBUG=layer`, `ctest -R '^agc_driver_linear_target_import_creation$' -V`, 3 runs per side and GPU. | | Radeon gfx1036 iGPU, AMD 26.11.2 | RTX 5080, NVIDIA 621.24 | |---|---|---| | `main` `66328cd1ff` | fails 3 of 3, `private gate: ... was made where it would be compared` | fails 3 of 3, same message | | this head merged | passes 3 of 3 | passes 3 of 3 | - The loader inserts the layer in every run, none logs `was not found but was requested`, and there is no `VUID-` line on either side. - `ctest --show-only=json-v1` gives the test `ANYPS5_NO_SHADER_CACHE=1; APS5_NO_PIPELINE_JOURNAL=1` on `main` and adds `APS5_SETTLE_FLOOR_KIB=1024` with this head, so `APPEND` keeps the two it already had. **Conventions.** The `conventions` job fails on `8ee154d051` with five findings: - `agc_driver_linear_target_import_creation_tests.cmake:1` and `:2`: the two comment lines (`Comments are only for technical debt ...`). `python3 tools/check_conventions.py --base upstream/main --head 8ee154d051` reports the same two locally. None of the other fragments in `tests/cmake/` has a comment, and the description already says why the floor is pinned. - The description: `### What` is `## What`, and the `### Tested` and `### Checklist` headings of the template are missing. Not run: Linux, where the description says the failure does not occur, and any other test. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-25 13:03:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T13:03:53Z.

Review: COMMENTED


Reviewed — no blocking findings

The change sets the requested settle-floor environment variable on the existing test; I did not run configuration or test commands.

What I ran

Reviewed head f4098ac3d729f0d79dea2467499f711b6484858b. No commands were run. Read the PR description, commit list, diff, manifest, and the full changed CMake file, plus the related settle-floor registrations in agc_driver_recorder_tests.cmake. No files were excluded by the manifest.

Results

Check Result Note
Diff review passed Registration change matches the stated goal
Configuration and tests not run No local run performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

CMake configuration, test registration output, and Windows execution were not run or confirmed. The author reports registration output and Windows test results in the PR description; these were not independently verified. No negative control was run.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6058115398 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26662#pullrequestreview-6058115398). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T13:03:53Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The change sets the requested settle-floor environment variable on the existing test; I did not run configuration or test commands. ## What I ran Reviewed head `f4098ac3d729f0d79dea2467499f711b6484858b`. No commands were run. Read the PR description, commit list, diff, manifest, and the full changed CMake file, plus the related settle-floor registrations in `agc_driver_recorder_tests.cmake`. No files were excluded by the manifest. ## Results | Check | Result | Note | |---|---|---| | Diff review | passed | Registration change matches the stated goal | | Configuration and tests | not run | No local run performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified CMake configuration, test registration output, and Windows execution were not run or confirmed. The author reports registration output and Windows test results in the PR description; these were not independently verified. No negative control was run. ## To get this to a good state Nothing is required.

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