GPU: name the D3D12 adapter in failure reports #3544

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

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 16:27 UTC · original
andrewpozdnakov7-jpg:codex2/d3d12-adapter-in-failure-report → main · +59 −15 · 1 files · 1 commits · open

Summary

In #3541, the pasted GPU failure shows a CPU model. On a hybrid laptop, the report needs the name of the adapter actually used by D3D12 to distinguish an integrated GPU from a discrete one.

Resolve the device's DXGI adapter by LUID at host creation and keep its model description for the existing fatal report. If the lookup fails, host creation can continue and the report still shows the original error.

Refs #3541. Coordination claim

Verification

  • A synthetic failure report on a live Windows D3D12 WARP device includes D3D12 adapter: Microsoft Basic Render Driver. The no-host assertion preserves the original message.
  • With app-local D3D12 Agility 1.620.2 and WARP 1.0.22, 247 repository tests passed and 1 was ignored. A temporary check also verified the two loaded modules.
  • Strict GPU Clippy passed with default and all features.
  • git merge-tree succeeded with the current heads of #2053, #2367, and #3533.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 16:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/3544) `andrewpozdnakov7-jpg:codex2/d3d12-adapter-in-failure-report` → `main` · +59 −15 · 1 files · 1 commits · open ## Summary In #3541, the pasted GPU failure shows a CPU model. On a hybrid laptop, the report needs the name of the adapter actually used by D3D12 to distinguish an integrated GPU from a discrete one. Resolve the device's DXGI adapter by LUID at host creation and keep its model description for the existing fatal report. If the lookup fails, host creation can continue and the report still shows the original error. Refs #3541. [Coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) ## Verification - A synthetic failure report on a live Windows D3D12 WARP device includes `D3D12 adapter: Microsoft Basic Render Driver`. The no-host assertion preserves the original message. - With app-local D3D12 Agility 1.620.2 and WARP 1.0.22, 247 repository tests passed and 1 was ignored. A temporary check also verified the two loaded modules. - Strict GPU Clippy passed with default and all features. - `git merge-tree` succeeded with the current heads of #2053, #2367, and #3533. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 16:29:31 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 16:29 UTC · original

Windows CI passed on 0985fa3. Windows check

The focused regression executed on both inbox WARP and app-local WARP and reported D3D12 adapter: Microsoft Basic Render Driver. With Agility 1.620.2 and WARP 1.0.22, 247 repository tests passed and 1 was ignored. A separate test verified the loaded modules. The three failures from the earlier full inbox run also reproduced on pristine main 63bcca4 in the two placed-view tests and the depth-bounds draw test.

The next step is maintainer review. A subsequent report in #3541 from a build containing this change can identify the actual adapter using the new field.

If reusing the patch, please retain the Git author on cherry-pick or rebase. If folding it into another commit, please use Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 16:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/3544#issuecomment-7223331036) Windows CI passed on `0985fa3`. [Windows check](https://github.com/Marvisak/VIctory/actions/runs/46033775178/job/140623899600) The focused regression executed on both inbox WARP and app-local WARP and reported `D3D12 adapter: Microsoft Basic Render Driver`. With Agility 1.620.2 and WARP 1.0.22, 247 repository tests passed and 1 was ignored. A separate test verified the loaded modules. The three failures from the earlier full inbox run also reproduced on pristine main `63bcca4` in the two placed-view tests and the depth-bounds draw test. The next step is maintainer review. A subsequent report in #3541 from a build containing this change can identify the actual adapter using the new field. If reusing the patch, please retain the Git author on cherry-pick or rebase. If folding it into another commit, please use `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-27 21:17 UTC · original

Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head 0985fa3 (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 867 passed, 0 failed, 10 ignored.
  • The new tests ran and passed: gpu_failure_report_names_the_created_devices_adapter.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-27 21:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/3544#issuecomment-7228307184) Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `0985fa3` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **867 passed, 0 failed, 10 ignored**. - The new tests ran and passed: `gpu_failure_report_names_the_created_devices_adapter`. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3544/head:github-bot/gh-3544'
git switch 'github-bot/gh-3544'

Merge

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