feat(tools): integrate Benchmark Suite with production Vulkan and Nextgen CI #568

Open
github-bot wants to merge 78 commits from github-bot/gh-568 into main AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-05 09:53 UTC · original
tommiehansen:tools/benchmark-vulkan-upstream → main · +28130 −104 · 123 files · 78 commits · open

Upstream CI — all seven active jobs passed

Validation Result
Linux CPU and Windows native smoke Passed
macOS ARM64 smoke Passed
Repository policy Passed
Vulkan software correctness Passed
Nextgen subgroup and bindless controls Both executed and passed
Production Vulkan 4/4 exact raw arms; corrupted oracle rejected

Smoke · Nextgen · Production.

This validates the upstream PR integration (production job reports test merge revision 88ecf1c). Self-hosted hardware GPU job skipped. Software Vulkan does not establish physical AMD performance.


Purpose

Bring the validated optional Vulkan execution path, Nextgen CI and Production Vulkan CI into upstream. This is an integration alternative built directly on the review-scoped #322 head cde5334; it consolidates the implementation from fork #6–13 at cf40ea3 and includes the scoped source-policy compatibility from #539. Review #322 separately if a smaller first merge is preferred. Do not merge overlapping versions blindly.

The 61-file incremental change from #322 consists of benchmark sources, three CI workflows and scoped policy compatibility. Repository-wide agent instructions are intentionally excluded. No new gameplay defaults or title assets.

Incremental review diff

What is actually executed

Validation Evidence
Nextgen subgroup arithmetic Synthetic shader executed; passed
Nextgen bindless storage array Synthetic shader executed; passed
Production Root-UAV Production guest shader translated to DXIL, converted to two distinct SPIR-V programs, executed; 4/4 raw arms verified against independent bytes
Deliberately corrupted oracle Explicitly rejected, no successful timing report
Guest paging (#467, separate audit) Both original divergent fixtures executed; 8/8 raw arms exact
Native hardware GPU Optional; not exercised by hosted software CI
Mesh / HWRT Static tooling and capability checks; complete production execution not yet established

Hosted CI uses software Vulkan, not physical AMD silicon. No GPU-performance or gameplay FPS claim.

Recorded validation of source implementation

The fork implementation at cf40ea3 passed seven active jobs (Windows, Linux CPU/native, macOS ARM64, software Vulkan, production Vulkan and repository policy). Hosted Nextgen logs report 74 portable and 78 nextgen Python tests, with both execution controls complete.

The integration head b538c2f has now passed all seven active upstream CI jobs (see above). Unsupported controls are reported as incomplete, not successful execution. Normal CPU-only operation remains available.

Merge plan

Either land this integration alternative after review, or land #322 first and reconcile the incremental diff and #528/#539 policy changes against the resulting main. Maintainer approval is required; no direct upstream merge requested.

Follow-up: CPU report gate (2026-12-05)

The PR queue Standard artifacts show rounds=8, 16 schedule entries (four ABBA blocks), and eight raw run medians per arm. portable-gpu/auto_pr.py currently interprets rounds as the number of blocks (['A','B','B','A'] * n and 2*n arm medians). It therefore rejects valid CPU timing reports as missing ABBA schedule. Independently verified all 16 checkpoints and raw samples on eight completed comparisons; preserve strict validation but derive blocks from the schedule and verify rounds as runs per arm. Add Quick/Standard positive and missing-arm negative regression tests before enabling automatic timing verdicts. Separate #467 fallback-equivalence failure remains unresolved; do not bypass it. Queue evidence.

Report gate fix

Commit 418c017 now interprets rounds as runs per arm and checks exact four-entry ABBA blocks, sample counts and minimum block count before publication. Test fixtures follow the Rust protocol; negative tests reject inconsistent, odd and truncated schedules. Fresh CI pending.

ABBA repair validation

At 418c017, Python regression suite completed: 75 tests run, 1 skipped, 74 passed, including actual runs-per-arm schedule and incomplete-schedule rejection. CI. Nextgen native and Production Vulkan checks also passed; Benchmark Smoke still running at this check.

ABBA review fix verified

Revision 418c017 passes the dedicated portable Python test suite: 75 tests run, 74 passed and one skipped, including actual runs-per-arm schedule and truncated-schedule rejection. CI. This verifies the reporting fix, not GPU performance.

Reconciled integration validation

Current head 0b9da4d is mergeable. All seven active jobs passed: Benchmark Smoke, Nextgen, Production Vulkan. Self-hosted GPU skipped. The consolidated fork delta retains all 62 paths, 59 byte-identical; the other three are documentation and the ABBA report fix/tests. This is CI/functional validation, not physical AMD performance.

Upstream reconciliation

e8134b5 reconciles with #322 and preserves all 61 incremental paths. 53e7ddc adds review-branch push triggers so current-head validation runs in the fork: Smoke, Nextgen, Production Vulkan. Pending at review.

**@⁠tommiehansen** on GitHub · 2026-12-05 09:53 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/568) `tommiehansen:tools/benchmark-vulkan-upstream` → `main` · +28130 −104 · 123 files · 78 commits · open ## Upstream CI — all seven active jobs passed | Validation | Result | |---|---| | Linux CPU and Windows native smoke | Passed | | macOS ARM64 smoke | Passed | | Repository policy | Passed | | Vulkan software correctness | Passed | | Nextgen subgroup and bindless controls | Both executed and passed | | Production Vulkan | 4/4 exact raw arms; corrupted oracle rejected | [Smoke](https://github.com/lobomfz/VIctory-xmem/actions/runs/47506591579) · [Nextgen](https://github.com/lobomfz/VIctory-xmem/actions/runs/47506591531) · [Production](https://github.com/lobomfz/VIctory-xmem/actions/runs/47506591620). This validates the upstream PR integration (production job reports test merge revision `88ecf1c`). Self-hosted hardware GPU job skipped. Software Vulkan does not establish physical AMD performance. --- ## Purpose Bring the validated optional Vulkan execution path, Nextgen CI and Production Vulkan CI into upstream. This is an integration alternative built directly on the review-scoped #322 head `cde5334`; it consolidates the implementation from fork #6–13 at `cf40ea3` and includes the scoped source-policy compatibility from #539. Review #322 separately if a smaller first merge is preferred. Do not merge overlapping versions blindly. The 61-file incremental change from #322 consists of benchmark sources, three CI workflows and scoped policy compatibility. Repository-wide agent instructions are intentionally excluded. No new gameplay defaults or title assets. [Incremental review diff](https://github.com/tommiehansen/VIctory-xmem/compare/cde5334d1976e57824369d0a852ccf24c9360ede...b538c2fc85762339dc6180ea8873432428a1861a) ## What is actually executed | Validation | Evidence | | --- | --- | | Nextgen subgroup arithmetic | Synthetic shader executed; passed | | Nextgen bindless storage array | Synthetic shader executed; passed | | Production Root-UAV | Production guest shader translated to DXIL, converted to two distinct SPIR-V programs, executed; 4/4 raw arms verified against independent bytes | | Deliberately corrupted oracle | Explicitly rejected, no successful timing report | | Guest paging (#467, separate audit) | Both original divergent fixtures executed; 8/8 raw arms exact | | Native hardware GPU | Optional; not exercised by hosted software CI | | Mesh / HWRT | Static tooling and capability checks; complete production execution not yet established | Hosted CI uses software Vulkan, not physical AMD silicon. No GPU-performance or gameplay FPS claim. ## Recorded validation of source implementation The fork implementation at `cf40ea3` passed seven active jobs (Windows, Linux CPU/native, macOS ARM64, software Vulkan, production Vulkan and repository policy). Hosted Nextgen logs report 74 portable and 78 nextgen Python tests, with both execution controls complete. - [Benchmark smoke](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47503521113) - [Nextgen](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47503521097) - [Production Vulkan](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47503521093) - [Exact paging audit](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47503537144) The integration head `b538c2f` has now passed all seven active upstream CI jobs (see above). Unsupported controls are reported as incomplete, not successful execution. Normal CPU-only operation remains available. ## Merge plan Either land this integration alternative after review, or land #322 first and reconcile the incremental diff and #528/#539 policy changes against the resulting main. Maintainer approval is required; no direct upstream merge requested. ### Follow-up: CPU report gate (2026-12-05) The PR queue Standard artifacts show `rounds=8`, 16 schedule entries (four ABBA blocks), and eight raw run medians per arm. `portable-gpu/auto_pr.py` currently interprets `rounds` as the number of blocks (`['A','B','B','A'] * n` and `2*n` arm medians). It therefore rejects valid CPU timing reports as missing ABBA schedule. Independently verified all 16 checkpoints and raw samples on eight completed comparisons; preserve strict validation but derive blocks from the schedule and verify `rounds` as runs per arm. Add Quick/Standard positive and missing-arm negative regression tests before enabling automatic timing verdicts. Separate #467 fallback-equivalence failure remains unresolved; do not bypass it. [Queue evidence](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47512649200). ### Report gate fix Commit `418c017` now interprets `rounds` as runs per arm and checks exact four-entry ABBA blocks, sample counts and minimum block count before publication. Test fixtures follow the Rust protocol; negative tests reject inconsistent, odd and truncated schedules. Fresh CI pending. ### ABBA repair validation At `418c017`, Python regression suite completed: 75 tests run, 1 skipped, 74 passed, including actual runs-per-arm schedule and incomplete-schedule rejection. [CI](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47517950486/job/145667597679). Nextgen native and Production Vulkan checks also passed; Benchmark Smoke still running at this check. ### ABBA review fix verified Revision `418c017` passes the dedicated portable Python test suite: 75 tests run, 74 passed and one skipped, including actual runs-per-arm schedule and truncated-schedule rejection. [CI](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47517950486/job/145667597679). This verifies the reporting fix, not GPU performance. ### Reconciled integration validation Current head `0b9da4d` is mergeable. All seven active jobs passed: [Benchmark Smoke](https://github.com/lobomfz/VIctory-xmem/actions/runs/47554483608), [Nextgen](https://github.com/lobomfz/VIctory-xmem/actions/runs/47554483627), [Production Vulkan](https://github.com/lobomfz/VIctory-xmem/actions/runs/47554483583). Self-hosted GPU skipped. The consolidated fork delta retains all 62 paths, 59 byte-identical; the other three are documentation and the ABBA report fix/tests. This is CI/functional validation, not physical AMD performance. ### Upstream reconciliation `e8134b5` reconciles with #322 and preserves all 61 incremental paths. `53e7ddc` adds review-branch push triggers so current-head validation runs in the fork: [Smoke](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47567740696), [Nextgen](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47567740702), [Production Vulkan](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47567740735). Pending at review.
Add tools/benchmark-suite with deterministic CPU workloads, production crate adapters (xmem), isolated git worktree/archive revision comparison, Welch t-test statistical classification, HTML/CSV/Markdown/JSON reports, CI smoke workflow, and AGENTS.md/CLAUDE.md/GEMINI.md instructions.
Match GitHub PR metadata against the fetched base and head and retain a repository-scoped cache for explicit offline runs. Build both revisions with the same harness, strip ambient game feature overrides, and report actionable exit statuses for automation.
Keep run medians and aggregate secondary metrics across runs. Treat each complete ABBA block as one replicate, publish confidence intervals and estimated sensitivity, and refuse inference from incompatible or unreplicated measurements. Exercise the statistics with controlled changes in production tile and detile work.
Move the renderer’s bake candidate selection and texture prefetch cap into a Rust module shared with the benchmark. Check output against deterministic references and scale layout production calls to 4,096–50,000 descriptors. Mark historical revisions without the portable implementation unsupported.
Build the existing rtbench separately, verify its source revision and live DXGI adapter, and report queue timestamps only after checking shader output against a CPU reference. Provide explicit Lavapipe and WARP modes with their own workload size, enforce timeout and completeness checks, and expose an optional GPU CI run.
Share the residency worker’s weighted page selection, bounded coalescing and adaptive budget logic with a portable CPU workload. Validate the selected pages, run structure and budget thresholds while leaving live driver migration outside this test.
Fetch the exact GitHub object IDs when a PR points behind the current branch tips and freeze a single harness before materializing either checkout. Exercise machine-readable failure statuses and document the eight-PR matrix, including successful offline replay and explicit gaps in host coverage.
Compile the residency planning items directly from each historical snapshot, adjusting visibility only. Benchmark capped and all-candidates-fit migration plans with independent page and run validation.
Record explicit stages, fixture hashes and operation counts and reject mismatches before displaying aggregate timing. Hash ordered outputs and verify the actual emitted DXIL outside timed loops. Distinguish the portable worker fallback from production D3D12.X synchronization.
Associate diff ranges with changed Rust functions, keep file mappings explicitly inferred, and gate all runtime changes on verified function execution. Require matching rejected cases and optimization-specific signatures before reporting shader activation.
Compile the original range and collector bodies directly from each snapshot. Compare ordered candidate results across sparse and overflowing fixtures and validate the completeness marker on revisions that emit it.
Publish independent fingerprints and a JSON capability manifest. Permit compatible fork adapters with matching workload and output contracts, retain toolchain and production provenance, and reject incompatible workload definitions.
Use changed paths to select suites unless the caller overrides them. Skip historical builds for documentation-only PRs. Publish source snapshots atomically under a revision and harness content key so Cargo can reuse compatible builds on subsequent runs.
Apply an optional deadline to compilation and measurement processes. Write each completed round atomically into a persistent attempt directory and retain it if a later round fails. Test subprocess termination and checkpoint recovery.
Run the original GPU-written mask and staging precheck code with deterministic prior-list and boundary fixtures. Replay residency ranking against each revision’s real weight and migration functions, and validate the selected priority set and exact output digests.
Compare the production descriptor fold and index and exercise the historical queue selectors under deterministic pressure. Verify policy variants against independent references, batch short queue samples, and prevent unnecessary Cargo rebuilds when optional sources are absent.
Keep upstream's expanded RT diagnostic intact and isolate the revision-bound Benchmark Suite probe in its own test module. Report the newly indexed upstream texture queue as unsupported by the historical adapter until its required state is available.
Keep upstream draw.rs intact, including #310's overflow handling and preparation decisions. Prefer the existing historical bake extractor when the tested revision exposes those functions in draw.rs, while retaining the portable prefetch policy and fallback for older benchmark snapshots. No changes to unrelated branches.
Preserve the latest upstream residency fast paths in the portable planner, direct pool indexing and migration cadence, shader cache version and regression coverage.
Keep the Rust switch check and also recognize whole shell parameter names. Add regression coverage for defaults, exact names, escaped expansions and comments. Integrate the latest upstream cleanup of local symlinks.
Record the paired translation timing and DXIL counts for shifted and wide scalar loads with both guest-load switches held constant. Distinguish structural checks from GPU equivalence.
Preserve the measured trace overhead and the telemetry-fallback validation without inferring migration or frame-time benefits.
Correct the refresh length and miss handling, record each list once, and time four wide submissions with a partial cache miss. Check the folded output against upstream’s two-stage span semantics and report the matched cache-toggle result.
Interpret run differences as promotions and deferrals, retain the original selection in shadow mode, and hash complete run identities. Separate the measured ranking cost from migration outcomes and credit the existing outcome-tracking contribution.
Resolve stream policy modules relative to the selected production snapshot, adapt the ready index and count only due entries visited by upstream’s indexed scan. Validate membership, stamps and admission on both sides.
Keep the earlier interval timings separate from the independent native Windows correctness tests and identify the remaining Wine and hardware validation.
Record matched patch-model activation, lookup counts and interval digests for #217, and distinguish the standalone validation from a Mesa build or hardware test.
Record matched output with fewer synthetic sorts, the context for the separate C model, and the hunk offset adjustments required when #217 and #222 land together.
Compile the native benchmark adapter without importing the private victory-gpu This alias. Preserve the same pointer representation and keep the internal API private.
Remove the Windows-only needless return in the platform-specific GPU detection branch that native Clippy reported.
Compile and lint the MSVC-only adapter, run native correctness and smoke tests, then execute the release CPU-only runner directly and publish its result artifacts.
Create and release a device for the selected hardware adapter or WARP, verify the adapter class, and report the device name or capability failure. CPU-only runs still bypass device creation.
Start bounded Windows commands suspended, assign them to a kill-on-close Job Object, and resume the initial thread only after containment. Exercise timeout cleanup with a native grandchild test.
Use native PowerShell JSON parsing to identify the Cargo test executable without Git Bash or jq. Exercise the builder and capture hardware and software capability reports in Windows CI.
Show direct Cargo and PowerShell commands, explain the virtual arena reservation separately from resident memory, and record the independent Windows review fixes and their validation status.
The hosted Windows smoke runner hit an access violation because recording a non-null SRV inspects the resource object. Exercise the supported null-resource path and add a focused native descriptor regression test while retaining CBV, sampler and copy coverage.
Link the native Actions run and record smoke workload counts, timeout cleanup, the descriptor fixture fix, and the reported hardware and WARP capabilities.
Extract the actual predicate and bitmap code from each revision. Measure clean and mixed wide ranges, verify the boundary oracle and missing-bit rejection, and report which implementation ran. Record the matched #381 results without attributing them to kernel or frame-time speedups.
Resolve Windows roots without introducing a verbatim prefix that breaks MSVC while preserving UNC paths and Unix canonicalization. Exercise an explicit-root self-comparison in native CI, point Windows users to the PowerShell GPU builder, and record independent validation.
Use a compact digest of the full production revision and benchmark harness for Windows snapshots. The same key shortens Cargo output paths so BLAKE3 object-file arguments stay within MASM limits on the hosted runner.
Compile the revision’s barrier parser, scope preflight, host state predicate and thin decoder. Check an explicit synthetic dependency matrix against legacy waits and report predicted emissions, fallback reasons and paired CPU planning costs.
Use the compared revision’s production range collector and eviction loop to measure repeated versus batched scans across four representative tables. Verify all survivors against an independent range union and report traversals and CPU timing. Preserve historical RT texture queue census counters so those snapshots compile, and mark the new workload unsupported where the RT collector is absent.
Exercise the production address map on sparse and dense invalidations, empty build-overlap queries and lookup/replace/insert churn. Compare every surviving map with an independent fixture and report unsupported on older source snapshots. Record the paired results and reproduction steps in PROGRESS.md.
Run the historical mutex and current atomic gate with empty, contended and pending batches. Add scattered address churn alongside the existing sparse and dense index cases, and record paired before/after and index-only comparisons for the PR #429 review.
Add fragmented and wide-address dense cases, including verified eviction callbacks, reinsertion and subsequent lookup. Record all six dense cases against the flat hash control in the Standard and Full profiles, alongside the remaining insertion tradeoffs.
The cache and command list can retire separate references to the same immutable snapshot. Count each deferred GPU address once so overlapping references do not imply extra allocated memory. Check that the deferred queue drains and its high-water mark fits within the modeled live allocation peak.
Apply the reviewed portable GPU package core. Allow a full, verified ancestor to isolate a stacked PR and record the resolved baseline in reports. Select ray-tracing fixtures for native HWRT changes and disclose the limits of CPU-only module coverage. Test strict ancestry, baseline rejection and workload selection.
Carry exact reviewed benchmark implementation blobs from cf40ea3; preserve #322's review scope and exclude repository-wide agent guidance. Includes scoped source-policy compatibility.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 09:56:38 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/568/head:github-bot/gh-568'
git switch 'github-bot/gh-568'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-568'
git switch 'github-bot/gh-568'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-568'
git switch 'github-bot/gh-568'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-568'
git switch 'main'
git merge --squash 'github-bot/gh-568'
git switch 'main'
git merge --ff-only 'github-bot/gh-568'
git switch 'main'
git merge 'github-bot/gh-568'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.