GPU: a live device is not reported removed #1633

Closed
davutsimsekk wants to merge 1 commit from upstream-pr/1634 into main
davutsimsekk commented 2026-11-24 20:11:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by davutsimsekk on 2026-11-24T20:11:41Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6590482312 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1634). Originally posted by [davutsimsekk](https://github.com/davutsimsekk) on 2026-11-24T20:11:41Z. --- `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.
upstream-sync closed this pull request 2026-11-24 21:28:09 +00:00
davutsimsekk commented 2026-11-24 21:28:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by davutsimsekk on 2026-11-24T21:12:51Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144630562 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1634#issuecomment-7144630562). Originally posted by [davutsimsekk](https://github.com/davutsimsekk) on 2026-11-24T21:12:51Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1633
No description provided.