D3D12.X: fix XG optimal_mode overflow, BCn UAV bits_per_pixel, and get_texel_offset bounds #1470

Open
b3IKK wants to merge 1 commit from upstream-pr/1480 into main
b3IKK commented 2026-11-24 16:46:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T16:46:22Z.


Fixes three bugs in crates/xcl/src/hle/xg.rs:

  • optimal_mode() multiplied bits_per_pixel * width * height as u64 without saturating, overflowing u64 on large widths (aborting across extern "system" fn XGSuggestSwizzleMode in debug or wrapping into the <= 0x8_0000 4KB_S_X threshold in release).
  • XGSuggestSwizzleMode's fallback path computed 8u64 << e instead of dividing by side * side for block-compressed formats (16× too large for BCn, selecting 64KB_R_X instead of 4KB_S_X for a 128×128 BC7 UAV), and checked only d[0] == 2 instead of the full u32 Dimension field.
  • get_texel_offset() checked mip and slice but not x / y against the mip's element dimensions, causing out-of-bounds x (such as u64::MAX on a tail mip with non-zero origin) to overflow and abort (STATUS_STACK_BUFFER_OVERRUN) across extern "system" fn.

This uses saturating_mul in optimal_mode(), divides by side * side and reads the full u32 Dimension in XGSuggestSwizzleMode(), and bounds-checks x < m.width && y < m.height in get_texel_offset().

What is in it

  • crates/xcl/src/hle/xg.rs: fix optimal_mode, XGSuggestSwizzleMode, and get_texel_offset; add unit tests optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav and get_texel_offset_rejects_out_of_bounds_xy (both verified failing/aborting before the fix).

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 772 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 no wave64 — gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)
  • cargo test -p xcl --lib hle::xg::tests: 5 passed, 0 failed (both new tests failed/aborted before the fix)

Regression run

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1226 (PresentX 1226)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15341 MB

PR:

xcl-smoke v1
commit: 47e5ef07a33420099a17ff4bec0c240228ac2412
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1651 (PresentX 1651)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14601 MB

Not tested

  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Gemini 4 Neon: audited hle/xg.rs, wrote the fixes and unit tests, ran the test suite and scripts/smoke.ps1 regression runs, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5476456354 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T16:46:22Z. --- Fixes three bugs in `crates/xcl/src/hle/xg.rs`: - `optimal_mode()` multiplied `bits_per_pixel * width * height as u64` without saturating, overflowing `u64` on large widths (aborting across `extern "system" fn XGSuggestSwizzleMode` in debug or wrapping into the `<= 0x8_0000` `4KB_S_X` threshold in release). - `XGSuggestSwizzleMode`'s fallback path computed `8u64 << e` instead of dividing by `side * side` for block-compressed formats (16× too large for BCn, selecting `64KB_R_X` instead of `4KB_S_X` for a 128×128 BC7 UAV), and checked only `d[0] == 2` instead of the full `u32` `Dimension` field. - `get_texel_offset()` checked `mip` and `slice` but not `x` / `y` against the mip's element dimensions, causing out-of-bounds `x` (such as `u64::MAX` on a tail mip with non-zero origin) to overflow and abort (`STATUS_STACK_BUFFER_OVERRUN`) across `extern "system" fn`. This uses `saturating_mul` in `optimal_mode()`, divides by `side * side` and reads the full `u32` `Dimension` in `XGSuggestSwizzleMode()`, and bounds-checks `x < m.width && y < m.height` in `get_texel_offset()`. **What is in it** - `crates/xcl/src/hle/xg.rs`: fix `optimal_mode`, `XGSuggestSwizzleMode`, and `get_texel_offset`; add unit tests `optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav` and `get_texel_offset_rejects_out_of_bounds_xy` (both verified failing/aborting before the fix). **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 772 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 `no wave64` — `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware`) - `cargo test -p xcl --lib hle::xg::tests`: 5 passed, 0 failed (both new tests failed/aborted before the fix) **Regression run** main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1226 (PresentX 1226) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15341 MB ``` PR: ``` xcl-smoke v1 commit: 47e5ef07a33420099a17ff4bec0c240228ac2412 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1651 (PresentX 1651) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14601 MB ``` **Not tested** - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Gemini 4 Neon: audited `hle/xg.rs`, wrote the fixes and unit tests, ran the test suite and `scripts/smoke.ps1` regression runs, and drafted this PR description.
futurepro62 commented 2026-11-24 17:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T16:59:59Z.


Full-suite run, since this PR has no test report yet. Tested exact head 47e5ef0 (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, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 772 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav, get_texel_offset_rejects_out_of_bounds_xy.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 772 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.
<!-- greyfinch-sync:ivall/xcl:comment:7138531127 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7138531127). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T16:59:59Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `47e5ef0` (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, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **772 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav`, `get_texel_offset_rejects_out_of_bounds_xy`. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **772 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.
DavidM1911 commented 2026-11-24 19:07:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:21Z.


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 / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7141293449 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7141293449). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T18:53:21Z. --- 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 / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
JJAutoCompare commented 2026-11-25 06:05:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:26:25Z.


Empirical test report (47e5ef07)

Hardware / environment

  • Windows x64 build 26200 on AMD Family 23 Model 113 Stepping 0 with 12 logical processors.
  • rustc 1.100.0 (0ef1bc386 2026-11-09), host x86_64-pc-windows-msvc. DXC reported dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).
  • Clean detached checkout at 47e5ef07a33420099a17ff4bec0c240228ac2412. The unoptimized Cargo test profile ran with incremental compilation and debug symbols disabled. Both commands ran outside Invoke-ArcTest.ps1 and did not acquire the Arc GPU mutex.

Commands and results

  • cargo test --workspace --no-run exited 0. Cargo compiled the workspace test executables.

  • With XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1, ran:

    cargo test -p xcl --lib -- --nocapture --exact hle::xg::tests::optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav hle::xg::tests::get_texel_offset_rejects_out_of_bounds_xy
    

    Exit 0. 2 passed, 0 failed, 0 ignored, 0 skipped, 743 filtered out. Counts came from the focused log's case-sensitive test result and SKIPPED lines.

Observed behavior

  • optimal_mode returned mode 27 for a UAV whose nominal bit count exceeds u64::MAX. The two-sample 128 × 128 BC7 UAV descriptor took the XGSuggestSwizzleMode fallback and returned S_OK with 4KB_S_X (0x115).
  • get_texel_offset returned zero for x = u64::MAX on mip 5 and for each coordinate at the mip-0 extent of 64. The test also confirmed that the bit offset was cleared for the mip-5 call.
  • Both tests use synthetic descriptors and CPU tiling calculations. Neither creates a D3D12 device or submits GPU work.

Not tested

The full GPU workspace suite and game smoke runs were omitted. The changed 32-bit Dimension check has no dedicated assertion in the two focused tests.

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7153773067 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7153773067). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:26:25Z. --- ### Empirical test report (47e5ef07) **Hardware / environment** - Windows x64 build 26200 on AMD Family 23 Model 113 Stepping 0 with 12 logical processors. - `rustc 1.100.0 (0ef1bc386 2026-11-09)`, host `x86_64-pc-windows-msvc`. DXC reported `dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47)`. - Clean detached checkout at `47e5ef07a33420099a17ff4bec0c240228ac2412`. The unoptimized Cargo test profile ran with incremental compilation and debug symbols disabled. Both commands ran outside `Invoke-ArcTest.ps1` and did not acquire the Arc GPU mutex. **Commands and results** - `cargo test --workspace --no-run` exited 0. Cargo compiled the workspace test executables. - With `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`, ran: ```powershell cargo test -p xcl --lib -- --nocapture --exact hle::xg::tests::optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav hle::xg::tests::get_texel_offset_rejects_out_of_bounds_xy ``` Exit 0. 2 passed, 0 failed, 0 ignored, 0 skipped, 743 filtered out. Counts came from the focused log's case-sensitive test result and `SKIPPED` lines. **Observed behavior** - `optimal_mode` returned mode 27 for a UAV whose nominal bit count exceeds `u64::MAX`. The two-sample 128 × 128 BC7 UAV descriptor took the `XGSuggestSwizzleMode` fallback and returned `S_OK` with `4KB_S_X` (`0x115`). - `get_texel_offset` returned zero for `x = u64::MAX` on mip 5 and for each coordinate at the mip-0 extent of 64. The test also confirmed that the bit offset was cleared for the mip-5 call. - Both tests use synthetic descriptors and CPU tiling calculations. Neither creates a D3D12 device or submits GPU work. **Not tested** The full GPU workspace suite and game smoke runs were omitted. The changed 32-bit Dimension check has no dedicated assertion in the two focused tests. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1480-focused.log` and published.
github-actions[bot] commented 2026-11-28 20:18:11 +00:00 (Migrated from github.com)

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


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:7245186520 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7245186520). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:18:11Z. --- 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.
Foniass commented 2026-12-01 05:54:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:54:06Z.


Triage (#1607) – head 47e5ef0

No open or merged PR makes these changes to hle/xg.rs.

  • The optimal_mode product now saturates instead of overflowing.
  • The XGSuggestSwizzleMode fallback divides block bits by side*side, so BCn gets bits per pixel (BC7: 128/16 = 8).
  • get_texel_offset bounds-checks x/y against the level's element width/height, which matches the units element_offset uses.
    The change of the 1D check from d[0] to the full u32 is not in the title but is harmless. Whether real XG picks 4KB_S_X for small BCn UAVs is not shown here.

Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7302259339 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7302259339). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:54:06Z. --- **Triage (#1607)** – head 47e5ef0 No open or merged PR makes these changes to `hle/xg.rs`. - The `optimal_mode` product now saturates instead of overflowing. - The `XGSuggestSwizzleMode` fallback divides block bits by `side*side`, so BCn gets bits per pixel (BC7: 128/16 = 8). - `get_texel_offset` bounds-checks x/y against the level's element width/height, which matches the units `element_offset` uses. The change of the 1D check from `d[0]` to the full u32 is not in the title but is harmless. Whether real XG picks 4KB_S_X for small BCn UAVs is not shown here. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
BBareth commented 2026-12-01 09:38:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T09:38:52Z.


merge-check claim
head: 47e5ef07a3

<!-- greyfinch-sync:ivall/xcl:comment:7307002106 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7307002106). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T09:38:52Z. --- merge-check claim head: 47e5ef07a33420099a17ff4bec0c240228ac2412
BBareth commented 2026-12-01 09:59:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T09:59:58Z.


merge-check
base: 493dbd3dd0
head: 47e5ef07a3
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2902 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). Both new tests ran and passed: optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav, get_texel_offset_rejects_out_of_bounds_xy.
review: no blocking finding; one file (+41/-5), every line read. Four small fixes in xg.rs: (1) optimal_mode multiplies with saturation instead of overflowing; (2) XGSuggestSwizzleMode reads the dimension as the 32-bit field it is, not its first byte; (3) its fallback computes bits per pixel for block-compressed formats per pixel, not per block (BC7: 8, not 128), which changes the suggested mode for small BCn UAV textures on that fallback path only (MSAA, 3-D render targets); (4) get_texel_offset returns 0 for x / y outside the level instead of indexing past it; x and y are compared with the level size in elements, the unit element_offset takes. The PR bundles four fixes, each small and in one function family. Not tested here: a retail title that reaches the fallback or passes out-of-range coordinates.
performance: none: a few comparisons.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7307516284 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7307516284). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T09:59:58Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 47e5ef07a33420099a17ff4bec0c240228ac2412 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2902 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). Both new tests ran and passed: `optimal_mode_and_suggest_swizzle_handle_overflow_and_bcn_uav`, `get_texel_offset_rejects_out_of_bounds_xy`. review: no blocking finding; one file (+41/-5), every line read. Four small fixes in `xg.rs`: (1) `optimal_mode` multiplies with saturation instead of overflowing; (2) `XGSuggestSwizzleMode` reads the dimension as the 32-bit field it is, not its first byte; (3) its fallback computes bits per pixel for block-compressed formats per pixel, not per block (BC7: 8, not 128), which changes the suggested mode for small BCn UAV textures on that fallback path only (MSAA, 3-D render targets); (4) `get_texel_offset` returns 0 for x / y outside the level instead of indexing past it; x and y are compared with the level size in elements, the unit `element_offset` takes. The PR bundles four fixes, each small and in one function family. Not tested here: a retail title that reaches the fallback or passes out-of-range coordinates. performance: none: a few comparisons. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
brainhay5 commented 2026-12-01 10:12:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T10:12:49Z.


merge-check claim
head: 47e5ef07a3

<!-- greyfinch-sync:ivall/xcl:comment:7307842255 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7307842255). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T10:12:49Z. --- merge-check claim head: 47e5ef07a33420099a17ff4bec0c240228ac2412
brainhay5 commented 2026-12-01 10:19:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T10:19:27Z.


merge-check
base: 493dbd3dd0
head: 47e5ef07a3
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 1 failed, 51 ignored; 29 SKIPPED lines
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

<!-- greyfinch-sync:ivall/xcl:comment:7308013499 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7308013499). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T10:19:27Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 47e5ef07a33420099a17ff4bec0c240228ac2412 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 1 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
tiagonleal commented 2026-12-02 21:42:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-12-02T21:42:37Z.


merge-check
base: 5ad98adbc3
head: 47e5ef07a3
merge: clean (merge commit 5bb0b24f7dee2e9dfd5bbac1d85b4a2fe4ca60a0; git diff --check clean)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3007 passed, 0 failed, 52 ignored; SKIPPED: 24 (22 no wave64, 2 no heap windows); failing: none
title run: Newer Retail Game, release build of this merge, Series S settings (XCL_DEVICE_TYPE=lockhart, XCL_COHERENT_MB=512, XCL_UMA_WINDOWS=16, XCL_SPARSE_LAZY=1), scripted A presses, 240 s planned: into the world at 82 s, 42 s there with 58 frames presented, no crash, no device removal; then our RAM guard stopped it (free RAM under 1 GB on this 32 GB PC, as in main's second run).
review: none. Note: get_texel_offset now returns 0 for x at or past the mip width (or y past the height), where a padded coordinate used to get an offset.
performance: none. World frame rate not compared: on this 32 GB PC the runs of main and of the PRs end 30 to 150 s into the world (RAM guard or time limit).
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB (driver 617.42), Ryzen 7 9800X3D, 32 GB, Windows 11 Pro 26300 / Claude Code with Claude Opus 5.5

Same settings on main 5ad98adb, two runs: into the world at 94 s with 145 s there and no frame presented (ran to the 240 s limit); into the world at 80 s with 59 s there and 90 frames, then stopped by our RAM guard (free RAM under 1 GB). "In the world" here means the first 2 s window of the activity log with 5,000+ draws and dispatches.

AI use: Claude Code (Claude Opus 5.5) ran the build, tests and title runs and wrote this; a Claude Sonnet subagent read the diff and I checked its points.
~Tiago

<!-- greyfinch-sync:ivall/xcl:comment:7359668943 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1480#issuecomment-7359668943). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-12-02T21:42:37Z. --- merge-check base: 5ad98adbc360225ac8a57ad9661e16fe8df9d8dd head: 47e5ef07a33420099a17ff4bec0c240228ac2412 merge: clean (merge commit 5bb0b24f7dee2e9dfd5bbac1d85b4a2fe4ca60a0; `git diff --check` clean) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3007 passed, 0 failed, 52 ignored; SKIPPED: 24 (22 no wave64, 2 no heap windows); failing: none title run: Newer Retail Game, release build of this merge, Series S settings (`XCL_DEVICE_TYPE=lockhart`, `XCL_COHERENT_MB=512`, `XCL_UMA_WINDOWS=16`, `XCL_SPARSE_LAZY=1`), scripted A presses, 240 s planned: into the world at 82 s, 42 s there with 58 frames presented, no crash, no device removal; then our RAM guard stopped it (free RAM under 1 GB on this 32 GB PC, as in main's second run). review: none. Note: `get_texel_offset` now returns 0 for x at or past the mip width (or y past the height), where a padded coordinate used to get an offset. performance: none. World frame rate not compared: on this 32 GB PC the runs of main and of the PRs end 30 to 150 s into the world (RAM guard or time limit). verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB (driver 617.42), Ryzen 7 9800X3D, 32 GB, Windows 11 Pro 26300 / Claude Code with Claude Opus 5.5 Same settings on main 5ad98adb, two runs: into the world at 94 s with 145 s there and no frame presented (ran to the 240 s limit); into the world at 80 s with 59 s there and 90 frames, then stopped by our RAM guard (free RAM under 1 GB). "In the world" here means the first 2 s window of the activity log with 5,000+ draws and dispatches. AI use: Claude Code (Claude Opus 5.5) ran the build, tests and title runs and wrote this; a Claude Sonnet subagent read the diff and I checked its points. ~Tiago
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1480:upstream-pr/1480'
git switch 'upstream-pr/1480'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1480'
git switch 'upstream-pr/1480'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1480'
git switch 'upstream-pr/1480'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1480'
git switch 'main'
git merge --squash 'upstream-pr/1480'
git switch 'main'
git merge --ff-only 'upstream-pr/1480'
git switch 'main'
git merge 'upstream-pr/1480'
git push origin 'main'
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!1470
No description provided.