D3D12.X: a shadowed texture's source change is not a pending upload #1723

Open
b3IKK wants to merge 1 commit from upstream-pr/1733 into main
b3IKK commented 2026-11-24 20:01:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T20:01:42Z.


Addresses XCL-BT-035 from #1488.

recheck_gpu_view_sources walks the active (by_res) and the shadowed textures, but recheck_source marked a changed-source texture pending for both. The upload in before_execute walks only by_res, so a shadowed texture's pending was never cleared: PENDING — the counter whose zero is the submit fast path — stayed above zero for the rest of the process, and every ExecuteCommandLists ran the full scan. A texture that comes back into use takes its pending flag from Table::insert anyway.

This passes whether the entry is active, and marks pending only for one the upload walks.

What is in it

  • crates/xcl/src/hle/d3d12x/title_textures.rs: recheck_source(e, active); the shadowed pass of recheck_gpu_view_sources passes false; add test a_shadowed_texture_source_change_does_not_count_as_pending (fails with the flag ignored: a shadowed texture has no upload to be pending for) and update the two calls in the existing a_lazily_mapped_page_in_a_gpu_view_is_its_own_source.

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, no heap windows, and cannot disable the driver cache (Windows Developer Mode is required))
  • cargo test -p xcl --lib title_textures: 14 passed, 0 failed

Regression run

main (1d027e5, clean tree, no local changes):

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

PR (44089a2, clean tree, no local changes):

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

Not tested

  • a title with shadowed placements and a changed GPU-view mapping at once (the unit test drives recheck_source directly)
  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Gemini 4 Neon: checked XCL-BT-035 against the upload walk and Table::insert, wrote the fix and test (and confirmed it fails without the flag), rebased onto 1d027e5, ran the test suite and scripts/smoke.ps1 regression runs with #677's title hashing, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5479397449 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T20:01:42Z. --- Addresses `XCL-BT-035` from #1488. `recheck_gpu_view_sources` walks the active (`by_res`) and the shadowed textures, but `recheck_source` marked a changed-source texture pending for both. The upload in `before_execute` walks only `by_res`, so a shadowed texture's `pending` was never cleared: `PENDING` — the counter whose zero is the submit fast path — stayed above zero for the rest of the process, and every `ExecuteCommandLists` ran the full scan. A texture that comes back into use takes its pending flag from `Table::insert` anyway. This passes whether the entry is active, and marks pending only for one the upload walks. **What is in it** - `crates/xcl/src/hle/d3d12x/title_textures.rs`: `recheck_source(e, active)`; the shadowed pass of `recheck_gpu_view_sources` passes `false`; add test `a_shadowed_texture_source_change_does_not_count_as_pending` (fails with the flag ignored: `a shadowed texture has no upload to be pending for`) and update the two calls in the existing `a_lazily_mapped_page_in_a_gpu_view_is_its_own_source`. **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, `no heap windows`, and `cannot disable the driver cache (Windows Developer Mode is required)`) - `cargo test -p xcl --lib title_textures`: 14 passed, 0 failed **Regression run** main (`1d027e5`, clean tree, no local changes): ``` xcl-smoke v1 commit: 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1645 (PresentX 1645) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14611 MB ``` PR (`44089a2`, clean tree, no local changes): ``` xcl-smoke v1 commit: 44089a2db11e8d50ec9cf5ccf397b629c7bceda6 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1640 (PresentX 1640) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14613 MB ``` **Not tested** - a title with shadowed placements and a changed GPU-view mapping at once (the unit test drives `recheck_source` directly) - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Gemini 4 Neon: checked `XCL-BT-035` against the upload walk and `Table::insert`, wrote the fix and test (and confirmed it fails without the flag), rebased onto `1d027e5`, ran the test suite and `scripts/smoke.ps1` regression runs with #677's title hashing, and drafted this PR description.
futurepro62 commented 2026-11-24 21:29:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:14:41Z.


Full-suite run, since this PR has no test report yet. Tested exact head e3c5085 (on its base c160d86).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, 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 -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 858 passed, 0 failed, 42 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: a_shadowed_texture_source_change_does_not_count_as_pending.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 859 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Two tests were skipped with --skip on NVIDIA. Both fail on main 7f7e768 too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns their skips into failures. heap_window_out_of_memory_falls_back_to_the_switch_form skips when XCL_HEAP_WINDOWS is unset (#1651), and shaders::tests::pso_measurement_compiles_an_exact_synthetic_record skips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not set XCL_REQUIRE_GPU, so there both just print SKIPPED.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7144670820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7144670820). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T21:14:41Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `e3c5085` (on its base `c160d86`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, 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 -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record`: **858 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `a_shadowed_texture_source_change_does_not_count_as_pending`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **859 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Two tests were skipped with `--skip` on NVIDIA. Both fail on main `7f7e768` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns their skips into failures. `heap_window_out_of_memory_falls_back_to_the_switch_form` skips when `XCL_HEAP_WINDOWS` is unset (#1651), and `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` skips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not set `XCL_REQUIRE_GPU`, so there both just print SKIPPED. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
b3IKK commented 2026-11-24 22:06:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T21:44:21Z.


Rebased onto 1d027e5 and re-ran both with the current scripts/smoke.ps1 (#677's hashed itle: line): 960 passed, 0 failed, 43 ignored.

<!-- greyfinch-sync:ivall/xcl:comment:7145323717 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7145323717). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T21:44:21Z. --- Rebased onto 1d027e5 and re-ran both with the current scripts/smoke.ps1 (#677's hashed itle: line): 960 passed, 0 failed, 43 ignored.
DavidM1911 commented 2026-11-24 23:08:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:37:48Z.


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

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

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7146458773 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7146458773). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:37:48Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. Thanks!
JJAutoCompare commented 2026-11-25 04:10:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:43:04Z.


PR #1733 verification on STOR-WINLAB

Tested the clean, detached PR head 44089a2db11e8d50ec9cf5ccf397b629c7bceda6. The shadowed-texture regression passed. The full workspace suite finished with 19 failures.

Tested

  • Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave size 8-32, DoublePrecisionFloatShaderOps=0). Host metadata lists d3d12SDKLayers.dll as absent. The focused run logged the real D3D12.X backend on the A770.
  • Rust 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL 1.9.2609.5, unoptimized profiles with debug info disabled. cargo build --workspace and cargo test --workspace --no-run succeeded. Test runs used the shared Arc lock.
  • cargo test -p xcl hle::d3d12x::title_textures::tests -- --nocapture reported 14 passed, 0 failed, 0 ignored, with one skip included in the passed count. The new regression verified that shadowed entries update their source without becoming pending and that active entries increment the pending count once. The lazy GPU-view mapping and real GPU mirror-upload tests passed. The placed-texture pixel test reported tiled tier < 2 and skipped its pixel check.
  • One run of cargo test --workspace --no-fail-fast -- --test-threads=4 exited 101. Summed across 20 harness summaries in pr1733-suite.log: 941 passed, 19 failed, 43 ignored. The new regression passed again. The log contains 22 SKIPPED lines covering 17 unavailable wave64 cases, 3 refused wave32 per-lane forms, 1 driver-cache control skip, and 1 unavailable heap-window case. Skips give no coverage. The focused pixel-test skip is separate from the 22 suite log lines.

Of the 18 library failures, 14 were compute pipeline creation errors (0x80070057), including FP64 cases. Four shader tests reported result mismatches in fused FMA, sample LOD, FP16 high-half preservation, and wave reduction. The test-title E2E failed the RSSetDepthBiasX pixel check (blue where green was expected).

Not tested

Main baseline, retail-title smoke runs, and AMD or NVIDIA adapters. Regression attribution requires a baseline comparison.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1733-suite.log and published this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152176781 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7152176781). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:43:04Z. --- # PR #1733 verification on STOR-WINLAB Tested the clean, detached PR head `44089a2db11e8d50ec9cf5ccf397b629c7bceda6`. The shadowed-texture regression passed. The full workspace suite finished with 19 failures. ## Tested - Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave size 8-32, `DoublePrecisionFloatShaderOps=0`). Host metadata lists `d3d12SDKLayers.dll` as absent. The focused run logged the real D3D12.X backend on the A770. - Rust 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL 1.9.2609.5, unoptimized profiles with debug info disabled. `cargo build --workspace` and `cargo test --workspace --no-run` succeeded. Test runs used the shared Arc lock. - `cargo test -p xcl hle::d3d12x::title_textures::tests -- --nocapture` reported 14 passed, 0 failed, 0 ignored, with one skip included in the passed count. The new regression verified that shadowed entries update their source without becoming pending and that active entries increment the pending count once. The lazy GPU-view mapping and real GPU mirror-upload tests passed. The placed-texture pixel test reported `tiled tier < 2` and skipped its pixel check. - One run of `cargo test --workspace --no-fail-fast -- --test-threads=4` exited 101. Summed across 20 harness summaries in `pr1733-suite.log`: **941 passed, 19 failed, 43 ignored**. The new regression passed again. The log contains **22 `SKIPPED ` lines** covering 17 unavailable wave64 cases, 3 refused wave32 per-lane forms, 1 driver-cache control skip, and 1 unavailable heap-window case. Skips give no coverage. The focused pixel-test skip is separate from the 22 suite log lines. Of the 18 library failures, 14 were compute pipeline creation errors (`0x80070057`), including FP64 cases. Four shader tests reported result mismatches in fused FMA, sample LOD, FP16 high-half preservation, and wave reduction. The test-title E2E failed the `RSSetDepthBiasX` pixel check (blue where green was expected). ## Not tested Main baseline, retail-title smoke runs, and AMD or NVIDIA adapters. Regression attribution requires a baseline comparison. ## AI use T3 Code / Codex (`gpt-6.2-sol`, `reasoningEffort: high`) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, `gemini-4-neon`) verified counts against `pr1733-suite.log` and published this report.
upipibi commented 2026-11-25 19:09:01 +00:00 (Migrated from github.com)

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


NVIDIA test report for 44089a2 (head as is, base 1d027e5), for #1607's NVIDIA list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, after cargo build --workspace:

  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 951 passed, 0 failed, 43 ignored. The end-to-end title tests pass.
  • main at 0829441 (not current main) on the same machine, same command: 1263 passed, 0 failed, 46 ignored (the PR's base is older, so it has fewer tests).
  • Skipped hle::xaudio2, because its tests fail or hang on this machine on main too. The PR doesn't touch it.
  • SKIPPED lines: 23: 18 no wave64 on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.

AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.

<!-- greyfinch-sync:ivall/xcl:comment:7170639606 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7170639606). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T18:14:35Z. --- NVIDIA test report for `44089a2` (head as is, base `1d027e5`), for #1607's NVIDIA list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, after `cargo build --workspace`: - `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2`: **951 passed, 0 failed, 43 ignored**. The end-to-end title tests pass. - `main` at `0829441` (not current `main`) on the same machine, same command: 1263 passed, 0 failed, 46 ignored (the PR's base is older, so it has fewer tests). - Skipped `hle::xaudio2`, because its tests fail or hang on this machine on `main` too. The PR doesn't touch it. - SKIPPED lines: 23: 18 `no wave64` on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off. AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
ClosetPie107 commented 2026-11-25 20:08:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T19:54:35Z.


Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head 44089a2db11e8d50ec9cf5ccf397b629c7bceda6 (merged cleanly onto main 2898511).

Hardware & environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton master ec207194 (3.2.0) + dxil-spirv b540c8a2 + relaxed-vtable patch (-Db_ndebug=true), DXVK v3.1.1-209, DXC 1.9.2609.5, Rust x86_64-pc-windows-gnu (debug for tests, release for retail)

Unit / GPU tests (XCL_REQUIRE_GPU=wave64, XCL_DXC_DIR, VKD3D_CONFIG=ignore_shared_fence, --test-threads=1 --nocapture)

  • hle::d3d12x::title_textures: 20 passed, 0 failed, 0 ignored (0 skipped)

Combined retail sanity run (main 2898511 + #2103, #838, #1250, #1733 merged together; XCL_DIRECT_DXIL=1, XCL_TEXTURE_LEVEL_PAGES=1, XCL_PSO_WAIT_MS=50, XCL_SPLIT_MIDLIST_WAIT=0, XCL_COHERENT_MB=1024, VKD3D_CONFIG=ignore_shared_fence, XCL_PSO_PRELOAD=0, XCL_NETWORK=0, warm PSO cache)

  • Ran 268 s with 0 device removals, 45,841 translated draws, 154,125 dispatches (+ 4,634 chained split-compute), 47,255 Opus packets (0 errors), 13.2 GiB peak VRAM (0 GTT spill), 15.1 GiB peak RSS (vs 19.3 GiB on clean main 2898511).
  • Ended at 268.4 s on the same pre-existing main 0xc0000005 TOCTOU race in title_textures::subresources (copy_nonoverlapping reading 0x793a08000) also reproduced on clean main 2898511 (161.8 s).

Not tested

  • Full workspace test suite, native Windows, or an isolated single-PR retail run (retail sanity run above was on the 4-PR batch).

AI use

  • T3 Code / Antigravity (Gemini 4 Neon) merged the PR onto main, ran the tests and combined retail run under Proton on this machine, and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7172929140 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7172929140). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T19:54:35Z. --- Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head `44089a2db11e8d50ec9cf5ccf397b629c7bceda6` (merged cleanly onto `main` `2898511`). **Hardware & environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux - Proton Experimental (`experimental-11.0-20261112`), `vkd3d-proton` `master` `ec207194` (3.2.0) + `dxil-spirv` `b540c8a2` + relaxed-vtable patch (`-Db_ndebug=true`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, Rust `x86_64-pc-windows-gnu` (debug for tests, release for retail) **Unit / GPU tests** (`XCL_REQUIRE_GPU=wave64`, `XCL_DXC_DIR`, `VKD3D_CONFIG=ignore_shared_fence`, `--test-threads=1 --nocapture`) - `hle::d3d12x::title_textures`: **20 passed, 0 failed, 0 ignored** (0 skipped) **Combined retail sanity run** (`main` `2898511` + `#2103`, `#838`, `#1250`, `#1733` merged together; `XCL_DIRECT_DXIL=1`, `XCL_TEXTURE_LEVEL_PAGES=1`, `XCL_PSO_WAIT_MS=50`, `XCL_SPLIT_MIDLIST_WAIT=0`, `XCL_COHERENT_MB=1024`, `VKD3D_CONFIG=ignore_shared_fence`, `XCL_PSO_PRELOAD=0`, `XCL_NETWORK=0`, warm PSO cache) - Ran 268 s with **0 device removals**, `45,841` translated draws, `154,125` dispatches (+ `4,634` chained split-compute), `47,255` Opus packets (0 errors), `13.2 GiB` peak VRAM (0 GTT spill), `15.1 GiB` peak RSS (vs `19.3 GiB` on clean `main` `2898511`). - Ended at `268.4 s` on the same pre-existing `main` `0xc0000005` TOCTOU race in `title_textures::subresources` (`copy_nonoverlapping` reading `0x793a08000`) also reproduced on clean `main` `2898511` (`161.8 s`). **Not tested** - Full workspace test suite, native Windows, or an isolated single-PR retail run (retail sanity run above was on the 4-PR batch). **AI use** - T3 Code / Antigravity (Gemini 4 Neon) merged the PR onto `main`, ran the tests and combined retail run under Proton on this machine, and drafted this report.
bmjask commented 2026-11-25 21:24:08 +00:00 (Migrated from github.com)

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

Review: COMMENTED


P1: source changes while exact-range shadowed texture is inactive are dropped. recheck_source(e,false) updates src without pending; Table::remove reactivates it pending only when unmapped. Exact-range siblings remain mapped, so absent unrelated write-watch event the newly active texture never uploads new source and stale data resurfaces. The claimed Table::insert pending behavior does not apply to remove reactivation. Retain inactive source-change dirtiness and promote it to pending/PENDING delta on reactivation; add exact-range shadow -> mapping change -> uncover regression.

<!-- greyfinch-sync:ivall/xcl:review:6065180014 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#pullrequestreview-6065180014). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:24:08Z. **Review:** COMMENTED --- P1: source changes while exact-range shadowed texture is inactive are dropped. recheck_source(e,false) updates src without pending; Table::remove reactivates it pending only when unmapped. Exact-range siblings remain mapped, so absent unrelated write-watch event the newly active texture never uploads new source and stale data resurfaces. The claimed Table::insert pending behavior does not apply to remove reactivation. Retain inactive source-change dirtiness and promote it to pending/PENDING delta on reactivation; add exact-range shadow -> mapping change -> uncover regression.
Foniass commented 2026-12-01 06:37:08 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 44089a2

The counter problem is real: recheck_source adds to PENDING for a shadowed entry, and Table::remove adds it again when the entry is reactivated (if e.pending { pending_delta += 1 }), so one count is never cleared. Main still has this, and mapping_changed now does the same for shadowed entries.
The fix drops the upload, not just the extra count: with active == false the entry is no longer marked pending, and the new doc comment says it "takes its upload from Table::insert when it becomes active". Uncovering goes through Table::remove, which sets pending only for unmapped entries, so a shadowed committed texture whose source changed comes back with stale contents. Main's mapping_changed documents the intended behaviour: "A shadowed one goes up whole once it is uncovered, as on a change of its source." A fix that keeps the behaviour sets e.pending for shadowed entries without touching PENDING, since reactivation counts it. The new test never reactivates an entry, and its exact PENDING assertions race with other tests that change the global counter.
Recommendation: close (bad: loses the re-upload of an uncovered texture whose source changed).

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:7303078411 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1733#issuecomment-7303078411). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:37:08Z. --- **Triage (#1607)** – head 44089a2 The counter problem is real: `recheck_source` adds to `PENDING` for a shadowed entry, and `Table::remove` adds it again when the entry is reactivated (`if e.pending { pending_delta += 1 }`), so one count is never cleared. Main still has this, and `mapping_changed` now does the same for shadowed entries. The fix drops the upload, not just the extra count: with `active == false` the entry is no longer marked pending, and the new doc comment says it "takes its upload from `Table::insert` when it becomes active". Uncovering goes through `Table::remove`, which sets `pending` only for `unmapped` entries, so a shadowed committed texture whose source changed comes back with stale contents. Main's `mapping_changed` documents the intended behaviour: "A shadowed one goes up whole once it is uncovered, as on a change of its source." A fix that keeps the behaviour sets `e.pending` for shadowed entries without touching `PENDING`, since reactivation counts it. The new test never reactivates an entry, and its exact `PENDING` assertions race with other tests that change the global counter. Recommendation: close (bad: loses the re-upload of an uncovered texture whose source changed). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

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