test(agc): bound cold store kernels without reducing coverage #1999

Closed
kali113 wants to merge 6 commits from upstream-pr/1999 into main
kali113 commented 2026-10-09 04:32:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kali113 on 2026-10-09T04:32:51Z.


What

The FLAT-store and VCC-base execution tests still approach or exceed CONTRIBUTING.md's 30-second limit when Mesa shader caching is disabled and four tests contend for the CI runner's cores. Splitting only by wave size was insufficient: individual monolithic shaders still timed out.

Register bounded instruction groups:

  • FLAT stores: scalar address forms, load-after-store with EXEC masking, byte/halfword, unaligned dword, and each vector width. Each group runs wave32, wave64 and read-only cases: 21 registered tests.
  • VCC global bases: dword load, vector load and returning atomic, each in wave32, wave64 and split-wave64 modes. Keep all three existing ADDTID modes: 12 registered tests.

Build each kernel from unchanged instruction words in the original arrays. Keep the original 64-thread workgroup, input values, output locations, memory comparisons, rejection checks and capability gates. The feedback group includes the store that feeds its subsequent load. Every group also checks untouched memory, and each FLAT group retains its read-only assertion. Keep the existing serial scheduling of the primary FLAT test; the validation run also disables that property to test it under contention. Set each registered case's timeout to 30 seconds.

No production shader semantics, guest-memory policy or timeout increase is included in this PR's own change. Default executable invocations still exercise all scenarios.

Depends on: #1265, #1913

The branch carries popcoder565's three existing BDA code-size commits from #1265 and gunerky's bounded TLS groups from #1913 with original authorship. The own test change is 5110b507. Merge prerequisites first. Duplicate check: the 526-open-PR audit found the production optimization in #1265 and the existing TLS grouping in #1913; neither divides these store shader kernels into bounded instruction groups.

The overlap bot's #1971 comment refers to the earlier registration layout. The existing primary serial-property line is retained, and a local merge of this head with latest #1971 (e3180e13) is clean. #1971 is not required for these tests.

Tested

Current head 9a3ddebe incorporates upstream main a8b032b2 (#2083) without conflicts. All latest checks pass (full upstream CI). Linux: 558 registered cases, zero failures, longest 22.10 s. Windows: 549 registered cases, zero failures, longest 14.35 s. No test exceeds 30 seconds. Windows Vulkan cases skip when no usable device is available; Linux executes them on lavapipe.

Before reopening this PR, native Linux/Windows validation on validation head 8aa8cffc, which differs from source head 5110b507 only by its validation workflow:

  • Linux Release / GCC / lavapipe, project CI configuration with SPIR-V Tools enabled: all 33 registered cases pass under an enforced 30-second limit, four concurrent tests, and MESA_SHADER_CACHE_DISABLE=true. Each executable case passed three times (90 executions); three ADDTID modes skip on lavapipe's eight-lane subgroups. Longest cold case: 15.06 seconds. The validation disables the primary case's existing serial property too, so this includes contention for every executed case.

  • Windows Release / WinLibs GCC 15.2: both executables build; all 33 registered modes skip correctly without a usable Vulkan device (longest 0.18 seconds). No Windows GPU execution is claimed.

  • Conventions, registration check and git diff --check pass. No physical-GPU, console or title testing is claimed for this test-only change.

Checklist

  • Based on current main (a8b032b2); no duplicate open implementation
  • One test-runtime topic; prerequisites named and credited
  • No new code comments, silent stubs, third-party dependencies or investigation files
  • All original memory-operation instructions retained at their original boundaries
  • Native Linux cold Vulkan cases under parallel contention
  • Native Windows build and capability checks
  • Depends on: #1265, #1913
  • AI-assisted: yes, OpenAI Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4796004374 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1999). Originally posted by [kali113](https://github.com/kali113) on 2026-10-09T04:32:51Z. --- ### What The FLAT-store and VCC-base execution tests still approach or exceed CONTRIBUTING.md's 30-second limit when Mesa shader caching is disabled and four tests contend for the CI runner's cores. Splitting only by wave size was insufficient: individual monolithic shaders still timed out. Register bounded instruction groups: - FLAT stores: scalar address forms, load-after-store with EXEC masking, byte/halfword, unaligned dword, and each vector width. Each group runs wave32, wave64 and read-only cases: 21 registered tests. - VCC global bases: dword load, vector load and returning atomic, each in wave32, wave64 and split-wave64 modes. Keep all three existing ADDTID modes: 12 registered tests. Build each kernel from unchanged instruction words in the original arrays. Keep the original 64-thread workgroup, input values, output locations, memory comparisons, rejection checks and capability gates. The feedback group includes the store that feeds its subsequent load. Every group also checks untouched memory, and each FLAT group retains its read-only assertion. Keep the existing serial scheduling of the primary FLAT test; the validation run also disables that property to test it under contention. Set each registered case's timeout to 30 seconds. No production shader semantics, guest-memory policy or timeout increase is included in this PR's own change. Default executable invocations still exercise all scenarios. Depends on: #1265, #1913 The branch carries popcoder565's three existing BDA code-size commits from #1265 and gunerky's bounded TLS groups from #1913 with original authorship. The own test change is `5110b507`. Merge prerequisites first. Duplicate check: the 526-open-PR audit found the production optimization in #1265 and the existing TLS grouping in #1913; neither divides these store shader kernels into bounded instruction groups. The overlap bot's #1971 comment refers to the earlier registration layout. The existing primary serial-property line is retained, and a local merge of this head with latest #1971 (`e3180e13`) is clean. #1971 is not required for these tests. ### Tested Current head `9a3ddebe` incorporates upstream `main` `a8b032b2` (#2083) without conflicts. All latest checks pass ([full upstream CI](https://github.com/boykopovar/AnyPS5/actions/runs/37898974462)). Linux: **558 registered cases, zero failures, longest 22.10 s**. Windows: **549 registered cases, zero failures, longest 14.35 s**. No test exceeds 30 seconds. Windows Vulkan cases skip when no usable device is available; Linux executes them on lavapipe. Before reopening this PR, [native Linux/Windows validation](https://github.com/kali113/AnyPS5/actions/runs/37890374946) on validation head `8aa8cffc`, which differs from source head `5110b507` only by its validation workflow: - Linux Release / GCC / lavapipe, project CI configuration with SPIR-V Tools enabled: all 33 registered cases pass under an enforced 30-second limit, four concurrent tests, and `MESA_SHADER_CACHE_DISABLE=true`. Each executable case passed three times (90 executions); three ADDTID modes skip on lavapipe's eight-lane subgroups. Longest cold case: **15.06 seconds**. The validation disables the primary case's existing serial property too, so this includes contention for every executed case. - Windows Release / WinLibs GCC 15.2: both executables build; all 33 registered modes skip correctly without a usable Vulkan device (longest 0.18 seconds). No Windows GPU execution is claimed. - Conventions, registration check and `git diff --check` pass. No physical-GPU, console or title testing is claimed for this test-only change. ### Checklist - [x] Based on current `main` (`a8b032b2`); no duplicate open implementation - [x] One test-runtime topic; prerequisites named and credited - [x] No new code comments, silent stubs, third-party dependencies or investigation files - [x] All original memory-operation instructions retained at their original boundaries - [x] Native Linux cold Vulkan cases under parallel contention - [x] Native Windows build and capability checks - [x] Depends on: #1265, #1913 - [x] AI-assisted: yes, OpenAI Codex
MarcZX10 commented 2026-10-09 04:41:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T04:41:50Z.


I reviewed the three-file diff and exact-head CI. Build and Conventions pass, and Windows CTest passes. Linux CTest fails six cases at the 30-second limit: the existing agc_driver_flat_store (30.08 s) and agc_driver_global_vcc_base (30.05 s), plus new flat_store_wave64 (30.07 s), flat_store_read-only (30.07 s), global_vcc_base_base-wave64 (30.05 s), and global_vcc_base_base-split (30.05 s). The three addtid cases skipped on lavapipe capability. These timeouts mean the scenario assertions did not complete, and the split does not meet CONTRIBUTING.md’s per-test 30-second limit on the cold Linux runner. Please reduce the cold work in each case while keeping the first-run/no-cache coverage requirement; increasing the timeout would conflict with the project rule. The draft status is appropriate until Linux passes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074406121 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1999#issuecomment-6074406121). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T04:41:50Z. --- I reviewed the three-file diff and exact-head CI. Build and Conventions pass, and Windows CTest passes. Linux CTest fails six cases at the 30-second limit: the existing `agc_driver_flat_store` (30.08 s) and `agc_driver_global_vcc_base` (30.05 s), plus new `flat_store_wave64` (30.07 s), `flat_store_read-only` (30.07 s), `global_vcc_base_base-wave64` (30.05 s), and `global_vcc_base_base-split` (30.05 s). The three addtid cases skipped on lavapipe capability. These timeouts mean the scenario assertions did not complete, and the split does not meet CONTRIBUTING.md’s per-test 30-second limit on the cold Linux runner. Please reduce the cold work in each case while keeping the first-run/no-cache coverage requirement; increasing the timeout would conflict with the project rule. The draft status is appropriate until Linux passes.
MarcZX10 commented 2026-10-09 04:52:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T04:52:15Z.


I checked the current head and run 37885025886: Linux and Windows Build/CTest now pass, including the 30-second reporting step. The only current failure I found is Conventions on commit 117788aa (Revert "test(agc): run expensive store scenarios independently"), as the log confirms. Since you say this scratch-revert history will not be carried into #1829, the draft can remain a validation reference; if you want this PR itself reviewable, the commit subject/history needs a Conventional Commits cleanup before the checks will be green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074512848 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1999#issuecomment-6074512848). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T04:52:15Z. --- I checked the current head and run 37885025886: Linux and Windows Build/CTest now pass, including the 30-second reporting step. The only current failure I found is Conventions on commit `117788aa` (`Revert "test(agc): run expensive store scenarios independently"`), as the log confirms. Since you say this scratch-revert history will not be carried into #1829, the draft can remain a validation reference; if you want this PR itself reviewable, the commit subject/history needs a Conventional Commits cleanup before the checks will be green.
copilot-pull-request-reviewer[bot] commented 2026-10-09 06:52:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-09T06:52:22Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5466783899 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1999#pullrequestreview-5466783899). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-09T06:52:22Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
oneandonlydean commented 2026-10-09 08:53:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:59Z.


Closing: #1265 takes agc_driver_flat_store from 19.7 s to 1.2 s and agc_driver_global_vcc_base from 6.9 s to 1.5 s on a cold run, which removes the timeout this splits around. If one of them still passes 30 s after #1265 is in, please reopen with only the test change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077694058 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1999#issuecomment-6077694058). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:53:59Z. --- Closing: #1265 takes `agc_driver_flat_store` from 19.7 s to 1.2 s and `agc_driver_global_vcc_base` from 6.9 s to 1.5 s on a cold run, which removes the timeout this splits around. If one of them still passes 30 s after #1265 is in, please reopen with only the test change.

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