test(gpu): use the SDK root parameter in the serializer fixture #36

Manually merged
github merged 1 commit from gh-pr/36/head into gh-pr/36/base 2026-11-26 03:47:27 +00:00
Owner

@⁠jeremygold02 on GitHub · 2026-11-23 23:30 UTC · original
jeremygold02:codex/root-parameter-fixture → main · +14 −14 · 1 files · 1 commits · merged 2026-11-24 00:40 UTC

The Windows GPU test for host-serialized root signatures constructs a root parameter containing one 32-bit constant at register b0. The hand-written five-word struct places the native union four bytes too early on x64. D3D12SerializeRootSignature reads zero for the constant count and returns E_INVALIDARG.

Use the project's existing Windows SDK bindings to construct that parameter. The original assertions on the serialized blob and root signature still run. The change is confined to the test fixture.

Verified on Windows 11 x64, Core Ultra 7 265K and GeForce RTX 5070 (driver 621.01), with the diagnostics feature. The GPU suite on 8c26061 passed 36 of 37 tests. The root test source was identical at 1dd7afd. With this fix based on 1dd7afd, the focused test passed and the full suite passed 37 of 37, with zero ignored.

cargo test --locked --profile diag -p victory-gpu --features diagnostics --lib -- --test-threads=1

This addresses the independent baseline test failure mentioned in #20. Developed with AI assistance.

**@⁠jeremygold02** on GitHub · 2026-11-23 23:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/36) `jeremygold02:codex/root-parameter-fixture` → `main` · +14 −14 · 1 files · 1 commits · merged 2026-11-24 00:40 UTC The Windows GPU test for host-serialized root signatures constructs a root parameter containing one 32-bit constant at register b0. The hand-written five-word struct places the native union four bytes too early on x64. D3D12SerializeRootSignature reads zero for the constant count and returns E_INVALIDARG. Use the project's existing Windows SDK bindings to construct that parameter. The original assertions on the serialized blob and root signature still run. The change is confined to the test fixture. Verified on Windows 11 x64, Core Ultra 7 265K and GeForce RTX 5070 (driver 621.01), with the diagnostics feature. The GPU suite on 8c26061 passed 36 of 37 tests. The root test source was identical at 1dd7afd. With this fix based on 1dd7afd, the focused test passed and the full suite passed 37 of 37, with zero ignored. `cargo test --locked --profile diag -p victory-gpu --features diagnostics --lib -- --test-threads=1` This addresses the independent baseline test failure mentioned in #20. Developed with AI assistance.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:47:26 +00:00
github manually merged commit 29b558c263 into gh-pr/36/base 2026-11-26 03:47:27 +00:00
Author
Owner

@⁠pagingred on GitHub · 2026-11-23 23:39 UTC · original

Verified on Windows 11 x64, Intel(R) Core(TM) i9-14900K and GeForce RTX 3090 (driver 621.24)

**@⁠pagingred** on GitHub · 2026-11-23 23:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/36#issuecomment-7117209247) Verified on Windows 11 x64, Intel(R) Core(TM) i9-14900K and GeForce RTX 3090 (driver 621.24)
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!36
No description provided.