D3D12.X: a create that fails on a lost device keeps the driver's blob #2416

Open
Digit4w wants to merge 1 commit from upstream-pr/2426 into main
Digit4w commented 2026-11-25 18:35:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Digit4w on 2026-11-25T18:35:18Z.


A pipeline create that was given a driver blob and then failed drops the blob, in memory and the file under <DXIL cache>\driver\, whatever the HRESULT was. On a removed or hung device every create fails, so in the second or two before the title is stopped each pipeline it creates deletes a valid blob, and the next run builds those pipelines in the driver again. main already has the rule for this in the native graphics stream path, stale_cached_pso_refusal(hr): only E_INVALIDARG, D3D12_ERROR_ADAPTER_NOT_FOUND and D3D12_ERROR_DRIVER_VERSION_MISMATCH say that the driver refused the blob. This PR uses the same rule at the four older sites. Part of #2088 (a warm run reuses the pipelines of the run before).

This replaces the earlier form of this PR (a deny list of four codes with its own helpers), which the reviews above were made on: main gained stale_cached_pso_refusal in the meantime, and the PR now reuses it instead of adding a second rule. One difference in behaviour from that form: a create that fails with any other code (E_FAIL, for example) now keeps the blob too. It is still retried without the blob, as before.

After @thehollowedone's review, the mesh pass of a two-pass pipeline also keeps its blob when the driver returns success without a pipeline (it dropped it there, as main does): that result is no refusal either. That create is still retried without the blob.

What is in it

  • hle/d3d12x/real.rs: the blob is forgotten only when stale_cached_pso_refusal(hr) in the four creates that take one: the compute create (compute_container), the translated graphics create (create_graphics_pso_cached) and both passes of a two-pass pipeline (finish_two_pass). The retry without the blob is unchanged at all four. A mesh pass that returned success without a pipeline keeps its blob as well.
  • Tests in the same file: cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way (it fails without the change in create_graphics_pso_cached) and a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline (a fake device whose CreatePipelineState returns S_OK and no pipeline; it fails with the earlier condition in the mesh pass).

Tested

  • RTX 4070 SUPER 12 GB (driver 32.0.16.2101), Ryzen 5 7600, 32 GB, Windows 11 26200, rustc 1.100.0; tests debug, regression runs release.

  • cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_ADAPTER=nvidia, XCL_NETWORK=0) on f607b78, which is on main 86e86fc: 2891 passed, 0 failed, 51 ignored. The two tests of this PR ran and passed.

  • SKIPPED, 24 lines: 22 "no wave64", 2 "no heap windows".

  • With the earlier form of this change (the deny list) on 68a284a: a retail title, release builds of 68a284a and of 68a284a + the change, each with a local switch that is not in this PR and calls ID3D12Device5::RemoveDevice() during loading; XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_TRACE=1, the same 2 975 blob files restored before every run. Compute creates with a blob that failed after the removal (all 0x887a0005), and how many of their files were gone afterwards:

    build failed creates files gone
    main 12 12
    main 24 24
    main 12 12
    the change 24 0
    the change 12 0
  • The next run (100 s, the main build) under an exe name the NVIDIA driver's own cache had never seen: the 24 pipelines of the second row took 22.1 s in the driver without their blobs and 0.7 s with them (the largest: 308 KB of DXIL, 4.8 s). Under the usual exe name the driver's own cache gave a lost one back in 4 ms, so the cost shows only when that cache does not have the pipeline.

Regression run

Both through scripts/smoke.ps1, 60 s, with XCL_ADAPTER=nvidia XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=300 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DEVICE_TYPE=anaconda XCL_TEXTURE_LEVEL_PAGES=1 XCL_UMA_WINDOWS=16, a DXIL cache folder of their own (XCL_DXIL_CACHE) and A pressed at 14, 17 and 21 s. Before them, one 180 s run of the main build that is not shown: the cache folder was new, and without that run the first of the pair would have translated on demand what the second found in the cache. A second 60 s run of the main build, made right after the one below, gave 1328 frames and 24 785 MB.

main:

xcl-smoke v1
commit: 86e86fcb33f94fa5d0c809d9b50af7b84bf49cce
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 1347 (PresentX 1347)
presents per 2 s (last 3): 1 8 7
device removals: 0
crashes: 0
peak commit: 22999 MB

this PR's head:

xcl-smoke v1
commit: f607b7803f5b1c28a89a8192ff5347a1f03ba956
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 1317 (PresentX 1317)
presents per 2 s (last 3): 5 34 23
device removals: 0
crashes: 0
peak commit: 24031 MB

Not tested

  • AMD and Intel GPUs.
  • A device removal on this tree: the removals above were forced, with the earlier form of the change, on 68a284a, and I did not repeat them with this form or on 86e86fc. Every form keeps the blob for 0x887a0005.
  • The two compute creates have no unit test: they call the driver inline. The graphics create has one, and the mesh pass has one for a success without a pipeline only.
  • A success without a pipeline from a real driver: not seen on this machine; only the fake device of the test.
  • E_OUTOFMEMORY, DEVICE_HUNG and a failure with another code in a real run: only the unit test of the decision.
  • The 60 s regression runs see no device removal, so they do not reach the changed branch.

AI use

  • Claude Code with Claude Fable 5.2 wrote the code, the test and this description; a Claude Code subagent on Claude Opus 5.5 drove the builds and runs on my machine.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5496999538 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426). Originally posted by [Digit4w](https://github.com/Digit4w) on 2026-11-25T18:35:18Z. --- A pipeline create that was given a driver blob and then failed drops the blob, in memory and the file under `<DXIL cache>\driver\`, whatever the HRESULT was. On a removed or hung device every create fails, so in the second or two before the title is stopped each pipeline it creates deletes a valid blob, and the next run builds those pipelines in the driver again. `main` already has the rule for this in the native graphics stream path, `stale_cached_pso_refusal(hr)`: only `E_INVALIDARG`, `D3D12_ERROR_ADAPTER_NOT_FOUND` and `D3D12_ERROR_DRIVER_VERSION_MISMATCH` say that the driver refused the blob. This PR uses the same rule at the four older sites. Part of #2088 (a warm run reuses the pipelines of the run before). This replaces the earlier form of this PR (a deny list of four codes with its own helpers), which the reviews above were made on: `main` gained `stale_cached_pso_refusal` in the meantime, and the PR now reuses it instead of adding a second rule. One difference in behaviour from that form: a create that fails with any other code (`E_FAIL`, for example) now keeps the blob too. It is still retried without the blob, as before. After @thehollowedone's review, the mesh pass of a two-pass pipeline also keeps its blob when the driver returns success without a pipeline (it dropped it there, as `main` does): that result is no refusal either. That create is still retried without the blob. **What is in it** - `hle/d3d12x/real.rs`: the blob is forgotten only when `stale_cached_pso_refusal(hr)` in the four creates that take one: the compute create (`compute_container`), the translated graphics create (`create_graphics_pso_cached`) and both passes of a two-pass pipeline (`finish_two_pass`). The retry without the blob is unchanged at all four. A mesh pass that returned success without a pipeline keeps its blob as well. - Tests in the same file: `cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way` (it fails without the change in `create_graphics_pso_cached`) and `a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline` (a fake device whose `CreatePipelineState` returns `S_OK` and no pipeline; it fails with the earlier condition in the mesh pass). **Tested** - RTX 4070 SUPER 12 GB (driver 32.0.16.2101), Ryzen 5 7600, 32 GB, Windows 11 26200, rustc 1.100.0; tests debug, regression runs release. - `cargo test --workspace --no-fail-fast -- --test-threads=4` (`XCL_ADAPTER=nvidia`, `XCL_NETWORK=0`) on `f607b78`, which is on `main` `86e86fc`: 2891 passed, 0 failed, 51 ignored. The two tests of this PR ran and passed. - SKIPPED, 24 lines: 22 "no wave64", 2 "no heap windows". - With the earlier form of this change (the deny list) on `68a284a`: a retail title, release builds of `68a284a` and of `68a284a` + the change, each with a local switch that is not in this PR and calls `ID3D12Device5::RemoveDevice()` during loading; `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_TRACE=1`, the same 2 975 blob files restored before every run. Compute creates with a blob that failed after the removal (all `0x887a0005`), and how many of their files were gone afterwards: | build | failed creates | files gone | |---|---|---| | main | 12 | 12 | | main | 24 | 24 | | main | 12 | 12 | | the change | 24 | 0 | | the change | 12 | 0 | - The next run (100 s, the main build) under an exe name the NVIDIA driver's own cache had never seen: the 24 pipelines of the second row took 22.1 s in the driver without their blobs and 0.7 s with them (the largest: 308 KB of DXIL, 4.8 s). Under the usual exe name the driver's own cache gave a lost one back in 4 ms, so the cost shows only when that cache does not have the pipeline. **Regression run** Both through `scripts/smoke.ps1`, 60 s, with `XCL_ADAPTER=nvidia XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=300 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DEVICE_TYPE=anaconda XCL_TEXTURE_LEVEL_PAGES=1 XCL_UMA_WINDOWS=16`, a DXIL cache folder of their own (`XCL_DXIL_CACHE`) and A pressed at 14, 17 and 21 s. Before them, one 180 s run of the `main` build that is not shown: the cache folder was new, and without that run the first of the pair would have translated on demand what the second found in the cache. A second 60 s run of the `main` build, made right after the one below, gave 1328 frames and 24 785 MB. main: ``` xcl-smoke v1 commit: 86e86fcb33f94fa5d0c809d9b50af7b84bf49cce gpu: NVIDIA GeForce RTX 4070 SUPER title: 2c508222 seconds: 60 exit: 0x0 frames shown: 1347 (PresentX 1347) presents per 2 s (last 3): 1 8 7 device removals: 0 crashes: 0 peak commit: 22999 MB ``` this PR's head: ``` xcl-smoke v1 commit: f607b7803f5b1c28a89a8192ff5347a1f03ba956 gpu: NVIDIA GeForce RTX 4070 SUPER title: 2c508222 seconds: 60 exit: 0x0 frames shown: 1317 (PresentX 1317) presents per 2 s (last 3): 5 34 23 device removals: 0 crashes: 0 peak commit: 24031 MB ``` **Not tested** - AMD and Intel GPUs. - A device removal on this tree: the removals above were forced, with the earlier form of the change, on `68a284a`, and I did not repeat them with this form or on `86e86fc`. Every form keeps the blob for `0x887a0005`. - The two compute creates have no unit test: they call the driver inline. The graphics create has one, and the mesh pass has one for a success without a pipeline only. - A success without a pipeline from a real driver: not seen on this machine; only the fake device of the test. - `E_OUTOFMEMORY`, `DEVICE_HUNG` and a failure with another code in a real run: only the unit test of the decision. - The 60 s regression runs see no device removal, so they do not reach the changed branch. **AI use** - Claude Code with Claude Fable 5.2 wrote the code, the test and this description; a Claude Code subagent on Claude Opus 5.5 drove the builds and runs on my machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
emirduran707 commented 2026-11-25 20:08:31 +00:00 (Migrated from github.com)

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


Independent AMD RDNA4 (native wave64) test report on exact head fdbccf573187f205e5e9a5980fab16af87bb6c7a (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.
    • Both PR tests passed: hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blob and hle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed.
    • The 3 failures are pre-existing on the PR's base main: 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, fixed later on main in #2420).

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

xcl-smoke v1
commit: fdbccf573187f205e5e9a5980fab16af87bb6c7a
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1616 (PresentX 1616)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13922 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:7172002722 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7172002722). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T19:13:55Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `fdbccf573187f205e5e9a5980fab16af87bb6c7a` (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. - Both PR tests passed: `hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blob` and `hle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed`. - The 3 failures are pre-existing on the PR's base `main`: `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, fixed later on `main` in #2420). **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: fdbccf573187f205e5e9a5980fab16af87bb6c7a gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1616 (PresentX 1616) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13922 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.
GustavoEllwanger commented 2026-11-25 20:08:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-25T19:41:13Z.


Test report on head fdbccf5, as is and merged onto current main 06055a7 (merge c7f6dea, no conflicts), adding NVIDIA Blackwell (32-lane waves) and AMD RDNA2 (native wave64) to the RTX 4070 SUPER and RDNA4 runs above.

Tested

  • AMD Ryzen 7 7700, Windows 11 build 26200.9974, Rust 1.95.0 MSVC, debug.
    • NVIDIA GeForce RTX 5060 (driver 32.0.16.1088), XCL_ADAPTER=5060
    • AMD Radeon RDNA2 iGPU (driver 32.0.21042.62), XCL_ADAPTER=Radeon
  • cargo test --workspace --no-fail-fast -- --test-threads=4:
tree RTX 5060 RDNA2 iGPU
main 06055a7 1413 passed, 0 failed, 46 ignored 1412 passed, 1 failed, 46 ignored
this PR merged onto 06055a7 1415 passed, 0 failed, 46 ignored 1414 passed, 1 failed, 46 ignored
this PR as is, fdbccf5 1291 passed, 1 failed, 46 ignored 1290 passed, 2 failed, 46 ignored
  • Merged, both GPUs show main plus the two new tests, with nothing else changed.
  • The iGPU failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 783 on main and merged, seed 540 on the old base), the same as on main, #2115.
  • On the PR's own base, a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier fails on both GPUs as described above; it passes on 06055a7, so the Build and test check should go green on a rerun.
  • Both new tests pass on both GPUs, as is and merged: hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blob and hle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed.
  • SKIPPED: RTX 5060 29 lines (wave64-only and per-lane gpu:: tests, heap_window_out_of_memory_falls_back_to_the_switch_form, shaders::tests::pso_measurement_compiles_an_exact_synthetic_record, test_title_draws_with_a_root_signature_under_the_debug_layer, uploads_start_from_each_subresources_state); iGPU 18 lines (per-lane #1426 refusals and the same four).
  • The two changed test modules in parallel, XCL_ADAPTER=5060 cargo test -p xcl --lib -- hle::d3d12x::real::driver_cache hle::d3d12x::real::graphics_blob_tests --test-threads=8, 30 runs each: this PR (11 tests) 30 passed, 0 failed; main (9 tests) 30 passed, 0 failed. The new tests don't interfere with each other or with the existing ones.

Not tested

  • A retail title, a removed device during a real load, and the next run reusing the kept blobs (covered by the author's runs above).
  • A release build.

Tests run and this report drafted with Claude Code (Claude Opus 5.5); I checked the numbers against the logs.

<!-- greyfinch-sync:ivall/xcl:comment:7172633876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7172633876). Originally posted by [GustavoEllwanger](https://github.com/GustavoEllwanger) on 2026-11-25T19:41:13Z. --- Test report on head `fdbccf5`, as is and merged onto current `main` `06055a7` (merge `c7f6dea`, no conflicts), adding NVIDIA Blackwell (32-lane waves) and AMD RDNA2 (native wave64) to the RTX 4070 SUPER and RDNA4 runs above. **Tested** - AMD Ryzen 7 7700, Windows 11 build 26200.9974, Rust 1.95.0 MSVC, debug. - NVIDIA GeForce RTX 5060 (driver 32.0.16.1088), `XCL_ADAPTER=5060` - AMD Radeon RDNA2 iGPU (driver 32.0.21042.62), `XCL_ADAPTER=Radeon` - `cargo test --workspace --no-fail-fast -- --test-threads=4`: | tree | RTX 5060 | RDNA2 iGPU | |---|---|---| | `main` `06055a7` | 1413 passed, 0 failed, 46 ignored | 1412 passed, 1 failed, 46 ignored | | this PR merged onto `06055a7` | 1415 passed, 0 failed, 46 ignored | 1414 passed, 1 failed, 46 ignored | | this PR as is, `fdbccf5` | 1291 passed, 1 failed, 46 ignored | 1290 passed, 2 failed, 46 ignored | - Merged, both GPUs show `main` plus the two new tests, with nothing else changed. - The iGPU failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 783 on `main` and merged, seed 540 on the old base), the same as on `main`, #2115. - On the PR's own base, `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier` fails on both GPUs as described above; it passes on `06055a7`, so the `Build and test` check should go green on a rerun. - Both new tests pass on both GPUs, as is and merged: `hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blob` and `hle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed`. - `SKIPPED`: RTX 5060 29 lines (wave64-only and per-lane `gpu::` tests, `heap_window_out_of_memory_falls_back_to_the_switch_form`, `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`, `test_title_draws_with_a_root_signature_under_the_debug_layer`, `uploads_start_from_each_subresources_state`); iGPU 18 lines (per-lane `#1426` refusals and the same four). - The two changed test modules in parallel, `XCL_ADAPTER=5060 cargo test -p xcl --lib -- hle::d3d12x::real::driver_cache hle::d3d12x::real::graphics_blob_tests --test-threads=8`, 30 runs each: this PR (11 tests) 30 passed, 0 failed; `main` (9 tests) 30 passed, 0 failed. The new tests don't interfere with each other or with the existing ones. **Not tested** - A retail title, a removed device during a real load, and the next run reusing the kept blobs (covered by the author's runs above). - A release build. Tests run and this report drafted with Claude Code (Claude Opus 5.5); I checked the numbers against the logs.
DavidM1911 commented 2026-11-25 20:08:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:46:00Z.


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

  • cargo test -p xcl --lib: 1 real failure, deterministic (also fails --test-threads=1, 1219/1):
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier
  assertion failed: group barriers in the program (lower_dxil.rs:1155)

The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7172738299 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7172738299). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T19:46:00Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: **1 real failure**, deterministic (also fails `--test-threads=1`, 1219/1): ``` gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier assertion failed: group barriers in the program (lower_dxil.rs:1155) ``` The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin
bmjask commented 2026-11-25 20:30:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:30:08Z.

Review: COMMENTED


No concrete code defect found. The retained-blob classifier preserves cache on device removal/hang/reset/OOM while keeping fallback retry without the blob across compute, graphics, and two-pass paths; successful retries replace stale blobs. Nonblocking gap: only graphics has focused retention coverage. Please add equivalent compute_container and finish_two_pass device-loss tests, and retain the disclosed lack of real OOM/hung/reset validation.

<!-- greyfinch-sync:ivall/xcl:review:6064527291 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#pullrequestreview-6064527291). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:30:08Z. **Review:** COMMENTED --- No concrete code defect found. The retained-blob classifier preserves cache on device removal/hang/reset/OOM while keeping fallback retry without the blob across compute, graphics, and two-pass paths; successful retries replace stale blobs. Nonblocking gap: only graphics has focused retention coverage. Please add equivalent compute_container and finish_two_pass device-loss tests, and retain the disclosed lack of real OOM/hung/reset validation.
Digit4w commented 2026-11-25 23:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Digit4w on 2026-11-25T22:25:50Z.


@bmjask thanks for the review. Rebased onto main e1d84b7 (the failing Build and test check was a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier from the old base) and added compute coverage; the head is now 749cf86.

  • The two compute creates (compute_container and the compute pass in finish_two_pass) had the same lines for a failed create with a blob. They are now one function, drop_refused_compute_blob, with a test: a removed, hung or reset device and E_OUTOFMEMORY keep the blob in memory and on disk; E_INVALIDARG drops it. The test fails with the old behaviour.
  • Not covered: the retry without the blob in those two functions. Unlike create_graphics_pso_cached they call the driver directly, so a test like the graphics one would need them split up first; I left that out to keep this PR small. It is under Not tested, next to the missing real OOM / hung / reset runs.

Suite on 749cf86 (RTX 4070 SUPER): 1426 passed, 0 failed, 46 ignored. The smoke blocks are in the description.

Written with Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7176351927 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7176351927). Originally posted by [Digit4w](https://github.com/Digit4w) on 2026-11-25T22:25:50Z. --- @bmjask thanks for the review. Rebased onto `main` `e1d84b7` (the failing `Build and test` check was `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier` from the old base) and added compute coverage; the head is now `749cf86`. - The two compute creates (`compute_container` and the compute pass in `finish_two_pass`) had the same lines for a failed create with a blob. They are now one function, `drop_refused_compute_blob`, with a test: a removed, hung or reset device and `E_OUTOFMEMORY` keep the blob in memory and on disk; `E_INVALIDARG` drops it. The test fails with the old behaviour. - Not covered: the retry without the blob in those two functions. Unlike `create_graphics_pso_cached` they call the driver directly, so a test like the graphics one would need them split up first; I left that out to keep this PR small. It is under **Not tested**, next to the missing real OOM / hung / reset runs. Suite on `749cf86` (RTX 4070 SUPER): 1426 passed, 0 failed, 46 ignored. The smoke blocks are in the description. Written with Claude Code (Claude Fable 5.2).
DavidM1911 commented 2026-11-26 03:06:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T02:22:11Z.


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:7180739326 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7180739326). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T02:22:11Z. --- 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
Prime1997 commented 2026-11-26 13:30:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:30:22Z.

Review: COMMENTED


Good within the targeted test scope; retain for integration. Keeps cached driver blobs on device-loss or out-of-memory errors and distinguishes those from a driver refusal of the blob.

Reviewed PR head 9c178b2d6499efae49c654eef243e1134fac7ade. Tested an isolated, uncommitted merge-tree integration with latest main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, tree 735b5a68b824a4e63dc25a55dcdd2e88ce9124c1; this is not a clean PR-head run. Integration source overlay SHA-256: 5b7ae5fdce161348bc8f83bf24bcbcb02bcb4dbe703ff422ef7a2ebb3a9ae6ef.

Measured: 3 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:

  • hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blob
  • hle::d3d12x::real::compute_blob_tests::a_compute_blob_is_kept_when_the_device_is_lost_and_dropped_when_the_driver_refuses_it
  • hle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run each: <test-exe> <exact-filter> --exact --test-threads=1 --nocapture. Private target/executable paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug; private temporary/cache paths, two low-priority build jobs, 90-second per-test bound.

Scope: CPU error classification and fake-driver/cache-file fixtures. These use private temporary files and a distinct cache key; no GPU or actual device-loss injection occurred. No full suite, retail run, sustained memory pressure or performance benefit is established. Passing these fixtures is not merge certification.

AI use: Codex (GPT-6) inspected the changes and fixtures, ran the checks and verified raw receipts. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074978545 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#pullrequestreview-6074978545). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:30:22Z. **Review:** COMMENTED --- **Good within the targeted test scope; retain for integration.** Keeps cached driver blobs on device-loss or out-of-memory errors and distinguishes those from a driver refusal of the blob. Reviewed PR head `9c178b2d6499efae49c654eef243e1134fac7ade`. Tested an isolated, uncommitted merge-tree integration with latest main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, tree `735b5a68b824a4e63dc25a55dcdd2e88ce9124c1`; this is not a clean PR-head run. Integration source overlay SHA-256: `5b7ae5fdce161348bc8f83bf24bcbcb02bcb4dbe703ff422ef7a2ebb3a9ae6ef`. **Measured: 3 passed, 0 failed, 0 ignored, 0 skipped.** Exact selected filters, each run in a fresh process: - `hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blob` - `hle::d3d12x::real::compute_blob_tests::a_compute_blob_is_kept_when_the_device_is_lost_and_dropped_when_the_driver_refuses_it` - `hle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed` Build: `cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>`. Run each: `<test-exe> <exact-filter> --exact --test-threads=1 --nocapture`. Private target/executable paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug; private temporary/cache paths, two low-priority build jobs, 90-second per-test bound. **Scope:** CPU error classification and fake-driver/cache-file fixtures. These use private temporary files and a distinct cache key; no GPU or actual device-loss injection occurred. No full suite, retail run, sustained memory pressure or performance benefit is established. Passing these fixtures is not merge certification. AI use: Codex (GPT-6) inspected the changes and fixtures, ran the checks and verified raw receipts. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
thehollowedone commented 2026-11-30 17:39:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-30T17:39:31Z.


Source review on head 6ab7dba9. In finish_two_pass, the retry guard also runs when the driver returns a nonnegative HRESULT but no PSO. In that case, hr >= 0 || stale_cached_pso_refusal(hr) evicts the cached blob even though the result did not identify it as stale. That can discard a valid blob and force a later cold driver build.

Please evict only when the original HRESULT is a known stale-blob refusal, while still retrying the anomalous success-with-null-output case.

Candidate correction
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
@@
-        if hr >= 0 || stale_cached_pso_refusal(hr) {
+        if stale_cached_pso_refusal(hr) {

Add a deterministic regression for success with a null PSO: retry without the cache, but retain the cached blob. Keep the existing behavior that evicts on a stale refusal and preserves on device removal/OOM. I did not observe the anomalous HRESULT on hardware; this finding is from the retry path’s source conditions.

AI use: OpenAI Codex (GPT-6.2 Sol), reviewed by OpenAI Codex (GPT-6.2 Astra).

<!-- greyfinch-sync:ivall/xcl:comment:7286650355 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7286650355). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-30T17:39:31Z. --- Source review on head `6ab7dba9`. In [`finish_two_pass`](https://github.com/xcl-dev/xcl/blob/6ab7dba953eb66f36eec033eb3b14abec43da93e/crates/xcl/src/hle/d3d12x/real.rs#L9419-L9435), the retry guard also runs when the driver returns a nonnegative HRESULT but no PSO. In that case, `hr >= 0 || stale_cached_pso_refusal(hr)` evicts the cached blob even though the result did not identify it as stale. That can discard a valid blob and force a later cold driver build. Please evict only when the original HRESULT is a known stale-blob refusal, while still retrying the anomalous success-with-null-output case. <details> <summary>Candidate correction</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs @@ - if hr >= 0 || stale_cached_pso_refusal(hr) { + if stale_cached_pso_refusal(hr) { ``` </details> Add a deterministic regression for success with a null PSO: retry without the cache, but retain the cached blob. Keep the existing behavior that evicts on a stale refusal and preserves on device removal/OOM. I did not observe the anomalous HRESULT on hardware; this finding is from the retry path’s source conditions. AI use: OpenAI Codex (GPT-6.2 Sol), reviewed by OpenAI Codex (GPT-6.2 Astra).
AAsobu commented 2026-11-30 21:18:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by AAsobu on 2026-11-30T21:18:10Z.


merge-check claim
head: 6ab7dba953

<!-- greyfinch-sync:ivall/xcl:comment:7292207511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7292207511). Originally posted by [AAsobu](https://github.com/AAsobu) on 2026-11-30T21:18:10Z. --- merge-check claim head: 6ab7dba953eb66f36eec033eb3b14abec43da93e
AAsobu commented 2026-11-30 21:42:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by AAsobu on 2026-11-30T21:42:22Z.


merge-check
base: d0832e614f
head: f607b7803f
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; SKIPPED: 28 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll, 1 no GPU_UPLOAD heaps); failing: none. Both new tests pass on this GPU (not skipped): cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way and a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline.
review: none. Re-checked on the new head (my earlier check was on 6ab7dba9). git range-diff against that head shows only the change asked for in the review: in finish_two_pass the mesh pass now evicts its blob only on stale_cached_pso_refusal(hr), so a success without a pipeline keeps the blob and is still retried without it, plus the new fake-device test and the commit message. My earlier check described that case but did not flag it; thehollowedone was right that it was a bug.
performance: only failure paths change; nothing on the success path. Not re-run in the game for this head: the code change since 6ab7dba9 is that one condition. Note on my earlier in-game numbers: the device removals there were most likely NVIDIA's 512 MB shader-heap limit (#2403); this machine had no #2590 profile then. They still were real removals in which the blob handling of this PR ran.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3090 24 GB (driver 621.24, wave32 only), Intel Core i5-10600K, 32 GB, Windows 11 Home build 26300, rustc 1.100.0 / Claude Code (Claude Opus 5.5), results checked by me

<!-- greyfinch-sync:ivall/xcl:comment:7292779059 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7292779059). Originally posted by [AAsobu](https://github.com/AAsobu) on 2026-11-30T21:42:22Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: f607b7803f5b1c28a89a8192ff5347a1f03ba956 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; SKIPPED: 28 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll, 1 no GPU_UPLOAD heaps); failing: none. Both new tests pass on this GPU (not skipped): `cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way` and `a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline`. review: none. Re-checked on the new head (my earlier check was on `6ab7dba9`). `git range-diff` against that head shows only the change asked for in the review: in `finish_two_pass` the mesh pass now evicts its blob only on `stale_cached_pso_refusal(hr)`, so a success without a pipeline keeps the blob and is still retried without it, plus the new fake-device test and the commit message. My earlier check described that case but did not flag it; thehollowedone was right that it was a bug. performance: only failure paths change; nothing on the success path. Not re-run in the game for this head: the code change since `6ab7dba9` is that one condition. Note on my earlier in-game numbers: the device removals there were most likely NVIDIA's 512 MB shader-heap limit (#2403); this machine had no #2590 profile then. They still were real removals in which the blob handling of this PR ran. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 3090 24 GB (driver 621.24, wave32 only), Intel Core i5-10600K, 32 GB, Windows 11 Home build 26300, rustc 1.100.0 / Claude Code (Claude Opus 5.5), results checked by me
Digit4w commented 2026-11-30 22:37:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Digit4w on 2026-11-30T22:37:46Z.


@thehollowedone thank you for the review, you were right: applied as you suggested.

  • The mesh pass in finish_two_pass now forgets its blob only for stale_cached_pso_refusal(hr). A success without a pipeline keeps the blob and is still retried without it.
  • The regression you asked for is a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline: a fake device whose CreatePipelineState returns S_OK and no pipeline. It sees two creates, with the blob and then without it, and the blob is still there afterwards. It fails with the earlier condition.
  • New head f607b78, rebased onto main 86e86fc, still one commit. Suite on it (RTX 4070 SUPER): 2891 passed, 0 failed, 51 ignored. The new smoke blocks are in the description.

@AAsobu your merge-check was on 6ab7dba. The only code change since then is that one condition, plus the test and the rebase.

Written with Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7294095095 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7294095095). Originally posted by [Digit4w](https://github.com/Digit4w) on 2026-11-30T22:37:46Z. --- @thehollowedone thank you for the review, you were right: applied as you suggested. - The mesh pass in `finish_two_pass` now forgets its blob only for `stale_cached_pso_refusal(hr)`. A success without a pipeline keeps the blob and is still retried without it. - The regression you asked for is `a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline`: a fake device whose `CreatePipelineState` returns `S_OK` and no pipeline. It sees two creates, with the blob and then without it, and the blob is still there afterwards. It fails with the earlier condition. - New head `f607b78`, rebased onto `main` `86e86fc`, still one commit. Suite on it (RTX 4070 SUPER): 2891 passed, 0 failed, 51 ignored. The new smoke blocks are in the description. @AAsobu your merge-check was on `6ab7dba`. The only code change since then is that one condition, plus the test and the rebase. Written with Claude Code (Claude Fable 5.2).
Foniass commented 2026-12-01 08:02:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:02:30Z.


Triage (#1607) – head f607b78

No open or merged PR makes the same change. On main, compute_container, create_graphics_pso_cached and both passes of finish_two_pass still forget the blob for every failed create. Only create_graphics_stream_cached checks stale_cached_pso_refusal(hr), which this PR now uses at those four sites too. #2614 (keep a replaced blob after a stale rejection) and #3556 (the Wine metadata blob) touch the same blob handling but are different changes.
No problems found in the diff: the retry without the blob is unchanged at every site, and the new graphics test fails without the change.
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:7304797170 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7304797170). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:02:30Z. --- **Triage (#1607)** – head f607b78 No open or merged PR makes the same change. On main, `compute_container`, `create_graphics_pso_cached` and both passes of `finish_two_pass` still forget the blob for every failed create. Only `create_graphics_stream_cached` checks `stale_cached_pso_refusal(hr)`, which this PR now uses at those four sites too. #2614 (keep a replaced blob after a stale rejection) and #3556 (the Wine metadata blob) touch the same blob handling but are different changes. No problems found in the diff: the retry without the blob is unchanged at every site, and the new graphics test fails without the change. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
vasanex commented 2026-12-02 01:33:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vasanex on 2026-12-02T01:33:34Z.


merge-check claim
head: f607b7803f

<!-- greyfinch-sync:ivall/xcl:comment:7331844061 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7331844061). Originally posted by [vasanex](https://github.com/vasanex) on 2026-12-02T01:33:34Z. --- merge-check claim head: f607b7803f5b1c28a89a8192ff5347a1f03ba956
vasanex commented 2026-12-02 01:38:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vasanex on 2026-12-02T01:38:44Z.


merge-check
base: 1c8b551475
head: f607b7803f
merge: clean (merged tree 0f9ea77a, git diff --check clean)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2911 passed, 0 failed, 51 ignored; SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache), the same set as on the base; failing: none. Base alone, same machine: 2909 passed, 0 failed, 51 ignored. Both new tests pass and did not skip (cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way, a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline).
review: whole diff read (one file, real.rs, +152/-16), in the merge result. No finding. The four older sites (compute container, cached graphics create, and the mesh and compute passes of finish_two_pass) now drop a driver blob only when stale_cached_pso_refusal(hr) says the driver refused it, the rule main already uses on the native graphics stream path; every site still retries without the blob whatever the code was, so a create that failed for another reason behaves as before except that the blob stays in memory and on disk. A success without a pipeline in the mesh pass keeps the blob too, which the second test pins. Consequence to know: a blob that fails for a reason outside the three refusal codes is offered again on the next run and costs one failed create plus the retry each time; the description names this difference.
performance: 60 s smoke of the same title, release, default settings, same machine, one run each. Base 1c8b5514: 1608 frames shown, presents per 2 s (last 3) 60 60 61, 0 device removals, 0 crashes, peak commit 19911 MB. Merge result (local merge commit): 1628 frames shown, 60 61 60, 0 device removals, 0 crashes, peak commit 20509 MB (3 % over the base; seven merges on this base gave 18794 to 20509 MB in the same two hours, so within the spread of single runs). The change acts only when a create with a cached blob fails, which this run did not show.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB (driver 621.40), AMD Ryzen 9 7950X, Windows 11 Pro 26200, rustc 1.100.0, debug suite and release smoke / Claude Code with Claude Fable 5.2. Run and posted without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7331939249 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7331939249). Originally posted by [vasanex](https://github.com/vasanex) on 2026-12-02T01:38:44Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: f607b7803f5b1c28a89a8192ff5347a1f03ba956 merge: clean (merged tree 0f9ea77a, `git diff --check` clean) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2911 passed, 0 failed, 51 ignored; SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache), the same set as on the base; failing: none. Base alone, same machine: 2909 passed, 0 failed, 51 ignored. Both new tests pass and did not skip (`cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way`, `a_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline`). review: whole diff read (one file, real.rs, +152/-16), in the merge result. No finding. The four older sites (compute container, cached graphics create, and the mesh and compute passes of `finish_two_pass`) now drop a driver blob only when `stale_cached_pso_refusal(hr)` says the driver refused it, the rule main already uses on the native graphics stream path; every site still retries without the blob whatever the code was, so a create that failed for another reason behaves as before except that the blob stays in memory and on disk. A success without a pipeline in the mesh pass keeps the blob too, which the second test pins. Consequence to know: a blob that fails for a reason outside the three refusal codes is offered again on the next run and costs one failed create plus the retry each time; the description names this difference. performance: 60 s smoke of the same title, release, default settings, same machine, one run each. Base 1c8b5514: 1608 frames shown, presents per 2 s (last 3) 60 60 61, 0 device removals, 0 crashes, peak commit 19911 MB. Merge result (local merge commit): 1628 frames shown, 60 61 60, 0 device removals, 0 crashes, peak commit 20509 MB (3 % over the base; seven merges on this base gave 18794 to 20509 MB in the same two hours, so within the spread of single runs). The change acts only when a create with a cached blob fails, which this run did not show. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB (driver 621.40), AMD Ryzen 9 7950X, Windows 11 Pro 26200, rustc 1.100.0, debug suite and release smoke / Claude Code with Claude Fable 5.2. Run and posted without a human check of each point.
ClosetPie107 commented 2026-12-02 17:13:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-12-02T17:13:43Z.


Build failure when merged onto current main: f607b78 does not compile on main 5eaadb54

git merge of f607b78 into main 5eaadb54 is clean (no conflicts), but the test build of the merge fails:

error[E0063]: missing field `cs_chain` in initializer of `TwoPass`
     --> crates/xcl/src/hle/d3d12x/real.rs:14401:18
      |
14401 |         let tp = crate::gpu::recomp::pso::TwoPass {
      |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `cs_chain`

main has added a cs_chain field to gpu::recomp::pso::TwoPass since this branch was made. The TwoPass { … } in this PR's test in real.rs needs it too (a rebase onto main should show it).

Setup: cross-compiled for x86_64-pc-windows-msvc with cargo-xwin on Linux (CachyOS); cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast. The error is a compile error in the merged source, not something specific to this machine.

Not tested: the tests (they did not build), Windows, a retail title.

AI use: omp (Claude Opus 5.5) merged and built the PR on this machine and drafted this report. The user asked for it to be posted.

<!-- greyfinch-sync:ivall/xcl:comment:7353074824 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2426#issuecomment-7353074824). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-12-02T17:13:43Z. --- **Build failure when merged onto current `main`: `f607b78` does not compile on `main` `5eaadb54`** `git merge` of `f607b78` into `main` `5eaadb54` is clean (no conflicts), but the test build of the merge fails: ``` error[E0063]: missing field `cs_chain` in initializer of `TwoPass` --> crates/xcl/src/hle/d3d12x/real.rs:14401:18 | 14401 | let tp = crate::gpu::recomp::pso::TwoPass { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `cs_chain` ``` `main` has added a `cs_chain` field to `gpu::recomp::pso::TwoPass` since this branch was made. The `TwoPass { … }` in this PR's test in `real.rs` needs it too (a rebase onto `main` should show it). **Setup:** cross-compiled for `x86_64-pc-windows-msvc` with `cargo-xwin` on Linux (CachyOS); `cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast`. The error is a compile error in the merged source, not something specific to this machine. **Not tested:** the tests (they did not build), Windows, a retail title. **AI use:** omp (Claude Opus 5.5) merged and built the PR on this machine and drafted this report. The user asked for it to be posted.
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/2426:upstream-pr/2426'
git switch 'upstream-pr/2426'

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