test(agc): bound cold store kernels without reducing coverage #1999
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1999"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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
9a3ddebeincorporates upstreammaina8b032b2(#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 head5110b507only 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 --checkpass. No physical-GPU, console or title testing is claimed for this test-only change.Checklist
main(a8b032b2); no duplicate open implementationImported 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) andagc_driver_global_vcc_base(30.05 s), plus newflat_store_wave64(30.07 s),flat_store_read-only(30.07 s),global_vcc_base_base-wave64(30.05 s), andglobal_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.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.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.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:59Z.
Closing: #1265 takes
agc_driver_flat_storefrom 19.7 s to 1.2 s andagc_driver_global_vcc_basefrom 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