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

Merged
jeremygold02 merged 1 commit from upstream-pr/36 into main 2026-11-24 00:40:04 +00:00
jeremygold02 commented 2026-11-23 23:30:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-23T23:30:46Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6571032461 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/36). Originally posted by [jeremygold02](https://github.com/jeremygold02) on 2026-11-23T23:30:46Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:51:00 +00:00
pagingred commented 2026-11-24 06:54:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pagingred on 2026-11-23T23:39:23Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7117209247 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/36#issuecomment-7117209247). Originally posted by [pagingred](https://github.com/pagingred) on 2026-11-23T23:39:23Z. --- Verified on Windows 11 x64, Intel(R) Core(TM) i9-14900K and GeForce RTX 3090 (driver 621.24)
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!36
No description provided.