GPU: SetStablePowerState is accepted and ignored #1565

Open
LouisRiverstone wants to merge 1 commit from upstream-pr/1566 into main
LouisRiverstone commented 2026-11-24 19:13:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LouisRiverstone on 2026-11-24T19:13:00Z.


ID3D12Device::SetStablePowerState (slot 40, 0x140) was one of the device slots that log "method not implemented" and return E_NOTIMPL. It is a profiling setting (clocks held steady for measurement) with no meaning for the host device, so the slot now returns S_OK through object::ignore, like the debug error filter next to it.

New test set_stable_power_state_is_accepted calls it with both values through the device table.

No title has been seen calling it in the logs in the issues; this is the PC device method in its PC slot, so a title that does call it gets what the console's unified memory gives it rather than a logged failure. If that is not wanted, close this.

Verify: cargo test -p victory-gpu set_stable_power_state (Windows). I type-checked it with clippy for x86_64-pc-windows-msvc, but could not run it locally.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6589436829 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1566). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-11-24T19:13:00Z. --- `ID3D12Device::SetStablePowerState` (slot 40, 0x140) was one of the device slots that log "method not implemented" and return `E_NOTIMPL`. It is a profiling setting (clocks held steady for measurement) with no meaning for the host device, so the slot now returns `S_OK` through `object::ignore`, like the debug error filter next to it. New test `set_stable_power_state_is_accepted` calls it with both values through the device table. No title has been seen calling it in the logs in the issues; this is the PC device method in its PC slot, so a title that does call it gets what the console's unified memory gives it rather than a logged failure. If that is not wanted, close this. **Verify:** `cargo test -p victory-gpu set_stable_power_state` (Windows). I type-checked it with clippy for `x86_64-pc-windows-msvc`, but could not run it locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DenRakEiw commented 2026-11-24 20:02:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T19:30:36Z.

Review: APPROVED


Verified locally merged onto origin/main (Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):

  • cargo test -p victory-gpu — 51 passed, 0 failed (1 ignored) on both RTX 5090 hardware and VICTORY_D3D12_WARP=1 (including set_stable_power_state_is_accepted)
  • cargo clippy -p victory-gpu --all-targets — 0 warnings
  • cargo xtask policy — ok

Clean SetStablePowerState no-op acceptance with unit test coverage. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6045958306 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1566#pullrequestreview-6045958306). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T19:30:36Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC): - `cargo test -p victory-gpu` — 51 passed, 0 failed (1 ignored) on both RTX 5090 hardware and `VICTORY_D3D12_WARP=1` (including `set_stable_power_state_is_accepted`) - `cargo clippy -p victory-gpu --all-targets` — 0 warnings - `cargo xtask policy` — ok Clean `SetStablePowerState` no-op acceptance with unit test coverage. Looks good. AI-assisted (Gemini 4 Neon).
Marvisak commented 2026-11-25 04:06:47 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:17:22Z.


Automated triage for the maintainers.

Needs work. Slot 40 (0x140) is SetStablePowerState in the device table in crates/victory-gpu/src/device.rs, and accepting it through object::ignore is a reasonable answer for a profiling setting. But this changes a runtime return value with no evidence that the title ever calls it: the description says no log shows a call. Today the slot logs "method not implemented", which is the signal the project relies on to find methods worth writing. Please add evidence that the title reaches this slot (a log line from a run, or the call site in the title's code); with that, this would be a merge candidate. #1564 and #1565 make the same kind of change for slots 34 and 35, and could be one pull request.

CI: no check runs reported for this head.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7151773649 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1566#issuecomment-7151773649). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:17:22Z. --- <!-- victory-triage v1 head=fcd85a11d7f2c445c7977d77e11ce6e4f5a92bf9 verdict=needs-work at=2026-11-25T03:18:40Z --> Automated triage for the maintainers. **Needs work.** Slot 40 (0x140) is `SetStablePowerState` in the device table in `crates/victory-gpu/src/device.rs`, and accepting it through `object::ignore` is a reasonable answer for a profiling setting. But this changes a runtime return value with no evidence that the title ever calls it: the description says no log shows a call. Today the slot logs "method not implemented", which is the signal the project relies on to find methods worth writing. Please add evidence that the title reaches this slot (a log line from a run, or the call site in the title's code); with that, this would be a merge candidate. #1564 and #1565 make the same kind of change for slots 34 and 35, and could be one pull request. CI: no check runs reported for this head. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1566:upstream-pr/1566'
git switch 'upstream-pr/1566'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1566'
git switch 'upstream-pr/1566'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1566'
git switch 'upstream-pr/1566'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1566'
git switch 'main'
git merge --squash 'upstream-pr/1566'
git switch 'main'
git merge --ff-only 'upstream-pr/1566'
git switch 'main'
git merge 'upstream-pr/1566'
git push origin 'main'
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!1565
No description provided.