Validation Framework: asset-free differential testing, regression detection and synthetic replay #2470

Open
opened 2026-11-26 05:06:50 +00:00 by github-bot · 2 comments
Owner

@⁠FunWithFlagsDev on GitHub · 2026-11-25 14:15 UTC · original

<html>

Proposal: VIctory Validation Framework v0.10

Following my previous investigations, I have developed a validation framework intended to complement the existing Fxceless testing infrastructure and reduce dependence on full title execution when investigating correctness and performance regressions.

The objective is to move as much validation as possible toward isolated, reproducible and automated tests, without requiring title files or proprietary assets.

Implemented modules

  • Wave64 differential testing with independent per-lane outputs.

  • Sparse BVH addressing across 64 KiB page and backing-buffer boundaries.

  • Title-memory directory and descriptor coherence, extending the investigation in #937.

  • Texture layout, pitch and buffer-boundary validation.

  • Automated test execution and regression reporting.

  • Paired performance benchmarks with bootstrap confidence intervals.

  • Synthetic command-list and memory replay.

  • Proposed native D3D12 test adapter.

Validation results

All 109 Python tests passed:

Component | Tests passed -- | -- Mathematical models and synthetic replay | 59/59 Existing runners and comparators | 25/25 Native adapter and fixture generator | 9/9 Release audit and integrity checks | 16/16 Total | 109/109

The proposed adapter reuses the project's existing shader translator and D3D12 test infrastructure rather than implementing an alternative translator.

No title files or console SDK are required by the proposed fixtures.

Requested independent validation

I would appreciate assistance from contributors with suitable Windows environments, particularly for:

  1. Reviewing and compiling the proposed test-only Rust changes.

  2. Running the sparse BVH tests on WARP.

  3. Running the Wave64 tests on compatible hardware.

  4. Running the CPU-only texture controls.

  5. Identifying compilation errors, unsupported features or unexpected results.

Please use the dedicated checkout and execution instructions provided in the README, including native_release.py rather than the historical native runner.

Limitations

The Python suite has been executed successfully. The complete source transformation against the actual checkout, native Rust compilation and D3D12 execution have not yet been performed in my environment.

The replay engine is currently a CPU abstraction, not a native GPU capture-and-replay implementation.

This is a release candidate for independent validation, not a claim of native correctness, a confirmed title fix or improved game performance.

Attached package

victory_validation_v10.zip contains the consolidated framework, source proposals, synthetic fixtures, execution reports and technical documentation.

The long-term objective is to help contributors isolate failures, verify proposed fixes and prevent regressions without needing to launch the entire title for every hypothesis.

victory_validation_v10.zip

All current limitations are documented in the README.

Feedback and independent validation are welcome.

</html>
**@⁠FunWithFlagsDev** on GitHub · 2026-11-25 14:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/2470) <html> <body> <!--StartFragment--><h2><span>Proposal: VIctory Validation Framework v0.10</span></h2><p><span>Following my previous investigations, I have developed a validation framework intended to complement the existing Fxceless testing infrastructure and reduce dependence on full title execution when investigating correctness and performance regressions.</span></p><p><span>The objective is to move as much validation as possible toward isolated, reproducible and automated tests, without requiring title files or proprietary assets.</span></p><h3><span>Implemented modules</span></h3><ul><li><p><span>Wave64 differential testing with independent per-lane outputs.</span></p></li><li><p><span>Sparse BVH addressing across 64 KiB page and backing-buffer boundaries.</span></p></li><li><p><span>Title-memory directory and descriptor coherence, extending the investigation in #937.</span></p></li><li><p><span>Texture layout, pitch and buffer-boundary validation.</span></p></li><li><p><span>Automated test execution and regression reporting.</span></p></li><li><p><span>Paired performance benchmarks with bootstrap confidence intervals.</span></p></li><li><p><span>Synthetic command-list and memory replay.</span></p></li><li><p><span>Proposed native D3D12 test adapter.</span></p></li></ul><h3><span>Validation results</span></h3><p><span>All 109 Python tests passed:</span></p> Component | Tests passed -- | -- Mathematical models and synthetic replay | 59/59 Existing runners and comparators | 25/25 Native adapter and fixture generator | 9/9 Release audit and integrity checks | 16/16 Total | 109/109 <p><span>The proposed adapter reuses the project's existing shader translator and D3D12 test infrastructure rather than implementing an alternative translator.</span></p><p><span>No title files or console SDK are required by the proposed fixtures.</span></p><h3><span>Requested independent validation</span></h3><p><span>I would appreciate assistance from contributors with suitable Windows environments, particularly for:</span></p><ol start="1"><li><p><span>Reviewing and compiling the proposed test-only Rust changes.</span></p></li><li><p><span>Running the sparse BVH tests on WARP.</span></p></li><li><p><span>Running the Wave64 tests on compatible hardware.</span></p></li><li><p><span>Running the CPU-only texture controls.</span></p></li><li><p><span>Identifying compilation errors, unsupported features or unexpected results.</span></p></li></ol><p><span>Please use the dedicated checkout and execution instructions provided in the README, including </span><code><span>native_release.py</span></code><span> rather than the historical native runner.</span></p><h3><span>Limitations</span></h3><p><span>The Python suite has been executed successfully. The complete source transformation against the actual checkout, native Rust compilation and D3D12 execution have not yet been performed in my environment.</span></p><p><span>The replay engine is currently a CPU abstraction, not a native GPU capture-and-replay implementation.</span></p><p><span>This is a release candidate for independent validation, not a claim of native correctness, a confirmed title fix or improved game performance.</span></p><h3><span>Attached package</span></h3><p><code><span>victory_validation_v10.zip</span></code><span> contains the consolidated framework, source proposals, synthetic fixtures, execution reports and technical documentation.</span></p><p><span>The long-term objective is to help contributors isolate failures, verify proposed fixes and prevent regressions without needing to launch the entire title for every hypothesis.</span></p><p><span> [victory_validation_v10.zip](https://github.com/user-attachments/files/35416012/victory_validation_v10.zip) All current limitations are documented in the README.</span></p><p><span>Feedback and independent validation are welcome.</span></p><!--EndFragment--> </body> </html>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:06:50 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:55 UTC · original

Automated triage for the maintainers.

Request: a test and validation framework, offered as an attached zip. Triage does not open attachments, so the contents have not been reviewed. Tests that need no title files fit the project's scope. PRs are open to everyone: please open a PR with the Rust test changes you want merged, so they can be reviewed and run in CI (cargo test --workspace and the cargo xtask policy check). Say there what you measured on Windows. Your notes say native compilation and D3D12 runs have not been done yet. Whether a Python harness belongs in the repository is the maintainers' call.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/2470#issuecomment-7167437159) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T14:15:59Z at=2026-11-25T15:55:35Z --> Automated triage for the maintainers. Request: a test and validation framework, offered as an attached zip. Triage does not open attachments, so the contents have not been reviewed. Tests that need no title files fit the project's scope. PRs are open to everyone: please open a PR with the Rust test changes you want merged, so they can be reviewed and run in CI (`cargo test --workspace` and the `cargo xtask` policy check). Say there what you measured on Windows. Your notes say native compilation and D3D12 runs have not been done yet. Whether a Python harness belongs in the repository is the maintainers' call. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Ingenioeren on GitHub · 2026-11-26 12:45 UTC · original

I ran an independent, asset-free boundary check on public main 63bcca4 using the existing BVH test harness. The fixture placed the first 64 bytes of one synthetic box32 node at the end of a 64 KiB page and its final 48 bytes at the start of the next page, in a separate D3D12 backing buffer. The seeded ray was chosen so that clearing the tail changes the reference result. BVH read path · Existing single-page fixture

Page-table setup Windows WARP result
Tail page mapped to its own buffer Hit word 0x5559a4e5, matching the full-node CPU reference
Tail page unmapped via the null pair Four 0xffffffff words, matching the zero-tail reference

Both outcomes matched on all 256 lanes for each of the narrow and wide pointer instructions. The 16 existing victory-formats texture tests also passed offline, including the pitch-overflow and overlapping-slice cases. This verifies these two baseline controls on upstream source. The proposed framework itself still needs its own native build and run.

AI-assisted verification with OpenAI Codex.

**@⁠Ingenioeren** on GitHub · 2026-11-26 12:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/2470#issuecomment-7192423823) I ran an independent, asset-free boundary check on public main `63bcca4` using the existing BVH test harness. The fixture placed the first 64 bytes of one synthetic box32 node at the end of a 64 KiB page and its final 48 bytes at the start of the next page, in a separate D3D12 backing buffer. The seeded ray was chosen so that clearing the tail changes the reference result. [BVH read path](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-shader/src/emit/lower/bvh.rs#L191-L209) · [Existing single-page fixture](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-shader/src/emit/bvh_tests.rs#L816-L838) | Page-table setup | Windows WARP result | | --- | --- | | Tail page mapped to its own buffer | Hit word `0x5559a4e5`, matching the full-node CPU reference | | Tail page unmapped via the null pair | Four `0xffffffff` words, matching the zero-tail reference | Both outcomes matched on all 256 lanes for each of the narrow and wide pointer instructions. The 16 existing `victory-formats` texture tests also passed offline, including the pitch-overflow and overlapping-slice cases. This verifies these two baseline controls on upstream source. The proposed framework itself still needs its own native build and run. AI-assisted verification with OpenAI Codex.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#2470
No description provided.