[pr-fix] Xbox pads with mouse and keyboard on, no pipeline library under Wine on NVIDIA, copies at their place back to common #485
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!485
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-485"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-30 23:32 UTC · original
TaynanGT:issue-fixes-20261130→main· +285 −18 · 5 files · 4 commits · merged 2026-11-30 23:42 UTCRefs #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).
playturns MNK on by default, and with it onpad()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. WithVICE_TAY_ONE_PAD=0a 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=0turns it off anywhere,=1keeps it under Wine. Windows is unchanged.Copies at their place left their buffers in COPY_DEST (#153).
place_copywrote 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
cargo testpassed 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.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-targetson vice-tay-gpu and vice-tay-hle is clean, with and withoutdiagnostics.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=neverwas 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.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 23:32 UTC · original
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
We couldn’t complete this review. Comment
@codex reviewto try again.6ca29bcℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 23:32 UTC · original
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.