Skip to content

GPU: a live device is not reported removed - #1634

Closed
davutsimsekk wants to merge 1 commit into
Marvisak:mainfrom
davutsimsekk:fix/get-device-removed-reason
Closed

davutsimsekk wants to merge 1 commit into
Marvisak:mainfrom
davutsimsekk:fix/get-device-removed-reason

Conversation

@davutsimsekk

Copy link
Copy Markdown
Contributor

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-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
@davutsimsekk

Copy link
Copy Markdown
Contributor Author

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.

nazmi added a commit to nazmi/VIctory that referenced this pull request Nov 24, 2026
…sak#928

Integrated: Marvisak#1476 (MD5 round constants precomputed, stack buffer instead of
a per-block Vec), Marvisak#1590 (XMA frame counting follows the selected packet
chain), Marvisak#1635 (an indirect call with no host pipeline is dropped before the
argument refresh, so nothing transitions a buffer nothing will read), Marvisak#988
(a fault past the end of its title-memory copy now says how far past), and
Marvisak#928 (GetDeviceRemovedReason reports the host's real state).

Marvisak#1634 was merged earlier and then reverted: it hardcoded S_OK, which asserts
a live device even when the host's was removed. Marvisak#928 is the same slot wired
to the host, and its author had closed Marvisak#1634 in its favour.

Duplicates confirmed: Marvisak#1268, Marvisak#522, Marvisak#528, Marvisak#1494, Marvisak#1636 (whose test this branch
adds; the code was already right). Obsolete: Marvisak#1523.

Gate at b976f7f: fmt 0 differing, both Clippy gates 0 errors, policy 219
files, workspace 678 passed / 0 failed with the 10 documented GPU skips.
nazmi added a commit to nazmi/VIctory that referenced this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant