GPU: answer format-info and virtual-address feature queries #278

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

@⁠Quat3rnion on GitHub · 2026-11-24 02:00 UTC · original
Quat3rnion:victory-feature-queries → main · +55 −0 · 1 files · 1 commits · open

What

CheckFeatureSupport returned E_NOTIMPL for D3D12 feature IDs 5 and 6.
This answers them with the same size and null validation as the features
already handled:

  • FORMAT_INFO reports one plane for ordinary formats and two for the
    depth/stencil families (including typeless and read-only views).
  • GPU_VIRTUAL_ADDRESS_SUPPORT reports the 40 resource bits already
    published in OPTIONS and 48 bits for the process, since GPU addresses
    are CPU addresses here.

Both are small interfaces with a clear error path, as the plan notes.

An AI tool wrote part of this change.

Tested

  • Linux: cargo test --workspace with PR #112's Linux build fix applied locally (not part of this PR): 166 passed, 0 failed, 3 ignored. Two new tests cover plane counts, address widths and the invalid-size path.
  • Windows cross-build: cargo check --target x86_64-pc-windows-gnu --workspace --tests passes. Windows-only tests were not run; there is no Windows host here.
  • cargo xtask policy passes (150 files ok). No game files or data from them were added.
  • Not tested: a real title or GPU; the values follow this project's own OPTIONS table and address-space setup.

Checklist

  • cargo fmt on the changed hunks; workspace tests and Windows cross-check pass.
  • cargo xtask policy passes. No game files or data from them were added.
  • AI authorship is disclosed above.
**@⁠Quat3rnion** on GitHub · 2026-11-24 02:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/278) `Quat3rnion:victory-feature-queries` → `main` · +55 −0 · 1 files · 1 commits · open ## What `CheckFeatureSupport` returned `E_NOTIMPL` for D3D12 feature IDs 5 and 6. This answers them with the same size and null validation as the features already handled: - `FORMAT_INFO` reports one plane for ordinary formats and two for the depth/stencil families (including typeless and read-only views). - `GPU_VIRTUAL_ADDRESS_SUPPORT` reports the 40 resource bits already published in OPTIONS and 48 bits for the process, since GPU addresses are CPU addresses here. Both are small interfaces with a clear error path, as the plan notes. An AI tool wrote part of this change. ## Tested - Linux: `cargo test --workspace` with PR #112's Linux build fix applied locally (not part of this PR): 166 passed, 0 failed, 3 ignored. Two new tests cover plane counts, address widths and the invalid-size path. - Windows cross-build: `cargo check --target x86_64-pc-windows-gnu --workspace --tests` passes. Windows-only tests were not run; there is no Windows host here. - `cargo xtask policy` passes (150 files ok). No game files or data from them were added. - Not tested: a real title or GPU; the values follow this project's own OPTIONS table and address-space setup. ## Checklist - [x] `cargo fmt` on the changed hunks; workspace tests and Windows cross-check pass. - [x] `cargo xtask policy` passes. No game files or data from them were added. - [x] AI authorship is disclosed above.
CheckFeatureSupport returned E_NOTIMPL for D3D12 feature IDs 5 and 6. Report plane counts for depth and stencil format families and the address widths already published through OPTIONS, with the same size and null validation as the other features. Add two unit tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:42 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-24 04:12 UTC · original · edited 2026-11-24 04:14 UTC

Tested PR #278 at head c90d3c05ab98b9d859863f404fa8293f08450821 (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at c90d3c05ab98b9d859863f404fa8293f08450821.

  • cargo test --locked -p victory-gpu format_info_reports_the_planes_of_depth_formats — passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 40 filtered out; finished in 0.00s ); cases: device::tests::format_info_reports_the_planes_of_depth_formats.
  • cargo test --locked -p victory-gpu virtual_address_support_matches_the_reported_address_space — passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 40 filtered out; finished in 0.00s ); cases: device::tests::virtual_address_support_matches_the_reported_address_space.

Behavior covered: Checks depth-format plane counts and that virtual-address support matches the reported address space.
Code: crates/victory-gpu/src/device.rs

**@⁠jeremygold02** on GitHub · 2026-11-24 04:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/278#issuecomment-7121800383) · edited 2026-11-24 04:14 UTC Tested PR #278 at head `c90d3c05ab98b9d859863f404fa8293f08450821` (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at `c90d3c05ab98b9d859863f404fa8293f08450821`. - `cargo test --locked -p victory-gpu format_info_reports_the_planes_of_depth_formats` — passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 40 filtered out; finished in 0.00s ); cases: device::tests::format_info_reports_the_planes_of_depth_formats. - `cargo test --locked -p victory-gpu virtual_address_support_matches_the_reported_address_space` — passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 40 filtered out; finished in 0.00s ); cases: device::tests::virtual_address_support_matches_the_reported_address_space. Behavior covered: Checks depth-format plane counts and that virtual-address support matches the reported address space. Code: [crates/victory-gpu/src/device.rs](https://github.com/Marvisak/VIctory/blob/c90d3c05ab98b9d859863f404fa8293f08450821/crates/victory-gpu/src/device.rs)
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:25 UTC · original

Automated triage for the maintainers.

Needs rebase. This PR does not merge cleanly into current main (ac2525d). Conflicting files: crates/victory-gpu/src/device.rs.

The content has not been reviewed yet; it will be once the branch is rebased onto main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 00:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/278#issuecomment-7148494845) <!-- victory-triage v1 head=d063cee543a2a0a23fd99ce4c84ffe7e9a64d5d2 verdict=needs-rebase at=2026-11-25T00:13:20Z --> Automated triage for the maintainers. **Needs rebase.** This PR does not merge cleanly into current `main` (ac2525d). Conflicting files: `crates/victory-gpu/src/device.rs`. The content has not been reviewed yet; it will be once the branch is rebased onto `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/device.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/278/head:github-bot/gh-278'
git switch 'github-bot/gh-278'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-278'
git switch 'github-bot/gh-278'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-278'
git switch 'github-bot/gh-278'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-278'
git switch 'main'
git merge --squash 'github-bot/gh-278'
git switch 'main'
git merge --ff-only 'github-bot/gh-278'
git switch 'main'
git merge 'github-bot/gh-278'
git push origin 'main'
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!278
No description provided.