Changed "fetch_update" for "try_update" #2191

Closed
nar001 wants to merge 1 commit from upstream-pr/2201 into main
nar001 commented 2026-11-25 09:09:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nar001 on 2026-11-25T09:09:52Z.


What is in it

  • Changed two lines, fetch_update to try_update

Tested

  • Latest rust, only changes two lines as said before
  • cargo build --release --workspace works, no issues

Regression run

main:

PR:

Not tested

  • nothing

AI use

  • none
<!-- greyfinch-sync:ivall/xcl:issue:5488366911 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2201). Originally posted by [nar001](https://github.com/nar001) on 2026-11-25T09:09:52Z. --- <!-- What changes and why, in a few sentences. "Fixes #N" / "Part of #N". Stacked: "Stacked on #N". --> **What is in it** - Changed two lines, fetch_update to try_update **Tested** - Latest rust, only changes two lines as said before - cargo build --release --workspace works, no issues **Regression run** <!-- Required when the PR changes crates/xcl/src outside tests: `scripts/smoke.ps1` on a real title, built from main and from this PR's head commit (no uncommitted changes); paste both blocks. Rerun the PR's after every push. Not needed for docs / tests / scripts only. --> main: PR: **Not tested** - nothing **AI use** - none
Toons29 commented 2026-11-25 10:10:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T09:36:23Z.


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

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: 62a7c9d6898f267cce6f8190e6c900d410c6d505
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1637 (PresentX 1637)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14810 MB

Against the limits in CONTRIBUTING.md: 105 % of main's frames, 101 % 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; a script posted this right after the run, with both blocks exactly as printed.

<!-- greyfinch-sync:ivall/xcl:comment:7158556994 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7158556994). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T09:36:23Z. --- Regression run of `62a7c9d6` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `568e7db7`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: 62a7c9d6898f267cce6f8190e6c900d410c6d505 gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1637 (PresentX 1637) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14810 MB ``` Against the limits in CONTRIBUTING.md: 105 % of `main`'s frames, 101 % 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`; a script posted this right after the run, with both blocks exactly as printed.
Anon64 commented 2026-11-25 10:10:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T09:52:50Z.


Correction: please disregard my first version of this comment. I said this head doesn't build on stable Rust, but that came from an outdated toolchain on my machine (rustc 1.90.0, where try_update on the atomics is still unstable). With Rust 1.98.1, cargo check -p xcl --release of head 62a7c9d succeeds. CI installs the current stable, so this PR is fine there.

The only concern left is a small one. try_update needs a newer toolchain than fetch_update did, so a contributor on an older stable gets E0658 (atomic_try_update). If the project wants to support older toolchains, a rust-version in Cargo.toml would say so. That's up to the maintainer, not something this PR must change.

Regression run: a retail title, from scripts/smoke.ps1 as printed. 60 s, release, default settings, A pressed every 4 s from 20 s. RTX 3060 12 GB, Windows 11, both commits built with Rust 1.98.1.

base (8c4a46a):

xcl-smoke v1
commit: 8c4a46a3c2d50498691cbda79cbbf4fadb45fbe8
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1560 (PresentX 1560)
presents per 2 s (last 3): 46 43 24
device removals: 0
crashes: 0
peak commit: 25876 MB

this PR:

xcl-smoke v1
commit: 62a7c9d6898f267cce6f8190e6c900d410c6d505
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1595 (PresentX 1596)
presents per 2 s (last 3): 39 54 37
device removals: 0
crashes: 0
peak commit: 24451 MB

No device removal or crash. Frames are 102 % of the base's and peak commit is 94 %. This is a regression check only: the run does not show whether the title reaches the changed paths.

AI use: Claude Code (Claude Opus 5.5) built the commits with both toolchains, ran the smoke pair and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7158924561 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7158924561). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-25T09:52:50Z. --- **Correction:** please disregard my first version of this comment. I said this head doesn't build on stable Rust, but that came from an outdated toolchain on my machine (rustc 1.90.0, where `try_update` on the atomics is still unstable). With Rust 1.98.1, `cargo check -p xcl --release` of head `62a7c9d` succeeds. CI installs the current stable, so this PR is fine there. The only concern left is a small one. `try_update` needs a newer toolchain than `fetch_update` did, so a contributor on an older stable gets `E0658` (`atomic_try_update`). If the project wants to support older toolchains, a `rust-version` in `Cargo.toml` would say so. That's up to the maintainer, not something this PR must change. **Regression run:** a retail title, from `scripts/smoke.ps1` as printed. 60 s, release, default settings, A pressed every 4 s from 20 s. RTX 3060 12 GB, Windows 11, both commits built with Rust 1.98.1. base (`8c4a46a`): ``` xcl-smoke v1 commit: 8c4a46a3c2d50498691cbda79cbbf4fadb45fbe8 gpu: NVIDIA GeForce RTX 3060 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1560 (PresentX 1560) presents per 2 s (last 3): 46 43 24 device removals: 0 crashes: 0 peak commit: 25876 MB ``` this PR: ``` xcl-smoke v1 commit: 62a7c9d6898f267cce6f8190e6c900d410c6d505 gpu: NVIDIA GeForce RTX 3060 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1595 (PresentX 1596) presents per 2 s (last 3): 39 54 37 device removals: 0 crashes: 0 peak commit: 24451 MB ``` No device removal or crash. Frames are 102 % of the base's and peak commit is 94 %. This is a regression check only: the run does not show whether the title reaches the changed paths. **AI use:** Claude Code (Claude Opus 5.5) built the commits with both toolchains, ran the smoke pair and wrote this comment.
SergeAx commented 2026-11-25 12:06:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SergeAx on 2026-11-25T11:21:34Z.


Test report on head 62a7c9d (its parent is main 8c4a46a).

Tested

  • NVIDIA GeForce RTX 5080 16 GB (driver 621.14), AMD Ryzen 5 3500X, Windows 10 Pro 22H2 (10.0.19045.6466), Rust 1.100.0 MSVC, debug, DXC 1.9.2609.5 (XCL_DXC_DIR)
  • cargo build --workspace: 0 warnings. On main 568e7db the same build has the two use of deprecated method ... fetch_update warnings this PR removes (hle/d3d12x/real.rs:3388, hle/xgameruntime/mod.rs:547).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 993 passed, 2 failed, 45 ignored (lib tests 944 / 2 / 25). The e2e test, whose title calls XUserCloseHandle, passed.
  • The 2 failures fail the same way without this PR, on its parent 8c4a46a and on main 568e7db:
    • gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top: HRESULT(0x80070057) at heap_window_tests.rs:100
    • hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_it: 20 of 40 ExecuteIndirects ran group count 0
  • 267 SKIPPED: 220 no GPU, 21 no GPU with 32-lane waves, 20 no SM 6.6 (on Windows 10, set XCL_D3D12_DIR to a D3D12 Agility SDK folder), 2 no wave64, one each no wave32, no heap windows, no GPU with 32- or 64-lane waves, no GPU / DXC / mesh shaders.

Not tested

  • The changed line in driver_pso (real.rs): heap_window_out_of_memory_falls_back_to_the_switch_form, the test that reaches it, skipped (no heap windows).
  • The GPU tests that need SM 6.6: this Windows 10 machine has no D3D12 Agility SDK set up.
  • No regression run (no retail title here), no release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the build and the tests and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7160940874 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7160940874). Originally posted by [SergeAx](https://github.com/SergeAx) on 2026-11-25T11:21:34Z. --- Test report on head `62a7c9d` (its parent is `main` `8c4a46a`). **Tested** - NVIDIA GeForce RTX 5080 16 GB (driver 621.14), AMD Ryzen 5 3500X, Windows 10 Pro 22H2 (10.0.19045.6466), Rust 1.100.0 MSVC, debug, DXC 1.9.2609.5 (`XCL_DXC_DIR`) - `cargo build --workspace`: 0 warnings. On `main` `568e7db` the same build has the two `use of deprecated method ... fetch_update` warnings this PR removes (`hle/d3d12x/real.rs:3388`, `hle/xgameruntime/mod.rs:547`). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 993 passed, 2 failed, 45 ignored (lib tests 944 / 2 / 25). The e2e test, whose title calls `XUserCloseHandle`, passed. - The 2 failures fail the same way without this PR, on its parent `8c4a46a` and on `main` `568e7db`: - `gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top`: `HRESULT(0x80070057)` at `heap_window_tests.rs:100` - `hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_it`: 20 of 40 ExecuteIndirects ran group count 0 - 267 SKIPPED: 220 `no GPU`, 21 `no GPU with 32-lane waves`, 20 `no SM 6.6 (on Windows 10, set XCL_D3D12_DIR to a D3D12 Agility SDK folder)`, 2 `no wave64`, one each `no wave32`, `no heap windows`, `no GPU with 32- or 64-lane waves`, `no GPU / DXC / mesh shaders`. **Not tested** - The changed line in `driver_pso` (`real.rs`): `heap_window_out_of_memory_falls_back_to_the_switch_form`, the test that reaches it, skipped (`no heap windows`). - The GPU tests that need SM 6.6: this Windows 10 machine has no D3D12 Agility SDK set up. - No regression run (no retail title here), no release build. **AI use** - Claude Code (Claude Opus 5.5) ran the build and the tests and wrote this report.
DavidM1911 commented 2026-11-25 16:12:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:54:23Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7167417621 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7167417621). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T15:54:23Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-29 20:43:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:13Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262303914 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7262303914). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:43:13Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

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!2191
No description provided.