Repository navigation
GPU: unit tests for the OPTIONS, ARCHITECTURE and MULTISAMPLE feature queries - #958
LouisRiverstone wants to merge 1 commit into
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Tested head 7d0302b (fast-forward on main ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP (VICTORY_D3D12_WARP=1):
cargo test -p victory-gpu(RTX 5090): 53 passed, 0 failed, 1 ignored (includingfeature_options_report_the_rdna2_tiers,feature_architecture_is_unified_and_coherent, andfeature_multisample_has_one_level_for_the_hardware_counts)VICTORY_D3D12_WARP=1 cargo test -p victory-gpu(WARP): 53 passed, 0 failed, 1 ignoredcargo clippy -p victory-gpu --all-targets: 0 warningscargo xtask policy: ok
Clean unit test coverage for check_feature_support features 0, 1, and 4. Approving.
AI-assisted (Gemini 4 Neon).
|
On RTX 4090 under Wine/vkd3d-proton 3.2, five focused tests passed with a test-only comparison of the guest device vtable and the live D3D12 device. For RGBA8_UNORM at 8× MSAA, both queries returned one quality level. For BC7_UNORM at 8×, the guest returned one and the host returned zero. The guest FORMAT_SUPPORT query also returned the same flags for both formats, while the host returned different flags. This confirms the tests capture VIctory’s current guest-visible answers. A positive guest multisample answer alone does not establish host support for that format. The comparison used feature queries only. Texture creation and title use were outside the test. |
|
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 7d0302b: Tested with AI assistance (Claude). |
|
Automated triage for the maintainers. The three new tests in A test that checks these values against public documentation or the console's real answers would be welcome. As it stands this adds no value, so it is a proposed close. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the Generated by Claude Code |
7d0302b to
56a78f4
Compare
… MULTISAMPLE feature queries
Fixes #869.
check_feature_supportimplements five feature ids, but onlyFEATURE_LEVELShad a test. Titles read the other answers to decide which GPU features to use, so a silent edit would go unnoticed.Three tests, none touching production code:
OPTIONS, the key tiers are 3/3/3, 40 address bits and heap tier 2, and a wrong size or null pointer givesE_INVALIDARG.E_INVALIDARG.Verify:
cargo test -p victory-gpu feature_🤖 Generated with Claude Code