Skip to content

gameinput: GetTemporalReading stays E_NOTIMPL, as in GameInput v0 (RT-147) - #2239

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
itsRevela:rt/gameinput-temporal-reading
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
itsRevela:rt/gameinput-temporal-reading

Conversation

@itsRevela

Copy link
Copy Markdown
Contributor

Item: RT-147 (claim).

Finding: v0 never implemented it

The claim planned a history lookup. Microsoft's reference page for GetTemporalReading says the method "was never implemented in v0" and returns E_NOTIMPL, and that v1 removed it. The shim is GameInput v0 (gameinput_abi.h), so its current E_NOTIMPL is already what a title built against v0 gets from Microsoft's runtime. Implementing the lookup would give the title an answer no GameInput gives, so this PR keeps the behaviour and pins it instead.

I also checked the ABI. The same page shows a five-parameter signature, (targetTime, windowSize, inputKind, device, reading). The v0 header in NuGet Microsoft.GameInput 0.2303.22621.3038 (native/include/GameInput.h) declares (timestamp, device, reading), which is the shim's vtable entry. So there's no layout bug; the five-parameter form on the page doesn't match the shipped header.

Changes

  • runtime/shims/gameinput.cpp: a comment at the method saying why E_NOTIMPL is the intended answer. No behaviour change.
  • runtime/test/gameinput_test.cpp: one check. It expects E_NOTIMPL with the reading cleared for a timestamp in the history, one a second before it, and the current time, each with and without a device filter, and E_POINTER for a null output.
  • docs/gameinput.md: the API table and the "Reading history" note now say it's E_NOTIMPL as in v0, with the source, instead of listing it as a gap.

Tested

Windows 11 (26200), MSVC 19.44 (VS 2022), Ninja RelWithDebInfo with -DLEONIDA_SDL3_FETCH=ON, so gameinput runs instead of being Disabled. No GPU is involved; the machine has an RTX 3070 Ti, driver 610.88.

  • gameinput_test: 186 checks, 0 failures, including the new one.
  • ctest: 105/105 passed (7 skipped).

No game files. AI-assisted (Claude Code).

…-147)

Microsoft's reference page says IGameInput::GetTemporalReading "was never
implemented in v0" and returns E_NOTIMPL, and v1 removed it, so the shim's
E_NOTIMPL already matches the API the title was built against. A history
lookup would answer what no GameInput runtime does. The v0 header (NuGet
Microsoft.GameInput 0.2303.22621.3038) declares (timestamp, device,
reading), the shim's layout; the page's five-parameter form doesn't match it.

Pin the behaviour in gameinput_test (E_NOTIMPL with the reading cleared, for
past, present and current timestamps, with and without a device filter;
E_POINTER for a null output) and say so in docs/gameinput.md instead of
listing the method as a gap.
@ezwinxdlmao

Copy link
Copy Markdown
Contributor

Tested b9a3cbc on an NVIDIA GeForce RTX 3050 Laptop GPU, driver 32.0.16.2101, Windows 11, native MSVC (VS 2022 Build Tools, Ninja, RelWithDebInfo), with llvm-mc 21.1.8 for the translated-shader tests: pass.

  • Builds cleanly, and nothing else in the suite changes. Not covered: the gameinput ctest entry is disabled in this build because SDL3 isn't installed here (runtime/CMakeLists.txt:641), so this PR's own gameinput_test change did not run.
  • Full ctest -j3: 115/116. The one failure is d3d12_draw (bundle blend pixel 127,0,127,255; TEST-266, fixed by Tests: wait for the bundle blend draws in d3d12_draw (fence 31, not 21) #1995), which fails identically on unmodified main 4eb6155d (this PR's base) on the same GPU. No build warnings in the files this PR touches.

AI-assisted (Claude Code).

@kapitche

Copy link
Copy Markdown
Contributor

Tested on Windows 11 with two GPUs on one machine (MSVC 14.51, llvm-mc 23.1.6): no regression. RTX 4080 SUPER: 115/116. Not from this PR: d3d12_draw (bundle-blend regression on main, fixed by #1995). The Intel UHD 770 failures are the known ones (#2300): d3d12_descriptor, d3d12_present, d3d12_m3_frame, d3d12_subgroup.

@mesterember104-cpu

Copy link
Copy Markdown

Tested b9a3cbc on Tiger Lake (Xe-LP) iGPU 0x9a78 (subgroup 8..32, no mesh), driver 32.0.101.7088, Windows 11, MSVC 14.44: pass

CPU-side change (GameInput shim comment + one test check + docs), no GPU involvement. Built with -DLEONIDA_SDL3_FETCH=ON like the author, so the gameinput test runs instead of being Disabled: it reports 186 checks, 0 failures, including the new one — "PASS history: GetTemporalReading is E_NOTIMPL with a null reading, as in GameInput v0" — alongside the rest of the history suite (E_POINTER for null output, kind masks, device filters all still green).

Full ctest: 100/102 pass, 6 skipped (shader_library_corpus, bink_decode, bink_audio, vk_sync_validation, d3d12_queue_wait, d3d12_rgb9e5_rtv). The 2 failing tests are the pre-existing Intel-main failures this PR cannot touch (comment-only shim change): d3d12_descriptor (Intel minLOD mismatch, D3D-219/220 class) and d3d12_draw (#1660 bundle-blend, "got 128,0,128,255, expected red 64").

AI-assisted (GLM, operated by the account owner).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants