GameInput: a device callback reports the statuses its filter names #1784
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1784
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1784"
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?
@b3IKK on GitHub · 2026-11-24 20:37 UTC · original
b3IKK:gameinput/device-callback-filter→main· +31 −5 · 1 files · 1 commits · openAddresses
XCL-BT-027from #1488.IGameInput::RegisterDeviceCallbacktakes astatusFilter(aGameInputDeviceStatusmask) and ignored it (_filter): the callback always reported every status the gamepad has — connected, input enabled, output enabled, synchronized (0x47). A title that asked for one status (sayOutputEnabled, to decide whether rumble works) was told about all of them, and a filter the device matches none of (a wired-only status on a wireless pad) still got a callback it should not see.This reports
STATUS & filter— the statuses the device has that the caller asked for — and calls nothing when the filter matches none of them.What is in it
crates/xcl/src/hle/gameinput.rs:register_device_callbackhonoursstatusFilteron both the blocking and the async enumeration paths; add testa_device_callback_reports_only_the_statuses_it_asked_for(connected →0x1, input+output →0x6, a status the device does not have → no callback). Fails onmainwithleft: 71, right: 1.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 893 passed, 0 failed, 42 ignored (SKIPPED: 2no wave64; 1no heap windows; 1cannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib gameinput: 10 passed, 0 failedRegression run
main (
e9e94ce, clean tree, no local changes):PR (
9b8c3de, clean tree, no local changes):Not tested
AI use
XCL-BT-027againstregister_device_callback, wrote the fix and test (and confirmed it fails without it), rebased ontoe9e94ce, ran the test suite andscripts/smoke.ps1regression runs with #677's title hashing, and drafted this PR description.@b3IKK on GitHub · 2026-11-24 21:21 UTC · original
Rebased onto
e9e94ce(which brought #677's anonymised itle: line into scripts/smoke.ps1) and re-ran both: 893 passed, 0 failed, 42 ignored; the blocks above are from the new script.@futurepro62 on GitHub · 2026-11-24 21:28 UTC · original · edited 2026-11-24 22:20 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
9b8c3de(on its basee9e94ce).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 891 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_device_callback_reports_only_the_statuses_it_asked_for.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 893 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and therepso_measurement_compiles_an_exact_synthetic_recordran and passed.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:36 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:26 UTC · original
PR #1784 — GameInput compatibility verification
Tested clean checkout
9b8c3de8851ad14e916bc3d8f9c214bf6ea5c854. The change intersects the device status with the caller's filter in both enumeration paths and suppresses callbacks when the intersection is empty.Environment
STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175,
DoublePrecisionFloatShaderOps=0, wave range 8–32). DXC/DXIL 1.9.2609.5. Rust 1.100.0 (0ef1bc386 2026-11-09), unoptimized dev/test profiles with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runboth succeeded.cargo test -p xcl gameinput -- --nocapturereturned 10 passed, 0 failed, 0 ignored. The new blocking-enumeration test verified connected-only (0x1), input and output enabled (0x6), and suppression for an unsupported wired-status filter (0x8). The existing asynchronous unregister test also passed with the full status filter.cargo test --workspace --no-fail-fast -- --test-threads=4under the shared Arc lock, withRUST_TEST_NOCAPTURE=1to retain skip diagnostics. Across 20 test summaries, libtest reported 875 passed, 18 failed, 42 ignored (exit 101). The log contains 7 explicitSKIPPEDlines within the reported passes. Those paths provide zero coverage.Failures and skips
CreateComputePipelineStateerrors (0x80070057), including FP64 tests. The other four were assertions for FMA contraction, implicit-LOD mip sampling, FP16 high-half preservation, and wave64 pixel reductions.RSSetDepthBiasXrendered the top-right pixel blue where it expected green.Not tested
A
mainbaseline, retail-title smoke comparison, other adapters, game-data tests requiring unsetXCL_SAMPLE_*variables, and asynchronous enumeration with a partial status filter.AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1784-suite.logand published this report.@throny on GitHub · 2026-11-25 18:10 UTC · original
Two contributors checked independently and found that #1603 solves the same problem (for #1488) in a different way: #1607, group D92. 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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.