D3D12.X: abort failed device batches and restore pending in title_textures::upload_all #2214

Open
Decodere wants to merge 1 commit from upstream-pr/2224 into main
Decodere commented 2026-11-25 10:30:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T10:30:09Z.


What is in it

Part of #2109.

When upload_queue or texture::upload_batch fails in title_textures::upload_all() (for example after a 10 s GPU wait timeout on a stalled queue), upload_all() previously kept submitting every remaining batch in todo for the same device, turning one stalled queue into an N x 10 s freeze while leaving failed and skipped textures stuck with pending = false and stale LAST_CONTENT hashes.

This change extracts pure-CPU batch-control (run_upload_batches) and pending-restoration (restore_pending) helpers in crates/xcl/src/hle/d3d12x/title_textures.rs without changing texture.rs or any other file:

  • Track failed_devices: Vec<usize> across batches (zero allocations on the happy path). Once upload_queue or texture::upload_batch returns Err(e) for a device, log via warn(&e) and mark that device failed so all remaining todo items for that device are drained without running content_hash / same_as_last_upload / subresources_of_all / upload_batch, while unaffected devices continue uploading normally.
  • Clear LAST_CONTENT for every resource in a failed Err batch (so retries cannot false-skip as unchanged) and for each failed index in a partial Ok(failed) result. On Ok(failed), count only (batch.len() - failed_keys.len()) toward UPLOADS and do not restore pending (avoiding infinite retry loops on permanently failing textures).
  • Retain the ID3D12Resource handles of failed and skipped same-device items until after the loop, lock TEXTURES once to restore pending = true (and increment PENDING) only on active by_res entries where !e.pending && !e.gpu_written, and drop the retained ID3D12Resource handles after releasing TEXTURES so raw pointers stay pinned during lookup and COM Release -> forget() cannot re-enter TEXTURES.
  • Scoped strictly to stopping the cascading timeout storm and restoring pending after batch failures (Part of #2109); does not claim to fix the upstream RTX 3090 GPU queue stall itself.

(Rebased onto main 83b00818 to preserve #2844's with_title_bytes(*va, tex.size() as usize, content_hash) safe-copy read and new concurrent-decommit/guard-page tests inside title_textures.rs, alongside #2306's vram::level_pages() -> map_levels_with_texels(&r, &subs) and #2976's XCL_PREPARE=0.)

Tested

  • Hardware & toolchain: NVIDIA GeForce RTX 4060 (8 GB, driver 621.14, 32-lane waves), Intel Core i5-11400F (6C/12T, 32 GB RAM), Windows 11, DXC 1.9.2609.5, rustc 1.100.0, debug + release.
  • Failing-first verification before the fix (from initial implementation): running the three new pure-CPU unit tests against pre-fix batch-loop/restore behavior failed all three (upload_all_*: 0 passed / 2 failed — device 1 submitted all 4 batches instead of aborting after batch 1 and left retry empty; restore_pending_*: 0 passed / 1 failed — returned 0 instead of 1).
  • cargo clippy --all-targets -- -A clippy::approx_constant on rebased head 043a59f0: exit 0, 0 new warnings or errors in crates/xcl/src/hle/d3d12x/title_textures.rs (only pre-existing upstream warnings elsewhere in the file).
  • Post-rebase Debug WARP (XCL_ADAPTER=warp, XCL_WARP=1): cargo test -p xcl --lib -- hle::d3d12x::title_textures:: --test-threads=1 --nocapture -> 24 passed, 0 failed, 0 ignored across 3/3 consecutive runs (14.79–15.38 s, 0 runtime skips — includes all existing GPU upload tests, #2306's a_placed_texture_gets_the_pages_of_a_level_with_its_texels, #2844's title_bytes_survive_concurrent_decommit + title_bytes_leave_guard_pages_alone, and all 3 PR tests: upload_all_aborts_failed_device_batches_while_other_devices_continue, upload_all_clears_last_content_on_batch_err_and_partial_ok_without_poisoning_skipped, and restore_pending_requeues_only_active_non_pending_non_gpu_written_entries).
  • Post-rebase Release RTX 4060: cargo test --release -p xcl --lib -- hle::d3d12x::title_textures:: --test-threads=1 --nocapture -> 24 passed, 0 failed, 0 ignored across 3/3 consecutive runs (3.73–3.83 s, 0 runtime skips).

Regression run

Paired quiet 60 s --release runs on desktop NVIDIA GeForce RTX 4060 with XCL_PREPARE=0 and XCL_NETWORK=0 (via scripts/smoke.ps1 -Seconds 60):

Baseline (main 83b008188efbf954b846667f48d75e3fa9310a01, XCL_PREPARE=0 XCL_NETWORK=0):

xcl-smoke v1
commit: 83b008188efbf954b846667f48d75e3fa9310a01
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1609 (PresentX 1609)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14027 MB

PR head (043a59f04d3594f4b523cf6f20acc4b0aec54702, XCL_PREPARE=0 XCL_NETWORK=0):

xcl-smoke v1
commit: 043a59f04d3594f4b523cf6f20acc4b0aec54702
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1604 (PresentX 1604)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14042 MB

Not tested

  • Did not reproduce a real RTX 3090 / hardware GPU queue stall or 10 s texture::upload_batch timeout on live D3D12 hardware; failure-path batch abort, LAST_CONTENT invalidation, and restore_pending state transitions are covered by the pure-CPU unit tests, while the happy path ran under the WARP and RTX 4060 GPU unit tests and paired 60 s smoke runs above.
  • Startup shader precompilation (prepare_for_launch) was skipped in the paired 60 s smoke runs via XCL_PREPARE=0 (introduced by #2976); shaders compiled on demand during the run.
  • Did not re-run the full workspace suite after this 1-line rebase onto 83b00818 (only clippy --all-targets, targeted 3x Debug WARP + 3x Release RTX 4060 title_textures:: suites, and paired 60 s smokes ran on 043a59f0).
  • Did not test multi-GPU / multi-ID3D12Device hardware scenarios live (covered by pure-CPU unit test) or non-Windows / Wine hosts.

AI use

Implemented, rebased, and verified with Google Antigravity (Gemini 4 Neon). All code changes, failing-first and post-rebase unit tests, clippy checks, and paired 60 s RTX 4060 smoke runs were reviewed and executed locally.

<!-- greyfinch-sync:ivall/xcl:issue:5489566886 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T10:30:09Z. --- **What is in it** Part of #2109. When `upload_queue` or `texture::upload_batch` fails in `title_textures::upload_all()` (for example after a 10 s GPU wait timeout on a stalled queue), `upload_all()` previously kept submitting every remaining batch in `todo` for the same device, turning one stalled queue into an `N x 10 s` freeze while leaving failed and skipped textures stuck with `pending = false` and stale `LAST_CONTENT` hashes. This change extracts pure-CPU batch-control (`run_upload_batches`) and pending-restoration (`restore_pending`) helpers in `crates/xcl/src/hle/d3d12x/title_textures.rs` without changing `texture.rs` or any other file: - Track `failed_devices: Vec<usize>` across batches (zero allocations on the happy path). Once `upload_queue` or `texture::upload_batch` returns `Err(e)` for a device, log via `warn(&e)` and mark that device failed so all remaining `todo` items for that device are drained without running `content_hash` / `same_as_last_upload` / `subresources_of_all` / `upload_batch`, while unaffected devices continue uploading normally. - Clear `LAST_CONTENT` for every resource in a failed `Err` batch (so retries cannot false-skip as unchanged) and for each failed index in a partial `Ok(failed)` result. On `Ok(failed)`, count only `(batch.len() - failed_keys.len())` toward `UPLOADS` and do **not** restore `pending` (avoiding infinite retry loops on permanently failing textures). - Retain the `ID3D12Resource` handles of failed and skipped same-device items until after the loop, lock `TEXTURES` once to restore `pending = true` (and increment `PENDING`) only on active `by_res` entries where `!e.pending && !e.gpu_written`, and drop the retained `ID3D12Resource` handles **after** releasing `TEXTURES` so raw pointers stay pinned during lookup and COM `Release` -> `forget()` cannot re-enter `TEXTURES`. - Scoped strictly to stopping the cascading timeout storm and restoring `pending` after batch failures (`Part of #2109`); does not claim to fix the upstream RTX 3090 GPU queue stall itself. *(Rebased onto `main` `83b00818` to preserve #2844's `with_title_bytes(*va, tex.size() as usize, content_hash)` safe-copy read and new concurrent-decommit/guard-page tests inside `title_textures.rs`, alongside #2306's `vram::level_pages()` -> `map_levels_with_texels(&r, &subs)` and #2976's `XCL_PREPARE=0`.)* **Tested** - Hardware & toolchain: NVIDIA GeForce RTX 4060 (8 GB, driver 621.14, 32-lane waves), Intel Core i5-11400F (6C/12T, 32 GB RAM), Windows 11, DXC `1.9.2609.5`, `rustc 1.100.0`, debug + release. - Failing-first verification before the fix (from initial implementation): running the three new pure-CPU unit tests against pre-fix batch-loop/restore behavior failed all three (`upload_all_*`: 0 passed / 2 failed — device 1 submitted all 4 batches instead of aborting after batch 1 and left `retry` empty; `restore_pending_*`: 0 passed / 1 failed — returned `0` instead of `1`). - `cargo clippy --all-targets -- -A clippy::approx_constant` on rebased head `043a59f0`: exit `0`, `0` new warnings or errors in `crates/xcl/src/hle/d3d12x/title_textures.rs` (only pre-existing upstream warnings elsewhere in the file). - Post-rebase Debug WARP (`XCL_ADAPTER=warp`, `XCL_WARP=1`): `cargo test -p xcl --lib -- hle::d3d12x::title_textures:: --test-threads=1 --nocapture` -> **24 passed, 0 failed, 0 ignored** across 3/3 consecutive runs (`14.79–15.38 s`, `0` runtime skips — includes all existing GPU upload tests, #2306's `a_placed_texture_gets_the_pages_of_a_level_with_its_texels`, #2844's `title_bytes_survive_concurrent_decommit` + `title_bytes_leave_guard_pages_alone`, and all 3 PR tests: `upload_all_aborts_failed_device_batches_while_other_devices_continue`, `upload_all_clears_last_content_on_batch_err_and_partial_ok_without_poisoning_skipped`, and `restore_pending_requeues_only_active_non_pending_non_gpu_written_entries`). - Post-rebase Release RTX 4060: `cargo test --release -p xcl --lib -- hle::d3d12x::title_textures:: --test-threads=1 --nocapture` -> **24 passed, 0 failed, 0 ignored** across 3/3 consecutive runs (`3.73–3.83 s`, `0` runtime skips). **Regression run** Paired quiet 60 s `--release` runs on desktop NVIDIA GeForce RTX 4060 with `XCL_PREPARE=0` and `XCL_NETWORK=0` (via `scripts/smoke.ps1 -Seconds 60`): Baseline (`main` `83b008188efbf954b846667f48d75e3fa9310a01`, `XCL_PREPARE=0 XCL_NETWORK=0`): ``` xcl-smoke v1 commit: 83b008188efbf954b846667f48d75e3fa9310a01 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1609 (PresentX 1609) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14027 MB ``` PR head (`043a59f04d3594f4b523cf6f20acc4b0aec54702`, `XCL_PREPARE=0 XCL_NETWORK=0`): ``` xcl-smoke v1 commit: 043a59f04d3594f4b523cf6f20acc4b0aec54702 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1604 (PresentX 1604) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14042 MB ``` **Not tested** - Did not reproduce a real RTX 3090 / hardware GPU queue stall or 10 s `texture::upload_batch` timeout on live D3D12 hardware; failure-path batch abort, `LAST_CONTENT` invalidation, and `restore_pending` state transitions are covered by the pure-CPU unit tests, while the happy path ran under the WARP and RTX 4060 GPU unit tests and paired 60 s smoke runs above. - Startup shader precompilation (`prepare_for_launch`) was skipped in the paired 60 s smoke runs via `XCL_PREPARE=0` (introduced by #2976); shaders compiled on demand during the run. - Did not re-run the full workspace suite after this 1-line rebase onto `83b00818` (only `clippy --all-targets`, targeted 3x Debug WARP + 3x Release RTX 4060 `title_textures::` suites, and paired 60 s smokes ran on `043a59f0`). - Did not test multi-GPU / multi-`ID3D12Device` hardware scenarios live (covered by pure-CPU unit test) or non-Windows / Wine hosts. **AI use** Implemented, rebased, and verified with Google Antigravity (Gemini 4 Neon). All code changes, failing-first and post-rebase unit tests, clippy checks, and paired 60 s RTX 4060 smoke runs were reviewed and executed locally.
raylitebull commented 2026-11-25 11:09:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:48:33Z.


Code review on 3a60f54:

  • run_upload_batches + restore_pending in crates/xcl/src/hle/d3d12x/title_textures.rs cleanly stops submitting subsequent batches for a failed device, preserves LAST_CONTENT for unchanged/skipped entries while clearing failed keys, and re-marks pending only for active !pending && !gpu_written entries (dropping COM handles outside TEXTURES to prevent lock re-entry).
  • Build and test and PR description are both green (CLEAN).

Remaining before merge: Dual-vendor (AMD + NVIDIA) verification on 3a60f54.

<!-- greyfinch-sync:ivall/xcl:comment:7160201314 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7160201314). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:48:33Z. --- Code review on `3a60f54`: - `run_upload_batches` + `restore_pending` in `crates/xcl/src/hle/d3d12x/title_textures.rs` cleanly stops submitting subsequent batches for a failed device, preserves `LAST_CONTENT` for unchanged/skipped entries while clearing failed keys, and re-marks `pending` only for active `!pending && !gpu_written` entries (dropping COM handles outside `TEXTURES` to prevent lock re-entry). - `Build and test` and `PR description` are both green (`CLEAN`). **Remaining before merge:** Dual-vendor (**AMD** + **NVIDIA**) verification on `3a60f54`.
tiagonleal commented 2026-11-25 13:05:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T12:31:36Z.


Verification on NVIDIA RTX 5070 Ti (Windows 11), head 3a60f54e96c01ea9600744ba69ce3d2d39cf91b3

Tested

  • Head 3a60f54e96c01ea9600744ba69ce3d2d39cf91b3 (git rev-parse HEAD of a clean worktree, no local changes, built as is; merge-base with main 568e7db7729c8fa6c8f0f4b32d798faaf11462bb). The PR was open and the head unchanged when I started and again before writing this.
  • Windows 11 Pro 10.0.26300 (Developer Mode off), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, debug profile (the cargo test default), DXC from the Windows SDK 10.0.26100.0 (dxcompiler/dxil 1.8.2502.11).
  • cargo test -p xcl --lib title_textures -- --test-threads=4 --nocapture: 17 passed, 0 failed, 0 ignored (9 s). This includes the three new tests (upload_all_aborts_failed_device_batches_while_other_devices_continue, upload_all_clears_last_content_on_batch_err_and_partial_ok_without_poisoning_skipped, restore_pending_requeues_only_active_non_pending_non_gpu_written_entries).
  • cargo test -p xcl --lib hle::d3d12x -- --test-threads=4 --nocapture: 180 passed, 0 failed, 2 ignored (11 s).
  • cargo test -p xcl --lib -- --test-threads=4 --nocapture (whole lib): 1097 passed, 4 failed, 26 ignored. The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 to _3, each with CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E). They are not from this PR: the same four tests fail with the same message on its merge-base 568e7db (same command: 1094 passed, 4 failed, 26 ignored; the 3 extra passes here are this PR's new tests). Running gpu::dxil::fuzz_tests alone at this head, twice, gave 4 failed both times (and fuzz_validate_and_gpu_0 alone with --test-threads=1 failed too), and gpu::dxil::fuzz_tests on the merge-base gave 4 failed again.
  • SKIPPED lines in the whole-lib run: 23 GPU tests with no wave64 or refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...) on this wave32-only GPU, and shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required), 0x887A002D.

Not tested

  • AMD (the other half of the requested dual-vendor check).
  • Developer Mode on (it is off here), symlink behaviour.
  • The retail game and any xcl-smoke run; this is a unit-test run only.
  • cargo test --workspace and the other test targets under crates/xcl/tests; release profile.
  • A separate game job was using the same machine in bursts. I started each run when no game process above 2 GB was running, but the whole-lib run happened close to such a burst.

AI use

  • Claude Code created the clean worktree, built and ran the tests above, compared the failing tests with the merge-base, and wrote this report. No code was changed.

Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7162493679 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7162493679). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T12:31:36Z. --- Verification on NVIDIA RTX 5070 Ti (Windows 11), head `3a60f54e96c01ea9600744ba69ce3d2d39cf91b3` **Tested** - Head `3a60f54e96c01ea9600744ba69ce3d2d39cf91b3` (`git rev-parse HEAD` of a clean worktree, no local changes, built as is; merge-base with `main` `568e7db7729c8fa6c8f0f4b32d798faaf11462bb`). The PR was open and the head unchanged when I started and again before writing this. - Windows 11 Pro 10.0.26300 (Developer Mode off), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, debug profile (the `cargo test` default), DXC from the Windows SDK 10.0.26100.0 (dxcompiler/dxil 1.8.2502.11). - `cargo test -p xcl --lib title_textures -- --test-threads=4 --nocapture`: 17 passed, 0 failed, 0 ignored (9 s). This includes the three new tests (`upload_all_aborts_failed_device_batches_while_other_devices_continue`, `upload_all_clears_last_content_on_batch_err_and_partial_ok_without_poisoning_skipped`, `restore_pending_requeues_only_active_non_pending_non_gpu_written_entries`). - `cargo test -p xcl --lib hle::d3d12x -- --test-threads=4 --nocapture`: 180 passed, 0 failed, 2 ignored (11 s). - `cargo test -p xcl --lib -- --test-threads=4 --nocapture` (whole lib): 1097 passed, 4 failed, 26 ignored. The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0` to `_3`, each with `CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)`. They are not from this PR: the same four tests fail with the same message on its merge-base `568e7db` (same command: 1094 passed, 4 failed, 26 ignored; the 3 extra passes here are this PR's new tests). Running `gpu::dxil::fuzz_tests` alone at this head, twice, gave 4 failed both times (and `fuzz_validate_and_gpu_0` alone with `--test-threads=1` failed too), and `gpu::dxil::fuzz_tests` on the merge-base gave 4 failed again. - `SKIPPED` lines in the whole-lib run: 23 GPU tests with `no wave64` or `refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...)` on this wave32-only GPU, and `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`: cannot disable the driver cache (Windows Developer Mode is required), 0x887A002D. **Not tested** - AMD (the other half of the requested dual-vendor check). - Developer Mode on (it is off here), symlink behaviour. - The retail game and any `xcl-smoke` run; this is a unit-test run only. - `cargo test --workspace` and the other test targets under `crates/xcl/tests`; release profile. - A separate game job was using the same machine in bursts. I started each run when no game process above 2 GB was running, but the whole-lib run happened close to such a burst. **AI use** - Claude Code created the clean worktree, built and ran the tests above, compared the failing tests with the merge-base, and wrote this report. No code was changed. Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
Decodere commented 2026-11-25 18:04:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T17:14:21Z.


Rebased onto 50a9fdef (85d79bf6, preserving #2306's vram::level_pages() / map_levels_with_texels and vram::before_execute inside upload_all). Re-verified title_textures::tests (22/0), paired 60 s RTX 4060 smoke (1544 -> 1565, 0 device removals/crashes), and workspace (1291 passed, 1 failed solely on 50a9fdef's #2074 test).

<!-- greyfinch-sync:ivall/xcl:comment:7169210362 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7169210362). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T17:14:21Z. --- Rebased onto `50a9fdef` (`85d79bf6`, preserving `#2306`'s `vram::level_pages()` / `map_levels_with_texels` and `vram::before_execute` inside `upload_all`). Re-verified `title_textures::tests` (`22/0`), paired 60 s RTX 4060 smoke (`1544 -> 1565`, `0` device removals/crashes), and workspace (`1291 passed, 1 failed` solely on `50a9fdef`'s `#2074` test).
emirduran707 commented 2026-11-25 19:08:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T18:13:26Z.


Independent AMD RDNA4 (native wave64) test report on exact head 85d79bf639d42a0c7149c3efcadf6bb0cd3abb1a (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1289 passed, 3 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • All 3 PR tests passed: hle::d3d12x::title_textures::tests::restore_pending_requeues_only_active_non_pending_non_gpu_written_entries, upload_all_aborts_failed_device_batches_while_other_devices_continue, and upload_all_clears_last_content_on_batch_err_and_partial_ok_without_poisoning_skipped.
    • The 3 failures are pre-existing on unmodified main 68a284a: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722) and fuzz_validate_and_gpu_3 (seed 1599) on this GPU, plus gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier (from 50a9fde / #2074).

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: 85d79bf639d42a0c7149c3efcadf6bb0cd3abb1a
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1622 (PresentX 1622)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13921 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7170612581 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7170612581). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T18:13:26Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `85d79bf639d42a0c7149c3efcadf6bb0cd3abb1a` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1289 passed, 3 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - All 3 PR tests passed: `hle::d3d12x::title_textures::tests::restore_pending_requeues_only_active_non_pending_non_gpu_written_entries`, `upload_all_aborts_failed_device_batches_while_other_devices_continue`, and `upload_all_clears_last_content_on_batch_err_and_partial_ok_without_poisoning_skipped`. - The 3 failures are pre-existing on unmodified `main` `68a284a`: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722) and `fuzz_validate_and_gpu_3` (seed 1599) on this GPU, plus `gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier` (from `50a9fde` / #2074). **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: 85d79bf639d42a0c7149c3efcadf6bb0cd3abb1a gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1622 (PresentX 1622) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13921 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
DavidM1911 commented 2026-11-26 09:07:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T08:15:23Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7186374762 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7186374762). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T08:15:23Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Decodere commented 2026-11-27 07:19:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T07:19:07Z.


Rebased cleanly onto main (83b008188efbf954b846667f48d75e3fa9310a01) at 043a59f04d3594f4b523cf6f20acc4b0aec54702, resolving conflicts in crates/xcl/src/hle/d3d12x/title_textures.rs while preserving #2844's with_title_bytes safe-copy read and tests alongside #2976's XCL_PREPARE=0.

Re-verified on the rebased head (rustc 1.100.0, DXC 1.9.2609.5, Windows 11, desktop NVIDIA RTX 4060):

  • cargo clippy --all-targets -- -A clippy::approx_constant: clean (0 new warnings in title_textures.rs)
  • Debug WARP & Release RTX 4060 hle::d3d12x::title_textures:: (3x each): 24 passed; 0 failed; 0 ignored (0 runtime skips)
  • Paired 60 s --release smoke runs with XCL_PREPARE=0 XCL_NETWORK=0 (83b00818 1609 frames / 14027 MB vs 043a59f0 1604 frames / 14042 MB, 0 device removals, 0 crashes)
  • CI checks (PR description, Build and test (Windows, no GPU)): passing (MERGEABLE / CLEAN)
<!-- greyfinch-sync:ivall/xcl:comment:7212355297 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7212355297). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T07:19:07Z. --- Rebased cleanly onto `main` (`83b008188efbf954b846667f48d75e3fa9310a01`) at `043a59f04d3594f4b523cf6f20acc4b0aec54702`, resolving conflicts in `crates/xcl/src/hle/d3d12x/title_textures.rs` while preserving #2844's `with_title_bytes` safe-copy read and tests alongside #2976's `XCL_PREPARE=0`. Re-verified on the rebased head (`rustc 1.100.0`, DXC `1.9.2609.5`, Windows 11, desktop NVIDIA RTX 4060): - `cargo clippy --all-targets -- -A clippy::approx_constant`: clean (`0` new warnings in `title_textures.rs`) - Debug WARP & Release RTX 4060 `hle::d3d12x::title_textures::` (`3x` each): `24 passed; 0 failed; 0 ignored` (`0` runtime skips) - Paired 60 s `--release` smoke runs with `XCL_PREPARE=0 XCL_NETWORK=0` (`83b00818` `1609` frames / `14027 MB` vs `043a59f0` `1604` frames / `14042 MB`, `0` device removals, `0` crashes) - CI checks (`PR description`, `Build and test (Windows, no GPU)`): passing (`MERGEABLE` / `CLEAN`)
Foniass commented 2026-12-01 07:37:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:37:04Z.


Triage (#1607) – head 043a59f

No other open PR aborts the rest of a failed device's batches in title_textures::upload_all. #508 touches the same loop but differently: it only records the content hash after a successful upload. Here the hash is cleared on failure via clear_last. The two will conflict.
No problems found in the diff. Note that items in an Ok(failed) partial failure have their hash cleared but are not put back to pending; only whole-batch/queue failures are retried. A permanently removed device keeps its textures pending, and each submit retries one batch.
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:7304276213 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2224#issuecomment-7304276213). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:37:04Z. --- **Triage (#1607)** – head 043a59f No other open PR aborts the rest of a failed device's batches in `title_textures::upload_all`. #508 touches the same loop but differently: it only records the content hash after a successful upload. Here the hash is cleared on failure via `clear_last`. The two will conflict. No problems found in the diff. Note that items in an `Ok(failed)` partial failure have their hash cleared but are not put back to `pending`; only whole-batch/queue failures are retried. A permanently removed device keeps its textures pending, and each submit retries one batch. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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/2224:upstream-pr/2224'
git switch 'upstream-pr/2224'

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