Changed "fetch_update" for "try_update" #2201

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

@⁠nar001 on GitHub · 2026-11-25 09:09 UTC · original
nar001:main → main · +2 −2 · 2 files · 1 commits · open

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
**@⁠nar001** on GitHub · 2026-11-25 09:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2201) `nar001:main` → `main` · +2 −2 · 2 files · 1 commits · open <!-- 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:22:54 +00:00
Author
Owner

@⁠Toons29 on GitHub · 2026-11-25 09:36 UTC · original

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.

**@⁠Toons29** on GitHub · 2026-11-25 09:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7158556994) 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.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-25 09:52 UTC · original · edited 2026-11-25 09:57 UTC

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.

**@⁠Anon64** on GitHub · 2026-11-25 09:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7158924561) · edited 2026-11-25 09:57 UTC **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.
Author
Owner

@⁠SergeAx on GitHub · 2026-11-25 11:21 UTC · original

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.
**@⁠SergeAx** on GitHub · 2026-11-25 11:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7160940874) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 15:54 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 15:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2201#issuecomment-7167417621) 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!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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