mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1165] d3d12_root_args_validation: a hardware driver that removes its device does not fail the test (TEST-ROOT-ARGS-HW-DEVICE-REMOVED) #1198
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1198
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1165
Author: @MalexAson
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/root-args-hw-device-removed📝 Commits (1)
48319c7d3d12_root_args_validation: a hardware driver that removes its device does not fail the test (TEST-ROOT-ARGS-HW-DEVICE-REMOVED)📊 Changes
1 file changed (+28 additions, -3 deletions)
View changed files
📝
runtime/test/d3d12_root_args_validation_test.cpp(+28 -3)📄 Description
Claimed in the coordination issue as: TEST-ROOT-ARGS-HW-DEVICE-REMOVED
What and why
d3d12_root_args_validationruns its table on the layer, on WARP and on the first hardware D3D12 adapter. Where that adapter is an Intel Iris Xe (Intel 32.0.101.7092) the hardware pass fails, with the layer on any GPU:The cause is two cases earlier. On
direct: SetGraphicsRoot32BitConstants(0, 0, nullptr, 0)the Intel driver'sClose()returnsDXGI_ERROR_DEVICE_REMOVED(0x887a0005) and the device's removed reason becomesDXGI_ERROR_DRIVER_INTERNAL_ERROR(0x887a0020). The next case is the compute form, which isrun_on_hw = falsealready (the NVIDIA driver crashes on it), and the one after it cannot create an allocator on the removed device. The same driver also removes its device on the two bundle forms.This is the situation
run_on_hw = falsewas written for, a hardware UMD failing on a call WARP and the layer accept, but which cases do it depends on the driver. So the hardware pass now checksGetDeviceRemovedReason()after each case. A case that removed the device is printed, counted as not run on hardware (the table showsskip(umd), as forrun_on_hw = false), and the remaining cases run on a new device, created after every reference to the removed one is released. A case that fails with its device still alive fails the test as before.Tested
Windows 11 24H2 (26100.6584), MSVC 19.50 + Ninja RelWithDebInfo,
main6293c1c4f. The first hardware adapter is the Iris Xe (8086:a7a0).LEONIDA_VK_DEVICE)mainskip(umd), 0 failures, 0 validation errorsWith the change the test prints, for the Intel host:
Not tested: a machine whose first hardware adapter keeps its device through every case. That path is the old one,
REQUIRE(ran)after each case.tests/test_ctest_registration.pyandtests/test_text_write_line_endings.py: OK.scripts/check_no_game_data.pyon the changed file: clean.GPUs tested: Intel Iris Xe (8086:a7a0), Intel 32.0.101.7092, and NVIDIA GeForce RTX 4060 Laptop GPU, NVIDIA 616.92, Windows 11
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (no translator rule)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.