Test that batched mesh draws preserve per-draw root constants #894

Open
github-bot wants to merge 1 commit from github-bot/gh-894 into main AGit
Owner

@⁠Lkxex on GitHub · 2026-11-25 12:06 UTC · original
Lkxex:proof/mesh-indirect-root-records → main · +193 −1 · 2 files · 1 commits · open

Relates to #828.

Adds a GPU regression test for packing multiple mesh dispatches into one ExecuteIndirect call. The baseline uses the runtime's existing single-record command signature and sets mesh and pixel root constants separately for each draw. The batched path packs distinct constants with two nonadjacent records from the existing GPU argument clamp. The test compares every pixel against the baseline and checks that both expected colors are rendered.

Passed on a Radeon RX 6600 with the D3D12 debug layer enabled. This adds the regression test only. Runtime draw batching, NVIDIA verification, and in-game performance measurements are still pending.

AI-assisted.

**@⁠Lkxex** on GitHub · 2026-11-25 12:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/894) `Lkxex:proof/mesh-indirect-root-records` → `main` · +193 −1 · 2 files · 1 commits · open Relates to #828. Adds a GPU regression test for packing multiple mesh dispatches into one ExecuteIndirect call. The baseline uses the runtime's existing single-record command signature and sets mesh and pixel root constants separately for each draw. The batched path packs distinct constants with two nonadjacent records from the existing GPU argument clamp. The test compares every pixel against the baseline and checks that both expected colors are rendered. Passed on a Radeon RX 6600 with the D3D12 debug layer enabled. This adds the regression test only. Runtime draw batching, NVIDIA verification, and in-game performance measurements are still pending. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:53:22 +00:00
Author
Owner

@⁠CooShii on GitHub · 2026-11-25 12:50 UTC · original

Verified on an RTX 5080 with NVIDIA driver 621.01, Windows 11 25H2 (build 26200.9974), Rust 1.98.1 MSVC, and DXC from Windows SDK 10.0.26100.0.

The unmodified test passed at 910ea45f4e568ff4e1a53cb3a31cdf4acfeb3d70. The batched and individual draws matched pixel for pixel. A second run confirmed that D3D12 selected the RTX 5080. The D3D12 debug layer was unavailable on this machine.

cargo test --locked -p victory-gpu --features diagnostics --lib pipeline::host::tests::indirect_mesh_batch_preserves_per_record_root_constants -- --exact --nocapture

This was the synthetic fixture, with no game files or gameplay measurements.

**@⁠CooShii** on GitHub · 2026-11-25 12:50 UTC · [original](https://github.com/fxceless/victory-fork/pull/894#issuecomment-7162940539) Verified on an RTX 5080 with NVIDIA driver 621.01, Windows 11 25H2 (build 26200.9974), Rust 1.98.1 MSVC, and DXC from Windows SDK 10.0.26100.0. The unmodified test passed at `910ea45f4e568ff4e1a53cb3a31cdf4acfeb3d70`. The batched and individual draws matched pixel for pixel. A second run confirmed that D3D12 selected the RTX 5080. The D3D12 debug layer was unavailable on this machine. ```powershell cargo test --locked -p victory-gpu --features diagnostics --lib pipeline::host::tests::indirect_mesh_batch_preserves_per_record_root_constants -- --exact --nocapture ``` This was the synthetic fixture, with no game files or gameplay measurements.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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