Repository navigation
Conversation
|
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 |
|
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 |
Every 8- and 16-bit BDA store and the unaligned path of every 32-bit store emitted one get_bda_write_pointer lookup and one note_bda_write per byte at the store site, five write lookups per 32-bit store. They now call write_bda_bytes, which loops over the bytes and does, per byte and in order, the same lookup, the store when it is mapped and the write note, so faults are recorded exactly as before. On an RTX 3060 the agc_driver_flat_store binaries shrink from 496,256 to 138,240 bytes (wave32) and from 928,384 to 225,152 bytes (wave64), and the cold run from 19.7 s to 2.2 s.
note_bda_write unrolled its 8 compare-exchange probes, and drivers inline it at every BDA store and atomic. The probes now run in a loop that tries the same slots in the same order and stops at the same slot, so the recorded pages and the overflow flag are unchanged. With the byte store helper, the agc_driver_flat_store binaries on an RTX 3060 go from 138,240 to 75,648 bytes (wave32) and from 225,152 to 130,560 bytes (wave64), and the cold run from 2.2 s to 1.2 s.
… path The declaration, the state field and the definition of write_bda_bytes now sit next to EmitBdaStore and the other BDA write functions instead of next to the dword read functions, which boykopovar#1267 extends at the same lines. No change to the emitted code.
9087d4e to
5110b50
Compare
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 implementation