XGameRuntime: stub XSpeechToTextSetPositionHint to return S_OK #1537

Open
github-bot wants to merge 1 commit from github-bot/gh-1537 into main AGit
Owner

@⁠Ayoub-devv on GitHub · 2026-11-24 17:22 UTC · original
Ayoub-devv:fix-xgameruntime-stub → main · +10 −3 · 1 files · 1 commits · open

What is in it

  • crates/xcl/src/hle/xgameruntime/api.rs: stub XSpeechToTextSetPositionHint to return S_OK instead of E_NOTIMPL. This is a non-critical accessibility API (speech-to-text cursor positioning); returning success is a safe no-op that prevents titles from erroring on an unimplemented path.
  • Updated the existing fallback-vtable test expectation to match the new S_OK return value.

Tested

  • Windows x64, CPU-only
  • cargo test -p xcl --lib xgameruntime: 73 passed, 0 failed, 0 ignored.

Regression run

  • Regression blocks run by @⁠Toons29 on AMD Radeon RX 9070 (RDNA4).

xcl-smoke v1
commit: 4178e888c0
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB

xcl-smoke v1
commit: cb18875423
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1632)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14813 MB

Not tested

  • I did not personally run the retail title; the smoke blocks above were provided by @⁠Toons29 who ran them on their AMD RX 9070 hardware.

AI use

  • GitHub Copilot agent (frontier model) identified the safe stub candidate, applied the edit directly, and updated the corresponding vtable test expectation; I reviewed the choice and verified the test run.
**@⁠Ayoub-devv** on GitHub · 2026-11-24 17:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/1537) `Ayoub-devv:fix-xgameruntime-stub` → `main` · +10 −3 · 1 files · 1 commits · open **What is in it** - `crates/xcl/src/hle/xgameruntime/api.rs`: stub `XSpeechToTextSetPositionHint` to return `S_OK` instead of `E_NOTIMPL`. This is a non-critical accessibility API (speech-to-text cursor positioning); returning success is a safe no-op that prevents titles from erroring on an unimplemented path. - Updated the existing fallback-vtable test expectation to match the new `S_OK` return value. **Tested** - Windows x64, CPU-only - `cargo test -p xcl --lib xgameruntime`: 73 passed, 0 failed, 0 ignored. **Regression run** - Regression blocks run by @⁠Toons29 on AMD Radeon RX 9070 (RDNA4). xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB xcl-smoke v1 commit: cb188754235430f77d3ada8078b27d5edebb1d1f gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1632) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14813 MB **Not tested** - I did not personally run the retail title; the smoke blocks above were provided by @⁠Toons29 who ran them on their AMD RX 9070 hardware. **AI use** - GitHub Copilot agent (frontier model) identified the safe stub candidate, applied the edit directly, and updated the corresponding vtable test expectation; I reviewed the choice and verified the test run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:56:52 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 18:32 UTC · original

Full-suite run, since this PR has no test report yet. Tested exact head cb18875 (on its base b7aa9f3).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 770 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 770 passed, 0 failed, 41 ignored, no skips.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 18:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/1537#issuecomment-7140792407) Full-suite run, since this PR has no test report yet. Tested exact head `cb18875` (on its base `b7aa9f3`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **770 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **770 passed, 0 failed, 41 ignored**, no skips. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 19:12 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 19:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/1537#issuecomment-7141766775) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠Toons29 on GitHub · 2026-11-24 21:43 UTC · original

Regression run of cb188754 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: cb188754235430f77d3ada8078b27d5edebb1d1f
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1632)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14813 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

**@⁠Toons29** on GitHub · 2026-11-24 21:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1537#issuecomment-7145298155) Regression run of `cb188754` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: cb188754235430f77d3ada8078b27d5edebb1d1f gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1632) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14813 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:14 UTC · original

Empirical test report (cb188754)

Hardware / environment

Windows 11 Enterprise Evaluation x64 build 26200.9974 on an AMD Ryzen 7 3800X. Intel Arc A770 16 GiB, driver 32.0.101.9175, unused by this CPU-only run. Commit cb188754235430f77d3ada8078b27d5edebb1d1f.

  • Rust rustc 1.100.0 (0ef1bc386 2026-11-09) from rustc --version.
  • DXC dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47) from & "$env:XCL_DXC_DIR\dxc.exe" --version.

Commands and results

  • cargo test --workspace --no-run finished with exit code 0. It compiled the workspace test binaries and ran zero tests. Cargo reported a deprecation warning for AtomicU32::fetch_update.
  • With XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1, cargo test -p xcl --lib hle::xgameruntime::api::tests::xcl_xaccessibility_fallback_vtable_covers_captions_and_high_contrast -- --exact --nocapture finished with exit code 0. The captured log reported 1 passed / 0 failed / 0 ignored / 0 skipped, with 742 tests filtered out. Both commands ran outside Invoke-ArcTest.ps1 without acquiring the Arc GPU mutex.

Observed behavior

The built-in XAccessibility vtable returned S_OK from slot 6 for XSpeechToTextSetPositionHint(0). The same test passed its caption enable and disable checks, high-contrast mode check, and QueryApiImpl assertion. The runtime log showed that the query selected XCL's fallback.

Not tested

Coverage was limited to workspace test compilation and the PR's focused CPU test. The full GPU workspace suite and game smoke runs were omitted.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1537-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1537#issuecomment-7153588496) ### Empirical test report (cb188754) **Hardware / environment** Windows 11 Enterprise Evaluation x64 build 26200.9974 on an AMD Ryzen 7 3800X. Intel Arc A770 16 GiB, driver 32.0.101.9175, unused by this CPU-only run. Commit `cb188754235430f77d3ada8078b27d5edebb1d1f`. - Rust `rustc 1.100.0 (0ef1bc386 2026-11-09)` from `rustc --version`. - DXC `dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47)` from `& "$env:XCL_DXC_DIR\dxc.exe" --version`. **Commands and results** - `cargo test --workspace --no-run` finished with exit code 0. It compiled the workspace test binaries and ran zero tests. Cargo reported a deprecation warning for `AtomicU32::fetch_update`. - With `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`, `cargo test -p xcl --lib hle::xgameruntime::api::tests::xcl_xaccessibility_fallback_vtable_covers_captions_and_high_contrast -- --exact --nocapture` finished with exit code 0. The captured log reported **1 passed / 0 failed / 0 ignored / 0 skipped**, with 742 tests filtered out. Both commands ran outside `Invoke-ArcTest.ps1` without acquiring the Arc GPU mutex. **Observed behavior** The built-in XAccessibility vtable returned `S_OK` from slot 6 for `XSpeechToTextSetPositionHint(0)`. The same test passed its caption enable and disable checks, high-contrast mode check, and `QueryApiImpl` assertion. The runtime log showed that the query selected XCL's fallback. **Not tested** Coverage was limited to workspace test compilation and the PR's focused CPU test. The full GPU workspace suite and game smoke runs were omitted. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1537-focused.log` and published.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/hle/xgameruntime/api.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1537/head:github-bot/gh-1537'
git switch 'github-bot/gh-1537'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1537'
git switch 'github-bot/gh-1537'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1537'
git switch 'github-bot/gh-1537'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1537'
git switch 'main'
git merge --squash 'github-bot/gh-1537'
git switch 'main'
git merge --ff-only 'github-bot/gh-1537'
git switch 'main'
git merge 'github-bot/gh-1537'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.