Repository navigation
Conversation
Use the Windows HID collection's maximum input report length for ReadFile. A DualShock 4 Bluetooth collection can advertise 547 bytes, while the old fixed buffer holds 128. Add synthetic coverage for Bluetooth, USB and fallback sizes. Fixes xcl-dev#2465. Assisted-by: OpenAI Codex (GPT-6.2 Sol)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test run on exact head Tested
Regression run (60 s, default settings, a retail title) main: this PR: No crash or device removal; frames 101 % of Not tested
AI use
|
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
|
Two contributors checked independently and found that #2546 solves the same problem (for #2465) in a different way: #1607, group D120. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
Fixes #2465. XCL used a fixed 128-byte buffer for Windows HID reads. A DualShock 4 Bluetooth HID collection can advertise a 547-byte maximum. Size the read buffer from the collection capabilities and keep the previous fallback when the capability is unavailable.
What is in it
playstation.rsqueries the existing HID handle, releases the preparsed data, and uses the advertised input report length. A synthetic regression covers Bluetooth, USB, fallback sizing, and parsing.Cargo.tomlenables the required bindings in the existingwindows-sysdependency. The README describes the input behavior.Tested
cargo +stable-x86_64-pc-windows-gnu test -j 4 -p xcl --lib hle::playstation::tests: 3 passed, 0 failed, 0 ignored. The regression failed before the fix with a 128-byte buffer where it expected 547 bytes.cargo +stable-x86_64-pc-windows-gnu test -j 4 --workspace --no-fail-fast -- --test-threads=4: 1,420 passed, 4 failed, 46 ignored. The four GPU failures also appeared on an independent checkout of the same base and earlier clean upstream. Eight SKIPPED notices covered six unsupported per-lane paths, driver-cache measurement without Developer Mode, and the opt-in heap-window path.Regression run
Paired real-title smoke runs are pending. This draft remains blocked on those runs.
Not tested
Physical DualShock 4 Bluetooth, retail titles, MSVC, release, and other GPU vendors.
AI use
OpenAI Codex with GPT-6.2 Sol (extra-high reasoning for the implementation and final checks) updated the code and regression and ran the tests.