Repository navigation
D3D12.X: log adapter device creation failures - #653
vascomfduarte wants to merge 1 commit into
Conversation
|
Cross-vendor data point: the four tests reported failing on AMD are green on NVIDIA wave32 — they are not flaky fixtures. Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver 621.01, wave32-only), main All four pass here:
So the failures in this PR and in #602's author's RX 5700 XT report are vendor-specific (AMD), not test-instability. Also for the #650/#656 choice: Not tested: AMD GPUs (this host's Raphael iGPU is a separate, much smaller adapter). AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the suite and wrote this report from its log; a human reviews it before posting. No code changes. |
|
Test run of Tested
Review: The three failures in the description (RX 6700 XT, on both versions) do not show up on RDNA4: the whole suite passes on this adapter. One thing to consider: on a machine with an adapter that cannot do feature level 12_0 (an old iGPU next to the discrete GPU), the new warning is logged at every start for an expected failure; logging it only when no adapter at all succeeds, or at info level, would keep it useful. Not a blocker. Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Regression run for Setup: AMD Radeon RX 9070 XT 16 GB, driver 32.0.32015.2008 (the CPU's integrated Radeon is also present; XCL opened the RX 9070 XT first), Ryzen 7 9800X3D, 31 GB RAM, Windows 11 25H2 build 26200.9974, rustc 1.100.0 Tests: Title runs:
Regression run:
PR merged onto PR head: Not tested: the failure path itself (no adapter failed here). It's the case this PR is for: earlier today a stale Graphics Tools AI use: Claude Code with Claude Opus 5.5 built the commits, ran the tests and the title runs, read the logs, and wrote this report. The runs were made on my machine. |
|
Thanks for running the smoke tests, @Chrysana! I've added the results to the PR description and the checks are now passing. Really appreciate the help! |
|
Two contributors checked independently and found that #1444 solves the same problem in a different way: #1607, group D43. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
Thanks for pointing this out and for reviewing both PRs. I've compared the changes and agree that #1444 addresses the same issue as #653, with a more complete approach to error reporting and additional debug-layer diagnostics. I'll close #653 in favor of #1444 to avoid duplicate work. Thanks to everyone involved in the review! |
What is in it
Log adapter-specific D3D12 device creation failures in
crates/xcl/src/hle/d3d12x/real.rs.Previously, failed device creation attempts were silently ignored. This change logs the adapter name and returned error without changing adapter selection or WARP fallback behavior.
Tested
Local validation — AMD RX 6700 XT
cargo check -p xcl— passed.git diff --check— passed.Regression comparison
9ce2070.d4c55a7.Pre-existing failures on the RX 6700 XT:
placed_title_textures_share_vram_and_preserve_pixels— 3D texture subresource 2 mismatch.transitions_apply_when_their_list_is_submitted—PoisonError.d32s8_targets_take_their_own_size_of_video_memory—PoisonError.Independent validation — @Chrysana
cargo test --workspace --no-fail-fast -- --test-threads=4ond4c55a7— 684 passed, 0 failed, 41 ignored.Regression run
Retail-title smoke tests performed by @Chrysana on an AMD Radeon RX 9070 XT using
scripts/smoke.ps1for 60 seconds, with the same saved state andXCL_PRESS_A_AT=14,17,21.Baseline —
main(91f9a5e)PR head —
d4c55a7Both runs reached the intro video, with no crashes or device removals.
Additional regression comparison — local merge onto newer
mainChrysana also tested a clean local merge of this PR onto
main(91f9a5e).main(91f9a5e)d974fba) — run 1d974fba) — run 2No meaningful regression in frame count, memory usage or stability was observed.
Note: The original PR head (
d4c55a7) is based on an older revision ofmain, so its higher frame count should not be attributed to the logging change. The local merge was not pushed.All retail-title smoke results were produced by Chrysana, not on my own hardware.
Source: Chrysana's regression report
Not tested
E_INVALIDARGfailure caused by an incompatibled3d12SDKLayers.dll.XCL_SAMPLE_*tests (sample assets unavailable).AI use
ChatGPT (GPT-6) and Codex assisted with debugging, code review, test analysis and PR preparation. I reviewed the code and validated the results from my own environment.
The independent tests and smoke runs were performed by @Chrysana on their own hardware, with assistance from Claude Code (Claude Opus 5.5) for test execution, log analysis and reporting.