D3D12.X: drop retired textures from STREAM_RECHECK #2568

Open
AngeloMaiale wants to merge 1 commit from upstream-pr/2578 into main
AngeloMaiale commented 2026-11-25 23:51:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by AngeloMaiale on 2026-11-25T23:51:15Z.


The former LAST_CONTENT behavior is already covered by main. This PR removes stale STREAM_RECHECK records when title textures are retired after overlapping GPU-owned writes.

What is in it

  • crates/xcl/src/hle/d3d12x/title_textures.rs: return retired resource pointers from Table::retire_range and remove them from STREAM_RECHECK in retire_overlapping; add a CPU regression test (retiring_overlapping_textures_removes_stream_recheck_entries) covering active, shadowed, and disjoint entries.

Tested

  • NVIDIA GeForce RTX 4050 Laptop GPU (driver 621.24), Intel Core i7-12650H, Windows 11 build 26200, rustc 1.100.0; debug workspace build/test and release XCL for smoke.
  • cargo build --workspace: ok.
  • cargo test -p xcl --lib retiring_overlapping_textures_removes_stream_recheck_entries: 1 passed, 0 failed, 0 ignored.
  • cargo test --workspace --test '*' -- --test-threads=4: 143 passed, 0 failed, 20 ignored, 4 SKIPPED.
  • cargo test --workspace -- --test-threads=4: 1146 passed, 0 failed, 26 ignored, 47 SKIPPED before xcl --lib aborted partway with exit code 0x80004005 (sparse upload preparation still failed after bounded retries, known main issue #3488).
  • cargo build --release -p xcl: ok on c9a75a69.

Regression run

main:

xcl-smoke v1
commit: 3b6a91ed096d6d6e0fee52cfb86dc0a7d7c8c1b0
gpu: NVIDIA GeForce RTX 4050 Laptop GPU
title: f1a19535
seconds: 60
exit: 0x0
frames shown: 1473 (PresentX 1473)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15341 MB

PR:

xcl-smoke v1
commit: c9a75a694175927ab1b932d4526d87ff931671a3
gpu: NVIDIA GeForce RTX 4050 Laptop GPU
title: f1a19535
seconds: 60
exit: 0x0
frames shown: 1333 (PresentX 1333)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 16074 MB

Not tested

  • xcl --lib tests past the #3488 stop on this machine.
  • Wave64-capable GPUs or an AMD smoke run.
  • Whether the smoke title exercises the specific texture-retirement path.

AI use

  • Antigravity (Gemini 4 Neon): rebased onto main, removed the unrelated #2460 GPU test from this branch, ran builds/tests/smoke on c9a75a69, and updated the PR description. Earlier main smoke run on 3b6a91ed was run with Copilot SDK in VS Code.
<!-- greyfinch-sync:ivall/xcl:issue:5501233667 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578). Originally posted by [AngeloMaiale](https://github.com/AngeloMaiale) on 2026-11-25T23:51:15Z. --- The former `LAST_CONTENT` behavior is already covered by main. This PR removes stale `STREAM_RECHECK` records when title textures are retired after overlapping GPU-owned writes. **What is in it** - `crates/xcl/src/hle/d3d12x/title_textures.rs`: return retired resource pointers from `Table::retire_range` and remove them from `STREAM_RECHECK` in `retire_overlapping`; add a CPU regression test (`retiring_overlapping_textures_removes_stream_recheck_entries`) covering active, shadowed, and disjoint entries. **Tested** - NVIDIA GeForce RTX 4050 Laptop GPU (driver 621.24), Intel Core i7-12650H, Windows 11 build 26200, rustc 1.100.0; debug workspace build/test and release XCL for smoke. - `cargo build --workspace`: ok. - `cargo test -p xcl --lib retiring_overlapping_textures_removes_stream_recheck_entries`: 1 passed, 0 failed, 0 ignored. - `cargo test --workspace --test '*' -- --test-threads=4`: 143 passed, 0 failed, 20 ignored, 4 SKIPPED. - `cargo test --workspace -- --test-threads=4`: 1146 passed, 0 failed, 26 ignored, 47 SKIPPED before `xcl --lib` aborted partway with exit code `0x80004005` (`sparse upload preparation still failed after bounded retries`, known `main` issue #3488). - `cargo build --release -p xcl`: ok on `c9a75a69`. **Regression run** main: ``` xcl-smoke v1 commit: 3b6a91ed096d6d6e0fee52cfb86dc0a7d7c8c1b0 gpu: NVIDIA GeForce RTX 4050 Laptop GPU title: f1a19535 seconds: 60 exit: 0x0 frames shown: 1473 (PresentX 1473) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15341 MB ``` PR: ``` xcl-smoke v1 commit: c9a75a694175927ab1b932d4526d87ff931671a3 gpu: NVIDIA GeForce RTX 4050 Laptop GPU title: f1a19535 seconds: 60 exit: 0x0 frames shown: 1333 (PresentX 1333) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 16074 MB ``` **Not tested** - `xcl --lib` tests past the #3488 stop on this machine. - Wave64-capable GPUs or an AMD smoke run. - Whether the smoke title exercises the specific texture-retirement path. **AI use** - Antigravity (Gemini 4 Neon): rebased onto `main`, removed the unrelated #2460 GPU test from this branch, ran builds/tests/smoke on `c9a75a69`, and updated the PR description. Earlier `main` smoke run on `3b6a91ed` was run with Copilot SDK in VS Code.
fromthemoonx commented 2026-11-26 00:20:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-26T00:20:35Z.


merge-check
base: d71578f857
head: c9a75a6941
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2956 passed, 1 failed, 52 ignored (base: 2956 passed, 0 failed, 52 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime. Not this PR: it is the shared-counter race #3551 fixes, and it passed alone 3 of 3 on this merge.
review: read the whole diff (1 file, +93 -11). No problem found.

  • retire_overlapping removes the retired textures from STREAM_RECHECK after it releases TEXTURES, so it never holds both locks.
  • retiring_overlapping_textures_removes_stream_recheck_entries alone: 30 of 30. The title_textures module at 8 threads: 19 of 19 (that loop ran on the merge with df0cfef6; title_textures.rs is the same on this base).
  • Mutations, each alone: no pruning, active entries not returned, shadowed entries not returned. The new test fails for all three.
  • The author's smoke title may not reach the retirement path, as the description says. No title was run here.
    performance: one more lock and a few map removals, only when a GPU-owned write retires a texture. Not measured here; the author's smoke pair is within the limits (1333 frames against 1473, peak commit 16074 MB against 15341 MB).
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)

This is a rerun on the new head c9a75a69. Earlier reports on older heads are below.


Rerun on the new head 8bdc7e4 (one commit on main 3b6a91e, with the new retiring_overlapping_textures_removes_stream_recheck_entries): the gap I noted below is closed. The new test covers the STREAM_RECHECK pruning, and no failure comes from this PR.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, 8bdc7e4 (it contains main 3b6a91e) 2722 passed, 4 failed, 49 ignored. The 4 are main's own geometry tests (msg_gs_done_emits_in_dxil, gpu_geometry_msg_gs_done_records, geometry_export_rejected, gpu_epilogue_filters_oob_triangles_and_no_store_emits), which fail on 3b6a91e alone too; #3411 fixes them
retiring_overlapping_textures_removes_stream_recheck_entries and shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes alone 3 of 3 each
scratch: the STREAM_RECHECK pruning in retire_overlapping removed the new test fails (title_textures.rs:6689)

Same RTX 3060 (driver 610.88), Rust 1.100.0, debug.


Rerun on the new head 1bcfd76 (main merged in at 52b4aec, then the forget_last_content calls dropped): passes on NVIDIA, but on current main the new test no longer needs this PR's code.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, 1bcfd76 (its merge base is current main fa20459) 2609 passed, 0 failed, 49 ignored; 28 SKIPPED lines
scratch: the PR's remaining production change, the STREAM_RECHECK pruning of retired textures in retire_overlapping, removed shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes still passes 3 of 3

main no longer has LAST_CONTENT (the test's comments now say "cached page hashes"), and 1bcfd76 removes this PR's three forget_last_content calls. What is left is the regression test, which now passes on main's own code, plus the STREAM_RECHECK pruning, which no test reaches. The branch also merges main in rather than rebasing onto it (CONTRIBUTING asks for a rebase). Same RTX 3060 (driver 610.88), Rust 1.100.0, debug.


Rerun on the new head 1ee1c23 (rebased onto main e429936, plus the forget_last_content call in register_gpu_owned): no new failure on NVIDIA. The failing tests are main's own (#3093). No test reaches the new register_gpu_owned call.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, 1ee1c23 2127 passed, 9 failed, 48 ignored; 25 SKIPPED lines. The 9 are the ones in #3093
same, merged onto current main e13d625 (clean) 2131 passed, 10 failed, 48 ignored: the same 9 plus direct_msaa_loads_precede_get_dimensions, which main fails since #1908
shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes alone, 30 runs; title_textures:: (52 tests) at --test-threads=8, 30 runs 30 of 30; 30 of 30
scratch: the new forget_last_content(&unmap_ptrs) in register_gpu_owned removed every title_textures test still passes, run one at a time

Same RTX 3060 (driver 610.88), Rust 1.100.0, debug.


Rerun on the new head e60f083 (rebased onto main 2c717a0, so head = merged; the change is the same as on e44c9ff): passes on NVIDIA.

result
cargo test --workspace --no-fail-fast -- --test-threads=4 1467 passed, 0 failed, 47 ignored; 25 SKIPPED lines
the new test alone, 30 runs; title_textures:: (22 tests) at --test-threads=8, 30 runs 30 of 30; 30 of 30

Same RTX 3060 (driver 610.88), Rust 1.100.0, debug.


Rerun on the new head e44c9ff: with the debug layer on, the new test now passes 5 of 5 with 0 info-queue messages. That fits the cause you found (the last Release of old_a while its UpdateTileMappings was still on vram::Pages::queue). My "fix off" row below was wrong as an explanation: that run panicked before it reached the release, as you say.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, e44c9ff merged onto main b49be18 (clean) 1436 passed, 0 failed, 47 ignored; 25 SKIPPED lines
the new test with a scratch EnableDebugLayer() + info-queue dump, 5 runs 5 of 5 pass, 0 stored messages
the new test alone, 30 runs; title_textures:: (20 tests) at --test-threads=8, 30 runs 30 of 30; 30 of 30

On 168a32a: Passed on NVIDIA, but with the D3D12 debug layer on, the new test's process died: exit code 0x87D, 3 of 3, right after its aliasing CreatePlacedResourceX.

Tested: 168a32a merged onto main 08db802 (clean). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug, Graphics Tools (D3D12 debug layer) installed.

result
cargo test --workspace --no-fail-fast -- --test-threads=4 1430 passed, 0 failed, 47 ignored; 25 SKIPPED lines
shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes alone, 30 runs; title_textures:: (20 tests) at --test-threads=8, 30 runs 30 of 30; 30 of 30
the new test with a scratch D3D12GetDebugInterface + EnableDebugLayer() before its D3D12CreateDevice the process exits with 0x87D (2173), 3 of 3; the last output line is CreatePlacedResourceX at … (dimension 3 512x512 format 28 flags 0x0) – aliases an earlier resource there (dimension 3 1024x1024 …); no panic, no test result
the same, with the 3 forget_last_content(...) calls in register / retire_overlapping / forget turned into no-ops runs to the end and fails at title_textures.rs:2779 (the test's assert without the fix)

XCL_D3D12_DEBUG=1 does not reach this test: it makes its own device with D3D12CreateDevice, hence the scratch EnableDebugLayer().

Not tested: where the 0x87D comes from; a title; AMD; a release build.

AI use: Claude Code (Claude Opus 5.5) ran the suite, the repeats and the scratch debug-layer runs, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7178655464 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7178655464). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-26T00:20:35Z. --- merge-check base: d71578f8577f5611a21e355fc108dad88546a2b1 head: c9a75a694175927ab1b932d4526d87ff931671a3 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2956 passed, 1 failed, 52 ignored (base: 2956 passed, 0 failed, 52 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: `hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime`. Not this PR: it is the shared-counter race #3551 fixes, and it passed alone 3 of 3 on this merge. review: read the whole diff (1 file, +93 -11). No problem found. - `retire_overlapping` removes the retired textures from `STREAM_RECHECK` after it releases `TEXTURES`, so it never holds both locks. - `retiring_overlapping_textures_removes_stream_recheck_entries` alone: 30 of 30. The `title_textures` module at 8 threads: 19 of 19 (that loop ran on the merge with `df0cfef6`; `title_textures.rs` is the same on this base). - Mutations, each alone: no pruning, active entries not returned, shadowed entries not returned. The new test fails for all three. - The author's smoke title may not reach the retirement path, as the description says. No title was run here. performance: one more lock and a few map removals, only when a GPU-owned write retires a texture. Not measured here; the author's smoke pair is within the limits (1333 frames against 1473, peak commit 16074 MB against 15341 MB). verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5) This is a rerun on the new head `c9a75a69`. Earlier reports on older heads are below. --- **Rerun on the new head `8bdc7e4` (one commit on `main` `3b6a91e`, with the new `retiring_overlapping_textures_removes_stream_recheck_entries`): the gap I noted below is closed. The new test covers the `STREAM_RECHECK` pruning, and no failure comes from this PR.** | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `8bdc7e4` (it contains `main` `3b6a91e`) | 2722 passed, 4 failed, 49 ignored. The 4 are `main`'s own geometry tests (`msg_gs_done_emits_in_dxil`, `gpu_geometry_msg_gs_done_records`, `geometry_export_rejected`, `gpu_epilogue_filters_oob_triangles_and_no_store_emits`), which fail on `3b6a91e` alone too; #3411 fixes them | | `retiring_overlapping_textures_removes_stream_recheck_entries` and `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes` alone | 3 of 3 each | | scratch: the `STREAM_RECHECK` pruning in `retire_overlapping` removed | the new test fails (`title_textures.rs:6689`) | Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. --- **Rerun on the new head `1bcfd76` (`main` merged in at `52b4aec`, then the `forget_last_content` calls dropped): passes on NVIDIA, but on current `main` the new test no longer needs this PR's code.** | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `1bcfd76` (its merge base is current `main` `fa20459`) | 2609 passed, 0 failed, 49 ignored; 28 `SKIPPED` lines | | scratch: the PR's remaining production change, the `STREAM_RECHECK` pruning of retired textures in `retire_overlapping`, removed | `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes` still passes 3 of 3 | `main` no longer has `LAST_CONTENT` (the test's comments now say "cached page hashes"), and `1bcfd76` removes this PR's three `forget_last_content` calls. What is left is the regression test, which now passes on `main`'s own code, plus the `STREAM_RECHECK` pruning, which no test reaches. The branch also merges `main` in rather than rebasing onto it (CONTRIBUTING asks for a rebase). Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. --- **Rerun on the new head `1ee1c23` (rebased onto `main` `e429936`, plus the `forget_last_content` call in `register_gpu_owned`): no new failure on NVIDIA. The failing tests are `main`'s own (#3093). No test reaches the new `register_gpu_owned` call.** | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `1ee1c23` | 2127 passed, 9 failed, 48 ignored; 25 `SKIPPED` lines. The 9 are the ones in #3093 | | same, merged onto current `main` `e13d625` (clean) | 2131 passed, 10 failed, 48 ignored: the same 9 plus `direct_msaa_loads_precede_get_dimensions`, which `main` fails since #1908 | | `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes` alone, 30 runs; `title_textures::` (52 tests) at `--test-threads=8`, 30 runs | 30 of 30; 30 of 30 | | scratch: the new `forget_last_content(&unmap_ptrs)` in `register_gpu_owned` removed | every `title_textures` test still passes, run one at a time | Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. --- **Rerun on the new head `e60f083` (rebased onto `main` `2c717a0`, so head = merged; the change is the same as on `e44c9ff`): passes on NVIDIA.** | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 1467 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | | the new test alone, 30 runs; `title_textures::` (22 tests) at `--test-threads=8`, 30 runs | 30 of 30; 30 of 30 | Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. --- **Rerun on the new head `e44c9ff`: with the debug layer on, the new test now passes 5 of 5 with 0 info-queue messages.** That fits the cause you found (the last `Release` of `old_a` while its `UpdateTileMappings` was still on `vram::Pages::queue`). My "fix off" row below was wrong as an explanation: that run panicked before it reached the release, as you say. | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `e44c9ff` merged onto `main` `b49be18` (clean) | 1436 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | | the new test with a scratch `EnableDebugLayer()` + info-queue dump, 5 runs | 5 of 5 pass, 0 stored messages | | the new test alone, 30 runs; `title_textures::` (20 tests) at `--test-threads=8`, 30 runs | 30 of 30; 30 of 30 | --- *On `168a32a`:* Passed on NVIDIA, but with the D3D12 debug layer on, the new test's process died: exit code `0x87D`, 3 of 3, right after its aliasing `CreatePlacedResourceX`. **Tested:** `168a32a` merged onto `main` `08db802` (clean). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug, Graphics Tools (D3D12 debug layer) installed. | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 1430 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | | `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes` alone, 30 runs; `title_textures::` (20 tests) at `--test-threads=8`, 30 runs | 30 of 30; 30 of 30 | | the new test with a scratch `D3D12GetDebugInterface` + `EnableDebugLayer()` before its `D3D12CreateDevice` | the process exits with `0x87D` (2173), 3 of 3; the last output line is `CreatePlacedResourceX at … (dimension 3 512x512 format 28 flags 0x0) – aliases an earlier resource there (dimension 3 1024x1024 …)`; no panic, no test result | | the same, with the 3 `forget_last_content(...)` calls in `register` / `retire_overlapping` / `forget` turned into no-ops | runs to the end and fails at `title_textures.rs:2779` (the test's assert without the fix) | `XCL_D3D12_DEBUG=1` does not reach this test: it makes its own device with `D3D12CreateDevice`, hence the scratch `EnableDebugLayer()`. **Not tested:** where the `0x87D` comes from; a title; AMD; a release build. **AI use:** Claude Code (Claude Opus 5.5) ran the suite, the repeats and the scratch debug-layer runs, and wrote this report.
DavidM1911 commented 2026-11-26 01:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:08:07Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7178431485 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7178431485). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T00:08:07Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 26 ignored. Thanks! — Devin
thehollowedone commented 2026-11-26 01:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T00:49:49Z.


Current-head RTX 3080 Ti recheck: e44c9ff, PR base main b49be18. Clean exact-head checkout, RTX 3080 Ti (NVIDIA 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC/DXIL 1.8.2502.11.

Tested

  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked -p xcl --lib shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes -- --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored, 0 skips on the stock head.
  • To recheck my earlier 0x87D failure, I added only a local EnableDebugLayer() call before that fixture created its device. The same test then passed 1/1 with D3D12SDKLayers.dll active and no 0x87D termination. I restored the file afterward; no production change was tested in this scratch run. I did not inspect the InfoQueue message count.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --quiet on the restored, clean exact head: 1,424 passed, 0 failed, 46 ignored across 37 test targets; 25 explicit GPU skip notices. Skips are not counted as GPU coverage.

Not tested: retail texture output or a paired title smoke on this GPU. The synthetic checks support the revised teardown test and cache-invalidation behavior; they do not establish title-level visual correctness.

AI-assisted: Codex (GPT-6.2 Sol) ran the checks and drafted this update.

Earlier finding on head 168a32a

Follow-up to the debug-layer report on current 168a32a. I reproduced exit 0x87D on an RTX 3080 Ti (621.35), Windows 11 build 26300, with a scratch EnableDebugLayer() call before this test creates its device. The stock test without that call passes 1/1.

Stage markers narrowed the debug-layer exit to the final drop(old_a), after retire_overlapping returned. The lazy-level phase alone passed; the plain-pages phase alone reproduced the exit. Its re-upload and GPU readback had already completed, so the last aliasing log line did not identify the failing operation. The earlier no-invalidation control stops at the lazy assertion and does not reach this release.

retire_overlapping calls vram::unmap_superseded, which queues UpdateTileMappings on the private mapping queue and signals its fence. The test's prior readback waits precede this final unmap. In scratch, I waited for that mapping dependency on the test queue before releasing old_a:

retire_overlapping(at, old_tex.size() as usize);
assert!(!LAST_CONTENT.lock().unwrap().contains_key(&key_a));
own_work(|| {
    super::super::vram::before_execute(&queue);
    texture::wait(&dev, &queue).unwrap();
});
drop(old_a);

With this test-only wait, the plain-pages phase passed 1/1 with the debug layer, and the complete two-phase test passed 4/4 runs. before_execute queues a wait for the latest mapping fence; texture::wait then waits for the test queue. This supports a teardown-order explanation, but I did not capture a D3D12 InfoQueue error ID or termination stack. It does not establish a retail-title fix. No production code or game files were changed.

AI use: Codex (GPT-6.2 Sol) ran the synthetic checks and drafted this report; GPT-6.2 Astra reviewed the queue lifetime. AI-assisted.

<!-- greyfinch-sync:ivall/xcl:comment:7179155397 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7179155397). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T00:49:49Z. --- **Current-head RTX 3080 Ti recheck:** [e44c9ff](https://github.com/xcl-dev/xcl/commit/e44c9ffd5adb500cf3267114dfed4acfb5401c93), PR base [main b49be18](https://github.com/xcl-dev/xcl/commit/b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). Clean exact-head checkout, RTX 3080 Ti (NVIDIA 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC/DXIL 1.8.2502.11. **Tested** - `cargo build --offline --locked --workspace`: passed. - `cargo test --offline --locked -p xcl --lib shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes -- --nocapture --test-threads=1`: **1 passed, 0 failed, 0 ignored, 0 skips** on the stock head. - To recheck my earlier `0x87D` failure, I added only a local `EnableDebugLayer()` call before that fixture created its device. The same test then passed **1/1** with `D3D12SDKLayers.dll` active and no `0x87D` termination. I restored the file afterward; no production change was tested in this scratch run. I did not inspect the InfoQueue message count. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --quiet` on the restored, clean exact head: **1,424 passed, 0 failed, 46 ignored** across 37 test targets; 25 explicit GPU skip notices. Skips are not counted as GPU coverage. **Not tested:** retail texture output or a paired title smoke on this GPU. The synthetic checks support the revised teardown test and cache-invalidation behavior; they do not establish title-level visual correctness. AI-assisted: Codex (GPT-6.2 Sol) ran the checks and drafted this update. <details><summary>Earlier finding on head 168a32a</summary> Follow-up to [the debug-layer report](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7178655464) on current [`168a32a`](https://github.com/xcl-dev/xcl/pull/2578/commits/168a32a7c9242034d5857d44f80d586511d4c46f). I reproduced exit `0x87D` on an RTX 3080 Ti (621.35), Windows 11 build 26300, with a scratch `EnableDebugLayer()` call before this test creates its device. The stock test without that call passes 1/1. Stage markers narrowed the debug-layer exit to the final `drop(old_a)`, after `retire_overlapping` returned. The lazy-level phase alone passed; the plain-pages phase alone reproduced the exit. Its re-upload and GPU readback had already completed, so the last aliasing log line did not identify the failing operation. The earlier no-invalidation control stops at the lazy assertion and does not reach this release. `retire_overlapping` calls `vram::unmap_superseded`, which queues `UpdateTileMappings` on the private mapping queue and signals its fence. The test's prior readback waits precede this final unmap. In scratch, I waited for that mapping dependency on the test queue before releasing `old_a`: ```rust retire_overlapping(at, old_tex.size() as usize); assert!(!LAST_CONTENT.lock().unwrap().contains_key(&key_a)); own_work(|| { super::super::vram::before_execute(&queue); texture::wait(&dev, &queue).unwrap(); }); drop(old_a); ``` With this test-only wait, the plain-pages phase passed 1/1 with the debug layer, and the complete two-phase test passed 4/4 runs. `before_execute` queues a wait for the latest mapping fence; `texture::wait` then waits for the test queue. This supports a teardown-order explanation, but I did not capture a D3D12 InfoQueue error ID or termination stack. It does not establish a retail-title fix. No production code or game files were changed. AI use: Codex (GPT-6.2 Sol) ran the synthetic checks and drafted this report; GPT-6.2 Astra reviewed the queue lifetime. AI-assisted. </details>
AngeloMaiale commented 2026-11-26 01:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by AngeloMaiale on 2026-11-26T01:01:16Z.


Thanks @DavidM1911 and @fromthemoonx for testing!

Found where the 0x87D exit under the D3D12 debug layer comes from:

  • 0x87D (_FACD3D12) is the SEH exception raised by d3d12SDKLayers.dll on D3D12_MESSAGE_SEVERITY_CORRUPTION.
  • The last logged line (CreatePlacedResourceX at … 512x512 … – aliases an earlier resource there (… 1024x1024 …)) is the start of step 2 of the test, after step 1's lazy level remap + re-upload + 11 mip readbacks have already passed. Nothing else logs between step 2 and the end of the test.
  • At the very end of the test (step 3), retire_overlapping(at, old_tex.size()) calls vram::unmap_superseded(&old_a), which queues an asynchronous UpdateTileMappings(&old_a, NULL) on vram::Pages::queue, and the next line immediately runs drop(old_a).
  • On current main, late_release::drain_known waits on present::known_queues(), sparse::queue(), and title_textures::upload_queues(), but does not yet include vram::Pages::queue (already covered by open PR #1314). Because upload_queues() is already idle from step 2, old_a's final Release runs while UpdateTileMappings is still in flight on vram::Pages::queue, triggering D3D12_MESSAGE_ID_OBJECT_DELETED_WHILE_STILL_IN_USE (921, CORRUPTION) → 0x87D.
  • Turning off the three forget_last_content calls avoided 0x87D only because step 1 panicked earlier at mapped_tiles_for(...).is_some() before reaching step 2/3 (lazy_b in step 1 had LEVEL_PAGES_FOR_TEST = true, so no UpdateTileMappings was queued on it before drop(lazy_b)).

Updated the test in e44c9ff (without touching late_release.rs, to stay out of #1314's scope) to drain vram::Pages::queue via vram::before_execute(&queue) + texture::wait(&dev, &queue) before dropping lazy_a and old_a, and refreshed the xcl-smoke run on e44c9ff.

AI use: Antigravity with Gemini 4 Carbon traced the 0x87D site in d3d12SDKLayers.dll and late_release.rs, updated the test, re-ran test.ps1 and smoke.ps1, and drafted this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7179345728 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7179345728). Originally posted by [AngeloMaiale](https://github.com/AngeloMaiale) on 2026-11-26T01:01:16Z. --- Thanks @DavidM1911 and @fromthemoonx for testing! Found where the `0x87D` exit under the D3D12 debug layer comes from: - `0x87D` (`_FACD3D12`) is the SEH exception raised by `d3d12SDKLayers.dll` on `D3D12_MESSAGE_SEVERITY_CORRUPTION`. - The last logged line (`CreatePlacedResourceX at … 512x512 … – aliases an earlier resource there (… 1024x1024 …)`) is the start of step 2 of the test, after step 1's lazy level remap + re-upload + 11 mip readbacks have already passed. Nothing else logs between step 2 and the end of the test. - At the very end of the test (step 3), `retire_overlapping(at, old_tex.size())` calls `vram::unmap_superseded(&old_a)`, which queues an asynchronous `UpdateTileMappings(&old_a, NULL)` on `vram::Pages::queue`, and the next line immediately runs `drop(old_a)`. - On current `main`, `late_release::drain_known` waits on `present::known_queues()`, `sparse::queue()`, and `title_textures::upload_queues()`, but does not yet include `vram::Pages::queue` (already covered by open PR #1314). Because `upload_queues()` is already idle from step 2, `old_a`'s final `Release` runs while `UpdateTileMappings` is still in flight on `vram::Pages::queue`, triggering `D3D12_MESSAGE_ID_OBJECT_DELETED_WHILE_STILL_IN_USE` (921, `CORRUPTION`) → `0x87D`. - Turning off the three `forget_last_content` calls avoided `0x87D` only because step 1 panicked earlier at `mapped_tiles_for(...).is_some()` before reaching step 2/3 (`lazy_b` in step 1 had `LEVEL_PAGES_FOR_TEST = true`, so no `UpdateTileMappings` was queued on it before `drop(lazy_b)`). Updated the test in `e44c9ff` (without touching `late_release.rs`, to stay out of #1314's scope) to drain `vram::Pages::queue` via `vram::before_execute(&queue)` + `texture::wait(&dev, &queue)` before dropping `lazy_a` and `old_a`, and refreshed the `xcl-smoke` run on `e44c9ff`. **AI use:** Antigravity with Gemini 4 Carbon traced the `0x87D` site in `d3d12SDKLayers.dll` and `late_release.rs`, updated the test, re-ran `test.ps1` and `smoke.ps1`, and drafted this reply.
DavidM1911 commented 2026-11-26 02:08:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T01:36:25Z.


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:7179941668 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7179941668). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T01:36:25Z. --- 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
oni-swr commented 2026-11-26 03:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T02:12:29Z.


AMD RX 7800 XT (wave64) on e44c9ff: the new test passes 10 of 10, and 5 of 5 with the D3D12 debug layer on (0 info-queue messages). With the three forget_last_content calls turned off it fails at the lazy-level assert. The only suite failure is the known AMD fuzz failure #2115, which fails the same way on the parent.

Tested: e44c9ffd5adb500cf3267114dfed4acfb5401c93 (as is, not merged onto main) and its parent e1d84b7d9153f86a97d2ec5d209d196046fc0bea as the control, both clean checkouts. AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB, Windows 11 Pro 26200, Rust 1.100.0 MSVC, debug, Graphics Tools (d3d12SDKLayers.dll) installed.

e44c9ff parent e1d84b7
cargo test --workspace --no-fail-fast -- --test-threads=4 1423 passed, 1 failed, 46 ignored 1422 passed, 1 failed, 46 ignored
the failure gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, seed 722 res[30] = 0x1, CPU 0x7fffffff (#2115) the same test, seed and values
SKIPPED lines 7: 6 #1426 per-lane f16/f32 refusals, 1 no heap windows the same 7
uploads_start_from_each_subresources_state, test_title_*_under_the_debug_layer* pass pass
shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes --exact, 10 runs 10 of 10 (not on the parent)

The difference of one passed test between the two columns is the new test.

Scratch runs of the new test on a scratch copy of e44c9ff. The copy only adds printouts, an EnableDebugLayer() call before the test's D3D12CreateDevice, a dump of the info queue at the end, and an env switch that makes forget_last_content return early. None of it is committed. The test used the RX 7800 XT, and has_lazy_levels was true, so step 1 (lazy level pages) ran on this adapter:

result
debug layer on, fix on, 5 runs 5 of 5 pass, test end reached, 0 stored info-queue messages, exit 0
debug layer on, fix off, 3 runs 3 of 3 fail at uncovered lazy texture must remap all non-zero levels, the assert at title_textures.rs:2787 of the PR; no 0x87D
debug layer off, fix off, 2 runs 2 of 2 fail at the same assert

Not tested: a title or smoke run; a release build; e44c9ff merged onto current main; the without-fix control under the debug layer stops at step 1, so steps 2 and 3 were not run without the fix on this adapter; other AMD GPUs.

AI use: Claude Code (Claude Opus 5.5) ran the suites, the repeats and the scratch debug-layer runs, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7180567934 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7180567934). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T02:12:29Z. --- **AMD RX 7800 XT (wave64) on `e44c9ff`: the new test passes 10 of 10, and 5 of 5 with the D3D12 debug layer on (0 info-queue messages). With the three `forget_last_content` calls turned off it fails at the lazy-level assert. The only suite failure is the known AMD fuzz failure #2115, which fails the same way on the parent.** **Tested:** `e44c9ffd5adb500cf3267114dfed4acfb5401c93` (as is, not merged onto `main`) and its parent `e1d84b7d9153f86a97d2ec5d209d196046fc0bea` as the control, both clean checkouts. AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB, Windows 11 Pro 26200, Rust 1.100.0 MSVC, debug, Graphics Tools (`d3d12SDKLayers.dll`) installed. | | `e44c9ff` | parent `e1d84b7` | |---|---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 1423 passed, 1 failed, 46 ignored | 1422 passed, 1 failed, 46 ignored | | the failure | `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, seed 722 `res[30] = 0x1, CPU 0x7fffffff` (#2115) | the same test, seed and values | | `SKIPPED` lines | 7: 6 `#1426` per-lane f16/f32 refusals, 1 `no heap windows` | the same 7 | | `uploads_start_from_each_subresources_state`, `test_title_*_under_the_debug_layer*` | pass | pass | | `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes --exact`, 10 runs | 10 of 10 | (not on the parent) | The difference of one passed test between the two columns is the new test. Scratch runs of the new test on a scratch copy of `e44c9ff`. The copy only adds printouts, an `EnableDebugLayer()` call before the test's `D3D12CreateDevice`, a dump of the info queue at the end, and an env switch that makes `forget_last_content` return early. None of it is committed. The test used the RX 7800 XT, and `has_lazy_levels` was true, so step 1 (lazy level pages) ran on this adapter: | | result | |---|---| | debug layer on, fix on, 5 runs | 5 of 5 pass, test end reached, 0 stored info-queue messages, exit 0 | | debug layer on, fix off, 3 runs | 3 of 3 fail at `uncovered lazy texture must remap all non-zero levels`, the assert at `title_textures.rs:2787` of the PR; no `0x87D` | | debug layer off, fix off, 2 runs | 2 of 2 fail at the same assert | **Not tested:** a title or smoke run; a release build; `e44c9ff` merged onto current `main`; the without-fix control under the debug layer stops at step 1, so steps 2 and 3 were not run without the fix on this adapter; other AMD GPUs. **AI use:** Claude Code (Claude Opus 5.5) ran the suites, the repeats and the scratch debug-layer runs, and wrote this report.
GodlyBDS commented 2026-11-26 03:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by GodlyBDS on 2026-11-26T02:30:24Z.


RTX 3090 Ti readback of the plain placed-texture remap case

Windows 10 19045, NVIDIA 621.40, release on a local 08294413-based build. I applied the runtime invalidation from #2578 and the test-side tile-queue drain from e44c9ffd. I adapted the fixture to the plain placed-texture path available on that base.

The real-GPU test passed, with no skip. It uploaded A, placed an overlapping B, restored A's identical CPU bytes, uncovered A and read back the expected texels after refresh. It also confirmed that retire_overlapping removes A's cached hash. The older base lacks lazy per-mip page mapping, so this covers the plain path. No world-rendering result from this test.

Thanks for the fixture and the queue-drain follow-up. AI use: OpenAI Codex (GPT-6) adapted and ran the test.

Live follow-up. In an untimed run with the same locally adapted #2578 runtime and a 6,569-entry native PSO seed, the last recorded Present was #1,720 at 806.288 s. The launcher stopped at 379 MiB of available physical RAM with 7.84 GiB of commit headroom. The last log entries still contained GPU submissions, and no device removal or matching Windows display-driver reset was logged. The most recent successful capture showed a loading spinner. Later capture copies timed out, so the test did not verify visible 3D or establish what changed in the rendered output. This is a runtime limit for this configuration and does not isolate a memory change caused by #2578.

<!-- greyfinch-sync:ivall/xcl:comment:7180866305 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7180866305). Originally posted by [GodlyBDS](https://github.com/GodlyBDS) on 2026-11-26T02:30:24Z. --- **RTX 3090 Ti readback of the plain placed-texture remap case** Windows 10 19045, NVIDIA 621.40, release on a local `08294413`-based build. I applied the runtime invalidation from #2578 and the test-side tile-queue drain from `e44c9ffd`. I adapted the fixture to the plain placed-texture path available on that base. The real-GPU test passed, with no skip. It uploaded A, placed an overlapping B, restored A's identical CPU bytes, uncovered A and read back the expected texels after refresh. It also confirmed that `retire_overlapping` removes A's cached hash. The older base lacks lazy per-mip page mapping, so this covers the plain path. No world-rendering result from this test. Thanks for the fixture and the queue-drain follow-up. AI use: OpenAI Codex (GPT-6) adapted and ran the test. **Live follow-up.** In an untimed run with the same locally adapted #2578 runtime and a 6,569-entry native PSO seed, the last recorded Present was #1,720 at 806.288 s. The launcher stopped at 379 MiB of available physical RAM with 7.84 GiB of commit headroom. The last log entries still contained GPU submissions, and no device removal or matching Windows display-driver reset was logged. The most recent successful capture showed a loading spinner. Later capture copies timed out, so the test did not verify visible 3D or establish what changed in the rendered output. This is a runtime limit for this configuration and does not isolate a memory change caused by #2578.
Decodere commented 2026-11-27 02:45:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T02:45:00Z.


Independent desktop NVIDIA verification of PR #2578 at head e44c9ffd5adb500cf3267114dfed4acfb5401c93 (1 commit; exact parent & merge-base: e1d84b7d9153f86a97d2ec5d209d196046fc0bea, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (e44c9ffd)

Command Result
cargo test --release -p xcl --lib shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.29s, 0.29s, 0.30s, 0 skipped — live D3D12 execution on RTX 4060)
cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1 (3 consecutive runs) 20 passed; 0 failed; 0 ignored; 1305 filtered out × 3 (0.89s, 0.90s, 0.90s, 0 skipped)
cargo build --release -p xcl Clean build (1m 07s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (e1d84b7d9153f86a97d2ec5d209d196046fc0bea, cached baseline on the same machine):

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

PR #2578 (e44c9ffd5adb500cf3267114dfed4acfb5401c93):

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

Runtime log observations (xcl.log)

  • 9220 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19547 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 13989 MB committed by the process; video memory 6116 MB local, 4651 MB non-local.

Limits of coverage

  • Clearing LAST_CONTENT on placed-texture unmap/remap so shadowed textures re-upload even with unchanged CPU bytes was directly exercised on desktop D3D12 / RTX 4060 via shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes (3/3, 0 skipped) and hle::d3d12x::title_textures:: (20/20 × 3).
  • The 60 s retail smoke on title: 29640639 confirms zero runtime regression across placed texture uploads (frame-count delta vs. cached parent reflects single-run startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7208396553 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7208396553). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T02:45:00Z. --- Independent desktop NVIDIA verification of **PR #2578** at head `e44c9ffd5adb500cf3267114dfed4acfb5401c93` (`1` commit; exact parent & merge-base: `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`e44c9ffd`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1324 filtered out` × 3 (`0.29s`, `0.29s`, `0.30s`, `0` skipped — live D3D12 execution on RTX 4060) | | `cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1` (3 consecutive runs) | `20 passed; 0 failed; 0 ignored; 1305 filtered out` × 3 (`0.89s`, `0.90s`, `0.90s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 07s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, cached baseline on the same machine): ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1531 (PresentX 1531) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13982 MB ``` PR #2578 (`e44c9ffd5adb500cf3267114dfed4acfb5401c93`): ``` xcl-smoke v1 commit: e44c9ffd5adb500cf3267114dfed4acfb5401c93 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1594 (PresentX 1594) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13990 MB ``` ### Runtime log observations (`xcl.log`) - `9220` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19547 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `13989 MB committed by the process; video memory 6116 MB local, 4651 MB non-local`. ### Limits of coverage - Clearing `LAST_CONTENT` on placed-texture unmap/remap so shadowed textures re-upload even with unchanged CPU bytes was directly exercised on desktop D3D12 / RTX 4060 via `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes` (`3/3`, `0` skipped) and `hle::d3d12x::title_textures::` (`20/20` × 3). - The 60 s retail smoke on `title: 29640639` confirms zero runtime regression across placed texture uploads (frame-count delta vs. cached parent reflects single-run startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
akimfomin commented 2026-11-28 01:59:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by akimfomin on 2026-11-28T01:59:47Z.


Following the plain placed-texture readback control, victory-fork #1333 gives a useful second case for LAST_CONTENT: keep two view heaps at the same logical offset, remap only one, and let the old resource retire before the next sample. The new backing in that heap must not inherit the old fingerprint, while the other heap stays current. This is a source comparison; the plain readback already reported here need not be repeated.

<!-- greyfinch-sync:ivall/xcl:comment:7232056517 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7232056517). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T01:59:47Z. --- Following the plain placed-texture readback control, [victory-fork #1333](https://github.com/fxceless/victory-fork/pull/1333) gives a useful second case for `LAST_CONTENT`: keep two view heaps at the same logical offset, remap only one, and let the old resource retire before the next sample. The new backing in that heap must not inherit the old fingerprint, while the other heap stays current. This is a source comparison; the plain readback already reported here need not be repeated.
thehollowedone commented 2026-11-28 15:42:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T15:42:32Z.


Independent Windows/NVIDIA check of head 1ee1c23 on an RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11:

  • $env:XCL_ADAPTER='3080'; $env:XCL_D3D12_DEBUG='1'; cargo test --offline --locked -j 4 -p xcl --lib shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes -- --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored, 0 skips. The test created a native device with the debug layer enabled. I did not measure its InfoQueue message count.
  • $env:XCL_ADAPTER='3080'; cargo test --offline --locked -j 4 --workspace --no-fail-fast --quiet -- --test-threads=4: 2,126 passed, 10 failed, 48 ignored across 39 targets; 25 explicit GPU SKIPPED notices. Seven failures were in xcl --lib and three in xcl --test e2e. I did not run the exact parent under this full command, so these failures are not attributed to the PR.
Full-suite failing tests

gpu::dxil::module::split::tests::{dispatch_chain_oversized_loop_matches_whole,dispatch_chain_wave32_live_loops,dispatch_chain_wave64_live_loops_and_exchange}; gpu::recomp::heap_window_tests::gpu_heap_flat_reads_match_guarded_and_root_output; gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk; gpu::recomp::tests::{gpu_compute_mode_dispatch_abi,gpu_float_cas_uses_ieee_equality}; e2e::{test_title_draws_with_a_root_signature_under_the_debug_layer,test_title_runs_and_game_folder_is_untouched,test_title_runs_under_the_debug_layer_with_dred}.

I also traced a concurrency case that the passing sequential regression does not cover. forget(B) makes shadowed texture A active and pending under TEXTURES, then releases that lock before remap_if_unmapped(A). A concurrent refresh can consume A's pending bit in that gap. For lazy levels, map_levels returns without binding pages while A is unmapped. The upload path has already recorded A's content hash, and the later lazy remap only marks it mapped; it does not requeue an upload. This is a source-level residual race, not a GPU reproduction or a claim that this PR introduced it.

Could A remain ineligible for refresh until remap succeeds, then have its hash invalidated and pending upload published together? A barrier-controlled test that pauses B's release before remap, allows a refresh attempt, then resumes release and checks A's texels would cover the missing ordering. The serial fix and its GPU test do work on this adapter.

AI use: Codex (GPT-6.2 Sol) ran the tests and checked the source path; Codex (GPT-6.2 Astra) independently reviewed the release/refresh ordering.

<!-- greyfinch-sync:ivall/xcl:comment:7241673802 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7241673802). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T15:42:32Z. --- Independent Windows/NVIDIA check of [head `1ee1c23`](https://github.com/xcl-dev/xcl/commit/1ee1c237338421839902a27060e32c4839d4542c) on an RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11: - `$env:XCL_ADAPTER='3080'; $env:XCL_D3D12_DEBUG='1'; cargo test --offline --locked -j 4 -p xcl --lib shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes -- --nocapture --test-threads=1`: **1 passed, 0 failed, 0 ignored, 0 skips**. The test created a native device with the debug layer enabled. I did not measure its InfoQueue message count. - `$env:XCL_ADAPTER='3080'; cargo test --offline --locked -j 4 --workspace --no-fail-fast --quiet -- --test-threads=4`: **2,126 passed, 10 failed, 48 ignored** across 39 targets; 25 explicit GPU `SKIPPED` notices. Seven failures were in `xcl --lib` and three in `xcl --test e2e`. I did not run the exact parent under this full command, so these failures are not attributed to the PR. <details><summary>Full-suite failing tests</summary> `gpu::dxil::module::split::tests::{dispatch_chain_oversized_loop_matches_whole,dispatch_chain_wave32_live_loops,dispatch_chain_wave64_live_loops_and_exchange}`; `gpu::recomp::heap_window_tests::gpu_heap_flat_reads_match_guarded_and_root_output`; `gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk`; `gpu::recomp::tests::{gpu_compute_mode_dispatch_abi,gpu_float_cas_uses_ieee_equality}`; `e2e::{test_title_draws_with_a_root_signature_under_the_debug_layer,test_title_runs_and_game_folder_is_untouched,test_title_runs_under_the_debug_layer_with_dred}`. </details> I also traced a concurrency case that the passing sequential regression does not cover. [`forget(B)`](https://github.com/xcl-dev/xcl/blob/1ee1c237338421839902a27060e32c4839d4542c/crates/xcl/src/hle/d3d12x/title_textures.rs#L745-L759) makes shadowed texture A active and pending under `TEXTURES`, then releases that lock before `remap_if_unmapped(A)`. A concurrent [`refresh`](https://github.com/xcl-dev/xcl/blob/1ee1c237338421839902a27060e32c4839d4542c/crates/xcl/src/hle/d3d12x/title_textures.rs#L1113-L1165) can consume A's pending bit in that gap. For lazy levels, [`map_levels`](https://github.com/xcl-dev/xcl/blob/1ee1c237338421839902a27060e32c4839d4542c/crates/xcl/src/hle/d3d12x/vram.rs#L2627-L2634) returns without binding pages while A is unmapped. The upload path has already recorded A's content hash, and the later [lazy remap](https://github.com/xcl-dev/xcl/blob/1ee1c237338421839902a27060e32c4839d4542c/crates/xcl/src/hle/d3d12x/vram.rs#L2185-L2189) only marks it mapped; it does not requeue an upload. This is a **source-level residual race**, not a GPU reproduction or a claim that this PR introduced it. Could A remain ineligible for refresh until remap succeeds, then have its hash invalidated and pending upload published together? A barrier-controlled test that pauses B's release before remap, allows a refresh attempt, then resumes release and checks A's texels would cover the missing ordering. The serial fix and its GPU test do work on this adapter. AI use: Codex (GPT-6.2 Sol) ran the tests and checked the source path; Codex (GPT-6.2 Astra) independently reviewed the release/refresh ordering.
Kalmarv commented 2026-11-29 04:09:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T04:09:47Z.


merge-check
base: fa204595a4
head: 1bcfd76b62
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2608 passed, 2 failed, 49 ignored; SKIPPED: 27, the usual 26 (21 no wave64 on this 32-lane GPU, 3 per-lane forms refused, 2 no heap windows) plus 1 "no build ahead (XCL_PSO_PRELOAD=0, XCL_PSO_AHEAD=0 or short of commit)"; failing: gpu_two_pass_cache_e2e, counted twice, with "releasing the title PSOs releases their two-pass state: left 1 right 0". It flakes on main too. Alternating runs: this merge failed, failed, passed, failed; main fa204595 passed, passed, failed. The new test shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes passes.
review: none blocking; whole diff read (title_textures.rs, +184 / -11). (1) The new test does not catch the fix on this GPU. I put the PR's test onto main's production code (main's title_textures.rs plus only the new test): it passes there too, with both the shadowed and the remap case run. Main's per-entry page hashes already re-upload those levels, so the test guards the behaviour but would not have failed before. (2) The only production change left is in retire_range / retire_overlapping: they now return the retired resource pointers and remove them from STREAM_RECHECK, as forget() already does. Stale recheck entries of retired textures no longer outlive them. The change is small and correct. (3) The PR title and body still describe the earlier LAST_CONTENT clear on unmap and remap, which is no longer in the diff; worth updating so the merge commit says what it does.
performance: no measurable cost by default (a STREAM_RECHECK lock and removals only when textures are retired). Title run (release build of the head, scratch/fast-world.py fast profile, against main fa204595): exit 0, 0 crashes, 0 device removals; world entry 85.4 s against 76.8 s and 99.7 s in two main runs; peak commit 35,233 MB against 33,027 and 31,295 MB (106.7 % of the higher main run, under the 125 % limit). This run presented world frames (1.22 fps, 4 frame dumps) while both main runs showed 0 fps in the window, so it held more frame resources at the end. 90 WARN lines against 86. Not measured: a placed-texture workload that hits the retire path on purpose.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, release build for the title run, DXC 1.9.2609 via XCL_DXC_DIR. Claude Code, Claude Opus 5.5: build, suite, test-only probe on main, title run and full-diff review; this report.

<!-- greyfinch-sync:ivall/xcl:comment:7250485875 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7250485875). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T04:09:47Z. --- merge-check base: fa204595a488c60c6c5f905244f0172072c9c2a9 head: 1bcfd76b626c9d84cac881e51149fe9800e45deb merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2608 passed, 2 failed, 49 ignored; SKIPPED: 27, the usual 26 (21 no wave64 on this 32-lane GPU, 3 per-lane forms refused, 2 no heap windows) plus 1 "no build ahead (XCL_PSO_PRELOAD=0, XCL_PSO_AHEAD=0 or short of commit)"; failing: `gpu_two_pass_cache_e2e`, counted twice, with "releasing the title PSOs releases their two-pass state: left 1 right 0". It flakes on main too. Alternating runs: this merge failed, failed, passed, failed; main fa204595 passed, passed, failed. The new test `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes` passes. review: none blocking; whole diff read (`title_textures.rs`, +184 / -11). (1) The new test does not catch the fix on this GPU. I put the PR's test onto main's production code (main's `title_textures.rs` plus only the new test): it passes there too, with both the shadowed and the remap case run. Main's per-entry page hashes already re-upload those levels, so the test guards the behaviour but would not have failed before. (2) The only production change left is in `retire_range` / `retire_overlapping`: they now return the retired resource pointers and remove them from `STREAM_RECHECK`, as `forget()` already does. Stale recheck entries of retired textures no longer outlive them. The change is small and correct. (3) The PR title and body still describe the earlier `LAST_CONTENT` clear on unmap and remap, which is no longer in the diff; worth updating so the merge commit says what it does. performance: no measurable cost by default (a `STREAM_RECHECK` lock and removals only when textures are retired). Title run (release build of the head, scratch/fast-world.py fast profile, against main fa204595): exit 0, 0 crashes, 0 device removals; world entry 85.4 s against 76.8 s and 99.7 s in two main runs; peak commit 35,233 MB against 33,027 and 31,295 MB (106.7 % of the higher main run, under the 125 % limit). This run presented world frames (1.22 fps, 4 frame dumps) while both main runs showed 0 fps in the window, so it held more frame resources at the end. 90 WARN lines against 86. Not measured: a placed-texture workload that hits the retire path on purpose. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, release build for the title run, DXC 1.9.2609 via XCL_DXC_DIR. Claude Code, Claude Opus 5.5: build, suite, test-only probe on main, title run and full-diff review; this report.
andrewDoing commented 2026-11-29 06:09:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T06:09:11Z.


The remaining production change has a direct CPU regression that distinguishes the PR from current main. I ran the same test-only overlay against main fa204595 and head 1bcfd76b in separate target directories.

I inserted two partially overlapping 256×256 RGBA8 entries through the production Table::insert (one active, one shadowed), plus a disjoint third entry. Each had a stream-recheck marker with identical base frame, stage and fingerprint. Calling production retire_overlapping for one byte in their intersection removed the two overlapping table entries on both revisions. I then checked STREAM_RECHECK immediately, before a later frame could prune it:

Revision Shadowed marker Active marker Disjoint marker
main retained retained unchanged
PR removed removed unchanged

The cleanup assertion failed on main and passed on the PR. No GPU submission was required; these entries used independent backing. This is a test of retirement metadata, separate from tile contents, page hashes and subsequent sampling. It would supplement the existing GPU regression with an assertion that fails when the current production diff is reverted. OpenAI Codex prepared and ran the fixture and drafted this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7251679977 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7251679977). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-29T06:09:11Z. --- The remaining production change has a direct CPU regression that distinguishes the PR from current main. I ran the same test-only overlay against main fa204595 and head 1bcfd76b in separate target directories. I inserted two partially overlapping 256×256 RGBA8 entries through the production Table::insert (one active, one shadowed), plus a disjoint third entry. Each had a stream-recheck marker with identical base frame, stage and fingerprint. Calling production retire_overlapping for one byte in their intersection removed the two overlapping table entries on both revisions. I then checked STREAM_RECHECK immediately, before a later frame could prune it: | Revision | Shadowed marker | Active marker | Disjoint marker | |---|---|---|---| | main | retained | retained | unchanged | | PR | removed | removed | unchanged | The cleanup assertion failed on main and passed on the PR. No GPU submission was required; these entries used independent backing. This is a test of retirement metadata, separate from tile contents, page hashes and subsequent sampling. It would supplement the existing GPU regression with an assertion that fails when the current production diff is reverted. OpenAI Codex prepared and ran the fixture and drafted this comment.
throny commented 2026-11-29 08:23:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:23:30Z.


merge-check claim
head: 1bcfd76b62

<!-- greyfinch-sync:ivall/xcl:comment:7253074176 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7253074176). Originally posted by [throny](https://github.com/throny) on 2026-11-29T08:23:30Z. --- merge-check claim head: 1bcfd76b626c9d84cac881e51149fe9800e45deb
throny commented 2026-11-29 08:40:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:40:58Z.


merge-check
base: d8bd9a38
head: 1bcfd76b62
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at d8bd9a38: 2618 passed, 0 failed, 49 ignored.
review: the fix the title and #2460 describe is no longer in this diff. The original commit was merged into main and later reverted there, and main has no LAST_CONTENT any more (no occurrence under crates/xcl/src at d8bd9a38); after the merge of main into this branch, what remains is the removal of retired textures from STREAM_RECHECK in retire_overlapping, plus a GPU test. From reading main, that remaining change has little effect: the recheck already drops entries whose texture left the table, and registering clears the entry when an address is used again. Also from reading, not from a run: the new test's second texture is a plain sampled one, which does not go through retire_overlapping, so the test probably passes without the change.
performance: nothing measured.
verdict: not yet: the described fix is not in the diff. Either close this as overtaken by main, or restate what the remaining change fixes on current main, with a test that fails without it.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7253262911 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7253262911). Originally posted by [throny](https://github.com/throny) on 2026-11-29T08:40:58Z. --- merge-check base: d8bd9a38 head: 1bcfd76b626c9d84cac881e51149fe9800e45deb merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at d8bd9a38: 2618 passed, 0 failed, 49 ignored. review: the fix the title and #2460 describe is no longer in this diff. The original commit was merged into main and later reverted there, and main has no `LAST_CONTENT` any more (no occurrence under crates/xcl/src at d8bd9a38); after the merge of main into this branch, what remains is the removal of retired textures from `STREAM_RECHECK` in `retire_overlapping`, plus a GPU test. From reading main, that remaining change has little effect: the recheck already drops entries whose texture left the table, and registering clears the entry when an address is used again. Also from reading, not from a run: the new test's second texture is a plain sampled one, which does not go through `retire_overlapping`, so the test probably passes without the change. performance: nothing measured. verdict: not yet: the described fix is not in the diff. Either close this as overtaken by main, or restate what the remaining change fixes on current main, with a test that fails without it. hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
futurepro62 commented 2026-11-30 02:39:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-30T02:39:48Z.


NVIDIA and AMD full-suite run of head 8bdc7e46, on its own base 3b6a91e and merged with current main 53e85fb1, to go with the reports above by fromthemoonx, since none of them covers AMD. Nothing here fails because of this PR: the failures on its base come from main and pass merged (details below). On the Radeon the lib test binary stops partway on this base and on main alike (#3488), so the AMD runs are partial. The bare-head runs come first.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests: 2708 passed, 4 failed, 47 ignored (gpu_geometry_msg_gs_done_records, msg_gs_done_emits_in_dxil, gpu_epilogue_filters_oob_triangles_and_no_store_emits, geometry_export_rejected). SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs: 138 passed, 0 failed, 20 ignored, incomplete: the xcl lib test binary stopped itself partway (exit code 0x80004005, after sparse upload preparation still failed after bounded retries), so most of its tests did not run. That stop comes from #2959 on main and is not this PR's: #3488.
  • On its base, 4 geometry tests fail on both cards (gpu_geometry_msg_gs_done_records, msg_gs_done_emits_in_dxil, gpu_epilogue_filters_oob_triangles_and_no_store_emits, geometry_export_rejected). They were fixed on main by #3411 ("fix main geometry tests"), after this base, and they pass on both cards merged with main.
  • --skip leaves out tests that fail on main 53e85fb1 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, bridged_dpp_agrees_with_hlsl_on_the_gpu (no wave64 on this card) and two_pass_binds_set_the_shared_view_heap (heap windows are opt-in, XCL_HEAP_WINDOWS=1) fail the same way; gpu::dxil::fuzz_tests stays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failed CreateComputePipelineState with E_OUTOFMEMORY on this card; they passed on this main's baseline). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs fails on main too, since #2959 (#3441). The AMD run does not set XCL_REQUIRE_GPU.
  • Merged with main 53e85fb1 (git merge --no-ff, clean, local only), same commands and skips. NVIDIA: 2780 passed, 1 failed, 47 ignored; the one failure is concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, which fails on main itself since #2369 (already reported there: https://github.com/xcl-dev/xcl/pull/2369#issuecomment-7264263758). AMD: 138 passed, 0 failed, 20 ignored, incomplete: the same #3488 stop, and before it gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form (new on main with #3263) fails the same way on bare main 53e85fb1.
  • Bare main 53e85fb1 on both cards, same commands without skips, for comparison: NVIDIA fails the skipped tests plus the #2369 test; the Radeon stops at the same place.

Not tested

  • The Radeon lib tests past the #3488 stop, 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:7267202219 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7267202219). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-30T02:39:48Z. --- NVIDIA and AMD full-suite run of head `8bdc7e46`, on its own base `3b6a91e` and merged with current `main` `53e85fb1`, to go with the reports above by fromthemoonx, since none of them covers AMD. Nothing here fails because of this PR: the failures on its base come from `main` and pass merged (details below). On the Radeon the lib test binary stops partway on this base and on `main` alike (#3488), so the AMD runs are partial. The bare-head runs come first. **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests`: **2708 passed, 4 failed, 47 ignored** (`gpu_geometry_msg_gs_done_records`, `msg_gs_done_emits_in_dxil`, `gpu_epilogue_filters_oob_triangles_and_no_store_emits`, `geometry_export_rejected`). SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`: **138 passed, 0 failed, 20 ignored, incomplete**: the `xcl` lib test binary stopped itself partway (exit code `0x80004005`, after `sparse upload preparation still failed after bounded retries`), so most of its tests did not run. That stop comes from #2959 on `main` and is not this PR's: #3488. - On its base, 4 geometry tests fail on both cards (`gpu_geometry_msg_gs_done_records`, `msg_gs_done_emits_in_dxil`, `gpu_epilogue_filters_oob_triangles_and_no_store_emits`, `geometry_export_rejected`). They were fixed on `main` by #3411 ("fix main geometry tests"), after this base, and they pass on both cards merged with `main`. - `--skip` leaves out tests that fail on main `53e85fb1` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, `bridged_dpp_agrees_with_hlsl_on_the_gpu` (no wave64 on this card) and `two_pass_binds_set_the_shared_view_heap` (heap windows are opt-in, `XCL_HEAP_WINDOWS=1`) fail the same way; `gpu::dxil::fuzz_tests` stays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failed `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card; they passed on this main's baseline). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` fails on main too, since #2959 (#3441). The AMD run does not set `XCL_REQUIRE_GPU`. - **Merged with `main` `53e85fb1`** (`git merge --no-ff`, clean, local only), same commands and skips. NVIDIA: **2780 passed, 1 failed, 47 ignored**; the one failure is `concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline`, which fails on `main` itself since #2369 (already reported there: https://github.com/xcl-dev/xcl/pull/2369#issuecomment-7264263758). AMD: **138 passed, 0 failed, 20 ignored, incomplete**: the same #3488 stop, and before it `gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form` (new on `main` with #3263) fails the same way on bare `main` `53e85fb1`. - Bare `main` `53e85fb1` on both cards, same commands without skips, for comparison: NVIDIA fails the skipped tests plus the #2369 test; the Radeon stops at the same place. **Not tested** - The Radeon lib tests past the #3488 stop, 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.
Foniass commented 2026-12-01 08:25:00 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 8bdc7e4

No open or merged PR makes the same change: on main, retire_overlapping in title_textures.rs still counts retired entries and never removes them from STREAM_RECHECK (only forget and the GPU-written path do). An earlier version of this branch was merged in a batch and reverted on main (3cc5f9b).
The diff also re-adds shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes, a GPU test for #2460 that the title and the first commit message do not cover. Please split it out or explain why it belongs here. The new CPU test exercises both the active and the shadowed retire paths and checks that a disjoint entry stays.
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:7305287845 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7305287845). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:25:00Z. --- **Triage (#1607)** – head 8bdc7e4 No open or merged PR makes the same change: on main, `retire_overlapping` in title_textures.rs still counts retired entries and never removes them from `STREAM_RECHECK` (only `forget` and the GPU-written path do). An earlier version of this branch was merged in a batch and reverted on main (3cc5f9b). The diff also re-adds `shadowed_placed_texture_reuploads_and_remaps_levels_with_unchanged_cpu_bytes`, a GPU test for #2460 that the title and the first commit message do not cover. Please split it out or explain why it belongs here. The new CPU test exercises both the active and the shadowed retire paths and checks that a disjoint entry stays. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-02 02:41:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T02:41:35Z.


Follow-up review (head c9a75a69, since 8bdc7e4, diff read, not a merge-check):

  • Unrelated #2460 GPU test bundled in: fixed. The branch is one commit on current main touching only retire_range, retire_overlapping and the new CPU test in title_textures.rs.

New: none.

Fine: retire_range returns the retired resource pointers from both the active and the shadowed loops (~292-315), and retire_overlapping collects them across the source and GPU-alias ranges and removes them from STREAM_RECHECK after releasing TEXTURES, so it never holds both locks (~1003-1033); TEXTURES_GEN is still bumped only when something was retired; the new test covers an active, a shadowed and a disjoint entry and fails on main. On main such a stale entry was already pruned at its next milestone (recheck_streamed_unwatched_at ~2459-2463), so this clears it earlier rather than fixing a wrong upload.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7333099300 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7333099300). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T02:41:35Z. --- Follow-up review (head c9a75a69, since 8bdc7e4, diff read, not a merge-check): - **Unrelated #2460 GPU test bundled in:** fixed. The branch is one commit on current `main` touching only `retire_range`, `retire_overlapping` and the new CPU test in `title_textures.rs`. New: none. Fine: `retire_range` returns the retired resource pointers from both the active and the shadowed loops (~292-315), and `retire_overlapping` collects them across the source and GPU-alias ranges and removes them from `STREAM_RECHECK` after releasing `TEXTURES`, so it never holds both locks (~1003-1033); `TEXTURES_GEN` is still bumped only when something was retired; the new test covers an active, a shadowed and a disjoint entry and fails on `main`. On `main` such a stale entry was already pruned at its next milestone (`recheck_streamed_unwatched_at` ~2459-2463), so this clears it earlier rather than fixing a wrong upload. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
stijn-boer commented 2026-12-02 18:32:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:32:29Z.


merge-check
base: c53e969602
head: c9a75a6941
verdict: not yet: the targeted retirement check passed and both workspace and retail smoke runs ended early. Retail memory behavior remains unverified.

Windows / AMD RDNA4 (native D3D12) — texture retirement and stream recheck checks on c9a75a6

Clean merge onto main at c53e969 (merge commit 6fb3e0debaff8b0973b463ceb7c5dffa73307e78). git diff --check was clean.

Setup

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332
  • Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching d3d12SDKLayers.dll, DXC 1.9.2609.5

Tested

cargo build --workspace passed. cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command.

Build Passed Failed Ignored SKIPPED notices
main 338 3 23 0
Merged PR 340 3 23 0

Counts are partial because two test processes aborted on each build.

  • Tests that failed on the PR and passed on main — none observed in comparable results.
  • New focused test — retiring_overlapping_textures_removes_stream_recheck_entries yielded 1 passed, 0 failed, 0 ignored, 0 skip notices with --test-threads=1 --show-output --nocapture.
  • Debug-layer coverage — both debug-layer E2E tests, including DRED, and uploads_start_from_each_subresources_state passed.
Shared failures and process aborts
  • fuzz_validate_and_gpu_1, fuzz_validate_and_gpu_3, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs reported failures on both builds.
  • The library and gpu_compute_e2e test processes exited with 0xc0000409 on both builds.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary> with XCL_UMA_DRIVER=mixed for title hash 2c508222.

Build Exit Frames logged Device removals logged Peak commit
main 0xc0000409 None 0 1320 MB
Merged PR, first attempt 0xc0000409 None 0 4911 MB
Merged PR, repeat from fresh data root 0xc0000409 None 0 1320 MB

The higher initial startup commit did not reproduce. These exits leave steady-state memory behavior unverified.

Diff review

The focused test verified that retired active and shadowed textures leave STREAM_RECHECK and a disjoint entry remains. Cleanup takes the stream-recheck lock after releasing the texture-table lock.

Not tested

Remaining workspace tests after the aborts, retail performance, and a long-running retail recheck-memory comparison.

AI use

Codex (GPT-6) merged and built the PR, ran the tests, compared the results with main, reviewed the diff, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7354760026 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2578#issuecomment-7354760026). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T18:32:29Z. --- merge-check base: c53e96960265a82477a9c98677afb0402e98d486 head: c9a75a694175927ab1b932d4526d87ff931671a3 verdict: not yet: the targeted retirement check passed and both workspace and retail smoke runs ended early. Retail memory behavior remains unverified. **Windows / AMD RDNA4 (native D3D12) — texture retirement and stream recheck checks on `c9a75a6`** Clean merge onto `main` at `c53e969` (merge commit `6fb3e0debaff8b0973b463ceb7c5dffa73307e78`). `git diff --check` was clean. **Setup** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 - Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching `d3d12SDKLayers.dll`, DXC 1.9.2609.5 **Tested** `cargo build --workspace` passed. `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command. | Build | Passed | Failed | Ignored | `SKIPPED` notices | |---|---:|---:|---:|---:| | `main` | 338 | 3 | 23 | 0 | | Merged PR | 340 | 3 | 23 | 0 | Counts are partial because two test processes aborted on each build. - **Tests that failed on the PR and passed on `main`** — none observed in comparable results. - **New focused test** — `retiring_overlapping_textures_removes_stream_recheck_entries` yielded 1 passed, 0 failed, 0 ignored, 0 skip notices with `--test-threads=1 --show-output --nocapture`. - **Debug-layer coverage** — both debug-layer E2E tests, including DRED, and `uploads_start_from_each_subresources_state` passed. <details><summary>Shared failures and process aborts</summary> - `fuzz_validate_and_gpu_1`, `fuzz_validate_and_gpu_3`, and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` reported failures on both builds. - The library and `gpu_compute_e2e` test processes exited with `0xc0000409` on both builds. </details> **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>` with `XCL_UMA_DRIVER=mixed` for title hash `2c508222`. | Build | Exit | Frames logged | Device removals logged | Peak commit | |---|---|---|---:|---:| | `main` | `0xc0000409` | None | 0 | 1320 MB | | Merged PR, first attempt | `0xc0000409` | None | 0 | 4911 MB | | Merged PR, repeat from fresh data root | `0xc0000409` | None | 0 | 1320 MB | The higher initial startup commit did not reproduce. These exits leave steady-state memory behavior unverified. **Diff review** The focused test verified that retired active and shadowed textures leave `STREAM_RECHECK` and a disjoint entry remains. Cleanup takes the stream-recheck lock after releasing the texture-table lock. **Not tested** Remaining workspace tests after the aborts, retail performance, and a long-running retail recheck-memory comparison. **AI use** Codex (GPT-6) merged and built the PR, ran the tests, compared the results with `main`, reviewed the diff, and drafted this report.
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/2578:upstream-pr/2578'
git switch 'upstream-pr/2578'

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