GPU: a live device is not reported removed #1634

Closed
github-bot wants to merge 1 commit from gh-pr/1634/head into gh-pr/1634/base
Owner

@⁠davutsimsekk on GitHub · 2026-11-24 20:11 UTC · original
davutsimsekk:fix/get-device-removed-reason → main · +14 −0 · 1 files · 1 commits · closed without merging

ID3D12Device::GetDeviceRemovedReason (vtable 0x128) was left unwritten, so a healthy device answered E_NOTIMPL. A title's watchdog that treats anything but S_OK as device loss would see a failure on a live device; the host device reports S_OK in the same run.

This wires slot 0x128 to a small method that returns S_OK. Host-device removal is still reported by host when a submission fails.

Test

a_live_device_is_not_reported_removed calls slot 0x128 on the created device. On main it returns E_NOTIMPL (0x80004001); with the change it returns S_OK.

  • cargo test -p victory-gpu --lib: 51 passed, 1 ignored
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean
  • rustfmt --edition 2024 --check crates/victory-gpu/src/device.rs: clean
  • The title was not run.
**@⁠davutsimsekk** on GitHub · 2026-11-24 20:11 UTC · [original](https://github.com/Marvisak/VIctory/pull/1634) `davutsimsekk:fix/get-device-removed-reason` → `main` · +14 −0 · 1 files · 1 commits · closed without merging `ID3D12Device::GetDeviceRemovedReason` (vtable 0x128) was left unwritten, so a healthy device answered `E_NOTIMPL`. A title's watchdog that treats anything but `S_OK` as device loss would see a failure on a live device; the host device reports `S_OK` in the same run. This wires slot 0x128 to a small method that returns `S_OK`. Host-device removal is still reported by `host` when a submission fails. ## Test `a_live_device_is_not_reported_removed` calls slot 0x128 on the created device. On `main` it returns `E_NOTIMPL` (0x80004001); with the change it returns `S_OK`. - `cargo test -p victory-gpu --lib`: 51 passed, 1 ignored - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings`: clean - `rustfmt --edition 2024 --check crates/victory-gpu/src/device.rs`: clean - The title was not run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:39:03 +00:00
github-bot closed this pull request 2026-11-26 04:39:03 +00:00
Author
Owner

@⁠davutsimsekk on GitHub · 2026-11-24 21:12 UTC · original

Duplicate of #928, which wires the same slot and reports the host device's state (and fixes #900). Closing this one in favor of it.

**@⁠davutsimsekk** on GitHub · 2026-11-24 21:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/1634#issuecomment-7144630562) Duplicate of #928, which wires the same slot and reports the host device's state (and fixes #900). Closing this one in favor of it.

Pull request closed

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!1634
No description provided.