[pr-fix] Xbox pads with mouse and keyboard on, no pipeline library under Wine on NVIDIA, copies at their place back to common #485

Merged
TaynanGT merged 4 commits from upstream-pr/485 into main 2026-11-30 23:42:49 +00:00
TaynanGT commented 2026-11-30 23:32:23 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T23:32:23Z.


Refs #115, #472, #153 (each of those has more in it than this, so none is closed from here)

Three bugs from the tracker, one commit each.

What it changes

Xbox pads did nothing with MOUSE AND KEYBOARD on (#115). play turns MNK on by default, and with it on pad() handed XInput nothing, CONTROLS set to GAMEPAD included. PlayStation and generic HID pads kept working, so it looked random. The title sees one pad by default and that pad already merges every host pad, the keys' stand-in pad and the mouse, so XInput can just play: always under GAMEPAD, and under AUTO whenever there's one pad. With VICE_TAY_ONE_PAD=0 a pad would take the keys' stand-in away, so there it stays as before (the pad only drives F1).

Pipelines compiled again at every launch on Linux with NVIDIA (#472). Pipelines made through vkd3d-proton's pipeline library miss NVIDIA's disk cache there. @zmelumian972 measured it: 44 of 52 slow loads came back in the next launch, 0.4-5 fps for the first ~45 s, while the same pipelines made without the library came back from the driver's cache (25.3 s of compiles, then 0.7 s). Under Wine on an NVIDIA card no host library is kept now. VICE_TAY_LIBRARY=0 turns it off anywhere, =1 keeps it under Wine. Windows is unchanged.

Copies at their place left their buffers in COPY_DEST (#153). place_copy wrote the host copy and only added a global wait after it. COPY_DEST is a write promotion, so it holds to the end of the ExecuteCommandLists call, and a root view later in the list or the card compare list sent with the runs couldn't promote it again. One run with the debug layer logged 369,094 of these (id 538). The destination goes back to COMMON after the copy now, and inside one host copy the source side goes back to COMMON before it's copied into. Ported from upstream Belobug#425 by MamaLeVrai, with its debug-layer test. It's about 29 copies a frame on the 4090, each one already behind a full wait, so the cost is one more transition per copy.

How it was tested

  • RTX 4090, Ryzen 9 9950X3D, Windows 11.
  • cargo test passed for what it touches: yes. That's gameinput (85), pipeline library and indirect (48) and host::place (5), plus new tests for the first two.
  • The debug-layer test, VICE_TAY_D3D12_DEBUG=1 cargo test -p vice-tay-gpu --features diagnostics --lib copies_in_place_leave -- --ignored, fails without the change: 7 of 8 cases are flagged, 9 messages in all, including the exact "ExecuteCommandLists ... COPY_DEST (promoted from COMMON state)" line from #153. With the change it passes with no messages.
  • cargo clippy --all-targets on vice-tay-gpu and vice-tay-hle is clean, with and without diagnostics.
  • Before/after for the Linux and pad changes: not run here. There's no Linux machine and no Xbox pad on this PC, so those rest on the reporters' measurements and the unit tests. No frame rate is claimed for any of the three. The 4K boat run is checked after the merge, as usual.

Has this been tried here before?

  • #153: the same fix is in c77a119e6 (upstream Belobug#425) and 50347f8f2 on research branches, and neither ever reached main. No record of it being rejected.

  • #115: the XInput drop came in with the upstream merge in 3109d3871. Neither parent had it.

  • #472: new. VICE_TAY_LIBRARY_LOADS=never was there already, but it still stores through the library, and that doesn't help (#472).

  • I searched the open pull requests for the same issue and for the files this touches.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5575722152 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/485). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T23:32:23Z. --- Refs #115, #472, #153 (each of those has more in it than this, so none is closed from here) Three bugs from the tracker, one commit each. ## What it changes **Xbox pads did nothing with MOUSE AND KEYBOARD on (#115).** `play` turns MNK on by default, and with it on `pad()` handed XInput nothing, CONTROLS set to GAMEPAD included. PlayStation and generic HID pads kept working, so it looked random. The title sees one pad by default and that pad already merges every host pad, the keys' stand-in pad and the mouse, so XInput can just play: always under GAMEPAD, and under AUTO whenever there's one pad. With `VICE_TAY_ONE_PAD=0` a pad would take the keys' stand-in away, so there it stays as before (the pad only drives F1). **Pipelines compiled again at every launch on Linux with NVIDIA (#472).** Pipelines made through vkd3d-proton's pipeline library miss NVIDIA's disk cache there. @zmelumian972 measured it: 44 of 52 slow loads came back in the next launch, 0.4-5 fps for the first ~45 s, while the same pipelines made without the library came back from the driver's cache (25.3 s of compiles, then 0.7 s). Under Wine on an NVIDIA card no host library is kept now. `VICE_TAY_LIBRARY=0` turns it off anywhere, `=1` keeps it under Wine. Windows is unchanged. **Copies at their place left their buffers in COPY_DEST (#153).** `place_copy` wrote the host copy and only added a global wait after it. COPY_DEST is a write promotion, so it holds to the end of the ExecuteCommandLists call, and a root view later in the list or the card compare list sent with the runs couldn't promote it again. One run with the debug layer logged 369,094 of these (id 538). The destination goes back to COMMON after the copy now, and inside one host copy the source side goes back to COMMON before it's copied into. Ported from upstream Belobug#425 by MamaLeVrai, with its debug-layer test. It's about 29 copies a frame on the 4090, each one already behind a full wait, so the cost is one more transition per copy. ## How it was tested - RTX 4090, Ryzen 9 9950X3D, Windows 11. - `cargo test` passed for what it touches: yes. That's gameinput (85), pipeline library and indirect (48) and host::place (5), plus new tests for the first two. - The debug-layer test, `VICE_TAY_D3D12_DEBUG=1 cargo test -p vice-tay-gpu --features diagnostics --lib copies_in_place_leave -- --ignored`, fails without the change: 7 of 8 cases are flagged, 9 messages in all, including the exact "ExecuteCommandLists ... COPY_DEST (promoted from COMMON state)" line from #153. With the change it passes with no messages. - `cargo clippy --all-targets` on vice-tay-gpu and vice-tay-hle is clean, with and without `diagnostics`. - Before/after for the Linux and pad changes: not run here. There's no Linux machine and no Xbox pad on this PC, so those rest on the reporters' measurements and the unit tests. No frame rate is claimed for any of the three. The 4K boat run is checked after the merge, as usual. ## Has this been tried here before? - #153: the same fix is in c77a119e6 (upstream Belobug#425) and 50347f8f2 on research branches, and neither ever reached main. No record of it being rejected. - #115: the XInput drop came in with the upstream merge in 3109d3871. Neither parent had it. - #472: new. `VICE_TAY_LIBRARY_LOADS=never` was there already, but it still stores through the library, and that doesn't help (#472). - [x] I searched the open pull requests for the same issue and for the files this touches.
chatgpt-codex-connector[bot] commented 2026-11-30 23:32:31 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-30T23:32:31Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T23:32:27.177835Z
We couldn’t complete this review. Comment @codex review to try again.
6ca29bc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7295238925 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/485#issuecomment-7295238925). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-30T23:32:31Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"6ca29bc1b8013c0d2dd3bfe368680b3c7035757a","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-30T23:32:27.177835Z">2026-11-30T23:32:27.177835Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `6ca29bc` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-30 23:32:33 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-30T23:32:33Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7295239627 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/485#issuecomment-7295239627). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-30T23:32:33Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage).
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
TaynanGT/Vice-Tay!485
No description provided.