Tests: pin gpu::adapter name() DXGI DESC1 extraction contract #1731
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1731
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1731"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@amazedturnip on GitHub · 2026-11-24 20:00 UTC · original
amazedturnip:xcl/tests-gpu-adapter-desc-name-extraction-contract-194420→main· +70 −0 · 1 files · 1 commits · openAdds crates/xcl/tests/gpu_adapter_desc.rs: an integration test pinning adapter::name() to return exactly the UTF-16 prefix of DXGI_ADAPTER_DESC1::Description up to the first NUL, capped at the 128-code-unit array. Constructs only default/NUL-padded descriptions (no device, no GPU); verifies trailing-NUL padding, 127/128-unit boundary truncation, NUL-in-middle, all-NUL/empty, NUL-first, and non-ASCII code units. No production code changed.
What is in it
Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 864 passed, 0 failed, 42 ignored (SKIPPED GPU tests: 1 (no heap windows))Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 22:37 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:04 UTC · original
XCL PR #1731 verification
Head
86c3eb9fe59dad01fb76c5f09c8f9146bb72b69a. Clean detached worktree on STOR-WINLAB. The diff adds onlycrates/xcl/tests/gpu_adapter_desc.rs.AMD Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175), Windows 11 Enterprise Evaluation x64 (build 26200), DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo dev/test profiles had debug info and incremental compilation disabled.
Tested
cargo build --workspaceandcargo test --workspace --no-runboth succeeded outside the Arc mutex. The latter built 20 test binaries.cargo test -p xcl --test gpu_adapter_descwithXCL_ADAPTER=NONE_CPU_ONLYoutside the mutex reported 6 passed, 0 failed, 0 ignored, 0 skipped. The tests construct in-memory DXGI descriptors and verify trailing NUL padding, an interior or leading NUL, all-zero descriptions, the 127/128 UTF-16 code-unit boundary, and non-ASCII BMP characters (® and ™). They require no DXGI factory or GPU device.cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The log confirms the A770 backend. The 21 result summaries (20 test binaries and one doctest target) report 863 passed, 18 failed, 42 ignored. Cargo exited 101. The six PR tests passed again.Workspace failures and skips
CreateComputePipelineStateerror0x80070057. Four reported mismatches in FMA overflow, implicit mip LOD sampling, f16 high-half preservation, or wave64 pixel reductions.test_title_runs_and_game_folder_is_untouched. The top-right pixel was blue where green was expected.pr1731-suite.loghas 7 lines beginning withSKIPPED, already included in Cargo's pass count. Reasons were no wave64 (2), no D3D12 debug layer (2), tiled tier below 2, inability to disable the driver cache, and no heap windows. These skips provide no coverage.Not tested
Matched main run, retail-title smoke, sample game data, or AMD/NVIDIA GPUs.
AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1731-suite.logand published.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.