gpu: Arc A770 capability probe integration test #844

Open
github-bot wants to merge 2 commits from github-bot/gh-844 into main AGit
Owner

@⁠UnkwnDev on GitHub · 2026-11-25 10:21 UTC · original
UnkwnDev:arc-gpu-probe → main · +2376 −0 · 5 files · 2 commits · open

This adds an integration test (cargo test -p victory-gpu --features diagnostics --test arc_probe) that probes D3D12 feature support (DoublePrecisionFloatShaderOps, TypedUAVLoadAdditionalFormats, heap budget), measures compute shader dispatch overhead with and without UAV barriers, and logs timestamp calibration. Useful for Arc A770 and other adapters to surface capability gaps before translation. Marked required-features = [diagnostics] so it stays out of the default test run.

Generated with AI assistance: Gemini 2.5 Pro / Claude Sonnet 4.6 drafted.

**@⁠UnkwnDev** on GitHub · 2026-11-25 10:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/844) `UnkwnDev:arc-gpu-probe` → `main` · +2376 −0 · 5 files · 2 commits · open This adds an integration test (cargo test -p victory-gpu --features diagnostics --test arc_probe) that probes D3D12 feature support (DoublePrecisionFloatShaderOps, TypedUAVLoadAdditionalFormats, heap budget), measures compute shader dispatch overhead with and without UAV barriers, and logs timestamp calibration. Useful for Arc A770 and other adapters to surface capability gaps before translation. Marked required-features = [diagnostics] so it stays out of the default test run. Generated with AI assistance: Gemini 2.5 Pro / Claude Sonnet 4.6 drafted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:25 +00:00
Author
Owner

@⁠avt0m4t48 on GitHub · 2026-11-25 11:33 UTC · original

Independent build check on b16a394593575ff69691f3f2402c8c11043ef670 and GitHub’s test merge 4675fae111221318e42db6606f8382beabb2e9a1 against f85101b:

  • Both passed cargo check -p victory-gpu --locked --target x86_64-pc-windows-msvc --features diagnostics,blake3/pure --test arc_probe using Rust 1.98.1 on Linux. The test merge also passed the Windows-target victory-gpu all-target check with diagnostics disabled.
  • Cargo requires diagnostics to build the probe. All six tests are marked #[ignore]. To run them on Windows, use cargo test -p victory-gpu --locked --features diagnostics --test arc_probe -- --ignored --test-threads=1. Serial execution also keeps the DXC calls from sharing their fixed temporary filenames concurrently.
  • Linux diagnostics compilation stopped before the new test on main, the PR head, and the test merge with the same three GPU library errors (crate::texture, crate::host, and host_resource). Separately, the probe imports Windows-only dependencies without a platform guard. An isolated compile with #![cfg(windows)] at the top produced an empty Linux test harness. That guard addresses the probe itself.

This was cross-compilation only. I did not link or run the harness on Windows or use a GPU or game files.

**@⁠avt0m4t48** on GitHub · 2026-11-25 11:33 UTC · [original](https://github.com/fxceless/victory-fork/pull/844#issuecomment-7161196106) Independent build check on `b16a394593575ff69691f3f2402c8c11043ef670` and GitHub’s test merge `4675fae111221318e42db6606f8382beabb2e9a1` against `f85101b`: - Both passed `cargo check -p victory-gpu --locked --target x86_64-pc-windows-msvc --features diagnostics,blake3/pure --test arc_probe` using Rust 1.98.1 on Linux. The test merge also passed the Windows-target `victory-gpu` all-target check with diagnostics disabled. - Cargo requires `diagnostics` to build the probe. All six tests are marked `#[ignore]`. To run them on Windows, use `cargo test -p victory-gpu --locked --features diagnostics --test arc_probe -- --ignored --test-threads=1`. Serial execution also keeps the DXC calls from sharing their fixed temporary filenames concurrently. - Linux diagnostics compilation stopped before the new test on main, the PR head, and the test merge with the same three GPU library errors (`crate::texture`, `crate::host`, and `host_resource`). Separately, the probe imports Windows-only dependencies without a platform guard. An isolated compile with `#![cfg(windows)]` at the top produced an empty Linux test harness. That guard addresses the probe itself. This was cross-compilation only. I did not link or run the harness on Windows or use a GPU or game files.
Author
Owner

@⁠UnkwnDev on GitHub · 2026-11-25 15:22 UTC · original

@⁠avt0m4t48 Added #![cfg(windows)] at the top of crates/victory-gpu/tests/arc_probe.rs so non-Windows targets do not pull in Windows-only test dependencies. Re-verified cargo clippy --workspace --all-targets --locked -- -D warnings and cargo test -p xtask --locked (4 passed).

**@⁠UnkwnDev** on GitHub · 2026-11-25 15:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/844#issuecomment-7166745079) @⁠avt0m4t48 Added #![cfg(windows)] at the top of crates/victory-gpu/tests/arc_probe.rs so non-Windows targets do not pull in Windows-only test dependencies. Re-verified cargo clippy --workspace --all-targets --locked -- -D warnings and cargo test -p xtask --locked (4 passed).
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/indirect.rs
  • crates/victory-gpu/src/resource.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/844/head:github-bot/gh-844'
git switch 'github-bot/gh-844'

Merge

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