XGameRuntime: try_update instead of the deprecated fetch_update #248

Closed
mmmharius wants to merge 1 commit from upstream-pr/251 into main
mmmharius commented 2026-11-23 21:52:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mmmharius on 2026-11-23T21:52:55Z.


Rust 1.100 deprecates AtomicU32::fetch_update (renamed try_update), so every build of the workspace prints a warning from XUserCloseHandle (hle/xgameruntime/mod.rs). This is the only use in the repository.

try_update takes the same arguments and behaves the same; it is stable since Rust 1.95, so older stable toolchains still build.

Tested on Windows with an NVIDIA RTX 3060, rustc 1.100: the build has no warning left, scripts/test.ps1 all green (611 passed, 0 failed, 20 ignored).

<!-- greyfinch-sync:ivall/xcl:issue:6569579596 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/251). Originally posted by [mmmharius](https://github.com/mmmharius) on 2026-11-23T21:52:55Z. --- Rust 1.100 deprecates `AtomicU32::fetch_update` (renamed `try_update`), so every build of the workspace prints a warning from `XUserCloseHandle` (`hle/xgameruntime/mod.rs`). This is the only use in the repository. `try_update` takes the same arguments and behaves the same; it is stable since Rust 1.95, so older stable toolchains still build. Tested on Windows with an NVIDIA RTX 3060, rustc 1.100: the build has no warning left, `scripts/test.ps1` all green (611 passed, 0 failed, 20 ignored).
futurepro62 commented 2026-11-24 07:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T03:04:01Z.


Tested exact head 8e091d7 (on its base 60565c4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 651 passed, 0 failed, 40 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The build of this head prints no deprecated warning; main (and other PR heads built here) warn about fetch_update in xgameruntime/mod.rs on Rust 1.100.0.
    Not tested
  • A retail title or scripts/smoke.ps1 (no title on this machine), AMD, wave64 hardware, a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7120739436 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/251#issuecomment-7120739436). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T03:04:01Z. --- Tested exact head `8e091d7` (on its base `60565c4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **651 passed, 0 failed, 40 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The build of this head prints no `deprecated` warning; `main` (and other PR heads built here) warn about `fetch_update` in `xgameruntime/mod.rs` on Rust 1.100.0. **Not tested** - A retail title or `scripts/smoke.ps1` (no title on this machine), AMD, wave64 hardware, a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
upstream-sync closed this pull request 2026-11-24 12:04:51 +00:00
ivall commented 2026-11-24 12:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T11:17:11Z.


Closing for now as a standalone deprecation cleanup. Main still uses fetch_update; this close does not imply the change has been applied. Thank you for the contribution.

<!-- greyfinch-sync:ivall/xcl:comment:7129900573 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/251#issuecomment-7129900573). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T11:17:11Z. --- Closing for now as a standalone deprecation cleanup. Main still uses fetch_update; this close does not imply the change has been applied. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!248
No description provided.