Test that batched mesh draws preserve per-draw root constants #893
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/894"
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 fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T12:06:56Z.
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.
Imported from fxceless/victory-fork. Originally posted by CooShii on 2026-11-25T12:50:55Z.
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.This was the synthetic fixture, with no game files or gameplay measurements.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.