GPU: a refused title root signature still says why with no error pointer, and warns once per flags (follow-up to #351) #384

Open
github-bot wants to merge 2 commits from github-bot/gh-384 into a-publier AGit
Owner

@⁠adrianmjim on GitHub · 2026-11-26 23:01 UTC · original
adrianmjim:publier/root-sig-followup → a-publier · +104 −24 · 2 files · 2 commits · open

Follow-up to #351 (merged), for the review points that came in after it was merged. Refs #168.

What

  • A refusal without the title's error pointer still says why (crates/victory-gpu/src/root.rs). Point raised in the review of #351: the title may pass no error out pointer to D3D12SerializeRootSignature or D3D12SerializeVersionedRootSignature. Both forwarders then passed none to the host either, so host refused the title's root signature had an empty reason. Both now go through one helper, forward():
    • When the title passes no pointer, the host gets an out pointer of ours. Its text is logged and the blob is released.
    • When the title passes one, it still gets the host's blob, as before.
  • One warning per distinct flags value. Point raised by @⁠lerapeurdu62280-debug on #317 and #351: on Windows 10's in-box runtime every title root signature with the 6.6 flags is refused, after the device-level error has already said why. The warning now comes once per distinct flags, and repeats go to debug.
  • Test tidy-up (pipeline/host.rs): the two consecutive if sm66 blocks of the_runtime_refuses_flags_it_does_not_know are one.
  • New test: a_refusal_without_an_error_pointer_keeps_the_hosts_reason checks that the host's reason is returned through forward() when the title's pointer is null, and that serialize_versioned with a null error pointer still refuses.

Tested

RX 7900 XT, Windows 11 26300, in-box runtime, on a-publier 4eb6cfd:

  • cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host:: gives 20 passed, 0 failed (19 + the new test).
  • Mutation: with forward() passing the title's null pointer straight through, the new test fails. So it covers the case.
  • cargo build -p victory-gpu --tests builds without warnings in the changed files. rustfmt --check passes on root.rs. pipeline/host.rs is only the two-line change, without reformatting the rest of the file.

Not tested: Windows 10 on this follow-up, and the title-side warning in the game.

**@⁠adrianmjim** on GitHub · 2026-11-26 23:01 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/384) `adrianmjim:publier/root-sig-followup` → `a-publier` · +104 −24 · 2 files · 2 commits · open Follow-up to #351 (merged), for the review points that came in after it was merged. Refs #168. ## What - **A refusal without the title's error pointer still says why** (`crates/victory-gpu/src/root.rs`). Point raised in the review of #351: the title may pass no error out pointer to `D3D12SerializeRootSignature` or `D3D12SerializeVersionedRootSignature`. Both forwarders then passed none to the host either, so `host refused the title's root signature` had an empty reason. Both now go through one helper, `forward()`: - When the title passes no pointer, the host gets an out pointer of ours. Its text is logged and the blob is released. - When the title passes one, it still gets the host's blob, as before. - **One warning per distinct flags value.** Point raised by @⁠lerapeurdu62280-debug on #317 and #351: on Windows 10's in-box runtime every title root signature with the 6.6 flags is refused, after the device-level error has already said why. The warning now comes once per distinct `flags`, and repeats go to `debug`. - **Test tidy-up** (`pipeline/host.rs`): the two consecutive `if sm66` blocks of `the_runtime_refuses_flags_it_does_not_know` are one. - **New test:** `a_refusal_without_an_error_pointer_keeps_the_hosts_reason` checks that the host's reason is returned through `forward()` when the title's pointer is null, and that `serialize_versioned` with a null error pointer still refuses. ## Tested RX 7900 XT, Windows 11 26300, in-box runtime, on `a-publier` `4eb6cfd`: - `cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host::` gives 20 passed, 0 failed (19 + the new test). - **Mutation:** with `forward()` passing the title's null pointer straight through, the new test fails. So it covers the case. - `cargo build -p victory-gpu --tests` builds without warnings in the changed files. `rustfmt --check` passes on `root.rs`. `pipeline/host.rs` is only the two-line change, without reformatting the rest of the file. Not tested: Windows 10 on this follow-up, and the title-side warning in the game.
The title may pass no error out pointer to D3D12SerializeRootSignature or
D3D12SerializeVersionedRootSignature. Both forwarders then gave the host
none either, so the refusal warning had an empty reason. They now give
the host an out pointer of ours in that case, log its text and release
the blob; a title that passes one still gets the host's blob, as before.
On Windows 10's in-box runtime every title root signature with the 6.6
flags is refused, after the device-level error has said why. The warning
now comes once per distinct flags value and repeats at debug. The two
consecutive `if sm66` blocks of the directly indexed heaps test are one.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:58:53 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-26 23:02 UTC · original · reviewed

No active review issues remain for the root-signature diagnostic and warning-deduplication changes.

No open issues 🎉

What changed in this PR

This follow-up to #351 improves GPU root-signature refusal diagnostics, preserving the host’s reason when the title omits an error output pointer and reducing repeated warnings.

Changes:

  • Routes both serializers through a shared helper that captures error blobs and releases locally owned ones.
  • Logs the first refusal per distinct flags value at warning level and repeats at debug level.
  • Adds regression coverage for null error pointers and combines duplicate test conditionals.
File Description
crates/​victory-gpu/​src/​root.rs Adds shared forwarding, warning deduplication, and null-error-pointer regression coverage.
crates/​victory-gpu/​src/​pipeline/​host.rs Combines consecutive shader-model-6.6 test conditionals without changing assertions.

Review effort: Balanced

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-26 23:02 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/384#pullrequestreview-6081323360) · **reviewed** <!-- ccr-overview-v2 --> ### 🟢 Approval recommended No active review issues remain for the root-signature diagnostic and warning-deduplication changes. **No open issues** 🎉 <details> <summary><strong>What changed in this PR</strong></summary> This follow-up to #351 improves GPU root-signature refusal diagnostics, preserving the host’s reason when the title omits an error output pointer and reducing repeated warnings. **Changes:** - Routes both serializers through a shared helper that captures error blobs and releases locally owned ones. - Logs the first refusal per distinct flags value at warning level and repeats at debug level. - Adds regression coverage for null error pointers and combines duplicate test conditionals. | File | Description | | ---- | ----------- | | `crates/​victory-gpu/​src/​root.rs` | Adds shared forwarding, warning deduplication, and null-error-pointer regression coverage. | | `crates/​victory-gpu/​src/​pipeline/​host.rs` | Combines consecutive shader-model-6.6 test conditionals without changing assertions. | </details> <sub>Review effort: Balanced</sub>
Author
Owner

@⁠lerapeurdu62280-debug on GitHub · 2026-11-26 23:36 UTC · original

Windows 10 Pro 19045, in-box D3D12 runtime (no Agility SDK), Radeon RX 6600 (RDNA 2), driver 32.0.21045, at 61b2cb9:

  • cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host::: 19 passed, 1 failed. The new a_refusal_without_an_error_pointer_keeps_the_hosts_reason passes.
  • The one failure is depth_bounds_pipeline_loads_and_filters_draws (0x80070057). It fails the same way on the base 4eb6cfd without this PR: Windows 10's in-box runtime refuses the directly indexed heap flags, so it is the environment, not this change.
  • Not checked: the text of the once-per-flags warning (no log output in the tests), and the game.
**@⁠lerapeurdu62280-debug** on GitHub · 2026-11-26 23:36 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/384#issuecomment-7205691551) Windows 10 Pro 19045, in-box D3D12 runtime (no Agility SDK), Radeon RX 6600 (RDNA 2), driver 32.0.21045, at `61b2cb9`: - `cargo test -p victory-gpu --lib -- --test-threads=1 root:: pipeline::host::`: 19 passed, 1 failed. The new `a_refusal_without_an_error_pointer_keeps_the_hosts_reason` passes. - The one failure is `depth_bounds_pipeline_loads_and_filters_draws` (0x80070057). It fails the same way on the base `4eb6cfd` without this PR: Windows 10's in-box runtime refuses the directly indexed heap flags, so it is the environment, not this change. - Not checked: the text of the once-per-flags warning (no log output in the tests), and the game.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 00:22 UTC · original

Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at 61b2cb9: cargo test --release -p victory-gpu --lib 397 passed, 0 failed, 34 ignored.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 00:22 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/384#issuecomment-7206404719) Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at `61b2cb9`: `cargo test --release -p victory-gpu --lib` 397 passed, 0 failed, 34 ignored. AI-assisted (Claude Code); no game data.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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