D3D12.X: retry uploads after lazy mip mapping failures #2460

Closed
razormontana wants to merge 1 commit from upstream-pr/2470 into main
razormontana commented 2026-11-25 19:39:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T19:39:16Z.


Part of #1773. With XCL_TEXTURE_LEVEL_PAGES=1, a sampled texture can lose a mip copy when its tiles fail to map. D3D12 drops writes to those unmapped tiles, but XCL has already cached the CPU bytes as uploaded. The next refresh that selects the texture can then skip those same bytes indefinitely.

What is in it

  • vram.rs reports whether all requested lazy mip groups have backing pages and continues mapping the other groups after a failed bind.
  • title_textures.rs keeps the backed mips in the upload batch and clears the texture's unchanged-content hash if some requested pages are missing. A later refresh retries unchanged bytes when a dirty source page or pending flag selects the texture. A static texture waits for one of those triggers even after pages become available.
  • The synthetic GPU fixture injects one mip bind failure, checks that the failed mip reads zero and another mip uploads, sets the pending flag, and verifies readback after retrying the same source bytes.

Tested

  • Windows 11 Pro 22631, Core i7-10700K, RTX 3070 8 GB (driver 617.42), Rust 1.100.0 MSVC, debug.
  • XCL_TEXTURE_SKIP_UNCHANGED=1, cargo test --offline --locked -p xcl --lib a_placed_texture_gets_the_pages_of_a_level_with_its_texels -- --nocapture --test-threads=1. With only the fixture and failure injection on 2898511, 0 passed, 1 expected failure, 0 ignored, 0 skipped. The second attempt skipped the unchanged upload and mip 0 remained unmapped (1,441,792 bytes present instead of 5,636,096 bytes).
  • Same command on clean candidate d5f6daf79b1780f64d8683337bbd1e9303880b37: 1 passed, 0 failed, 0 ignored, 0 skipped. The second attempt mapped mip 0 and read back the expected texels without any change to the CPU source. The fixture also checked that the deliberately unbacked mip read zero and that the GPU-write path mapped all levels.
  • cargo build --offline --locked --workspace succeeded in debug and release. On the exact PR head, cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output reported 1,363 passed, 0 failed and 46 ignored. There were 26 runtime SKIPPED notices for cases Cargo counted as passed.

Regression run

Both 60-second release runs used the same retail title on the RTX 3070, the Series S profile, identical starting DXIL cache contents, and XCL_DIRECT_DXIL=1 plus XCL_TEXTURE_LEVEL_PAGES=1. The head showed 778 frames at 14,645 MB peak commit. Main showed 795 frames at 14,457 MB. Each completed with zero crashes and device removals.

Main

xcl-smoke v1
commit: 2898511af1c038a2ef809719e9b6f89e5675c422
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 795 (PresentX 795)
presents per 2 s (last 3): 4 0 21
device removals: 0
crashes: 0
peak commit: 14457 MB

PR head

xcl-smoke v1
commit: d5f6daf79b1780f64d8683337bbd1e9303880b37
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 778 (PresentX 778)
presents per 2 s (last 3): 5 24 24
device removals: 0
crashes: 0
peak commit: 14645 MB

Not tested

  • Dirty-page tracking as the reselection trigger and actual adapter exhaustion and recovery. The fixture forces a bind failure and sets the pending flag for the next refresh.
  • AMD and Intel graphics, and Wine.
  • The retail smoke covers launcher stability and present counts. It did not reach world entry.

AI use

Codex GPT-6.2 investigated the mapping and upload paths, wrote the fix and fixture, ran the tests and paired smoke, and updated this description.

<!-- greyfinch-sync:ivall/xcl:issue:5497925842 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470). Originally posted by [razormontana](https://github.com/razormontana) on 2026-11-25T19:39:16Z. --- Part of #1773. With `XCL_TEXTURE_LEVEL_PAGES=1`, a sampled texture can lose a mip copy when its tiles fail to map. D3D12 drops writes to those unmapped tiles, but XCL has already cached the CPU bytes as uploaded. The next refresh that selects the texture can then skip those same bytes indefinitely. **What is in it** - `vram.rs` reports whether all requested lazy mip groups have backing pages and continues mapping the other groups after a failed bind. - `title_textures.rs` keeps the backed mips in the upload batch and clears the texture's unchanged-content hash if some requested pages are missing. A later refresh retries unchanged bytes when a dirty source page or pending flag selects the texture. A static texture waits for one of those triggers even after pages become available. - The synthetic GPU fixture injects one mip bind failure, checks that the failed mip reads zero and another mip uploads, sets the pending flag, and verifies readback after retrying the same source bytes. **Tested** - Windows 11 Pro 22631, Core i7-10700K, RTX 3070 8 GB (driver 617.42), Rust 1.100.0 MSVC, debug. - `XCL_TEXTURE_SKIP_UNCHANGED=1`, `cargo test --offline --locked -p xcl --lib a_placed_texture_gets_the_pages_of_a_level_with_its_texels -- --nocapture --test-threads=1`. With only the fixture and failure injection on `2898511`, 0 passed, 1 expected failure, 0 ignored, 0 skipped. The second attempt skipped the unchanged upload and mip 0 remained unmapped (1,441,792 bytes present instead of 5,636,096 bytes). - Same command on clean candidate `d5f6daf79b1780f64d8683337bbd1e9303880b37`: 1 passed, 0 failed, 0 ignored, 0 skipped. The second attempt mapped mip 0 and read back the expected texels without any change to the CPU source. The fixture also checked that the deliberately unbacked mip read zero and that the GPU-write path mapped all levels. - `cargo build --offline --locked --workspace` succeeded in debug and release. On the exact PR head, `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` reported 1,363 passed, 0 failed and 46 ignored. There were 26 runtime `SKIPPED` notices for cases Cargo counted as passed. **Regression run** Both 60-second release runs used the same retail title on the RTX 3070, the Series S profile, identical starting DXIL cache contents, and `XCL_DIRECT_DXIL=1` plus `XCL_TEXTURE_LEVEL_PAGES=1`. The head showed 778 frames at 14,645 MB peak commit. Main showed 795 frames at 14,457 MB. Each completed with zero crashes and device removals. Main ``` xcl-smoke v1 commit: 2898511af1c038a2ef809719e9b6f89e5675c422 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 795 (PresentX 795) presents per 2 s (last 3): 4 0 21 device removals: 0 crashes: 0 peak commit: 14457 MB ``` PR head ``` xcl-smoke v1 commit: d5f6daf79b1780f64d8683337bbd1e9303880b37 gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 778 (PresentX 778) presents per 2 s (last 3): 5 24 24 device removals: 0 crashes: 0 peak commit: 14645 MB ``` **Not tested** - Dirty-page tracking as the reselection trigger and actual adapter exhaustion and recovery. The fixture forces a bind failure and sets the pending flag for the next refresh. - AMD and Intel graphics, and Wine. - The retail smoke covers launcher stability and present counts. It did not reach world entry. **AI use** Codex GPT-6.2 investigated the mapping and upload paths, wrote the fix and fixture, ran the tests and paired smoke, and updated this description.
bmjask commented 2026-11-25 20:35:52 +00:00 (Migrated from github.com)

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

Review: COMMENTED


No concrete defect found. map_levels preserves successful groups, reports incomplete mapping, and clears LAST_CONTENT so a later selected refresh retries; current Windows CI and smoke evidence are green. Nonblocking limitation: mapping failure itself does not make the texture pending, so retry occurs only if a later dirty/pending refresh selects it. The test manually marks pending; please test/document the real selection trigger, especially that static textures do not retry merely because capacity later frees.

<!-- greyfinch-sync:ivall/xcl:review:6064609750 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#pullrequestreview-6064609750). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:35:52Z. **Review:** COMMENTED --- No concrete defect found. map_levels preserves successful groups, reports incomplete mapping, and clears LAST_CONTENT so a later selected refresh retries; current Windows CI and smoke evidence are green. Nonblocking limitation: mapping failure itself does not make the texture pending, so retry occurs only if a later dirty/pending refresh selects it. The test manually marks pending; please test/document the real selection trigger, especially that static textures do not retry merely because capacity later frees.
emirduran707 commented 2026-11-25 21:05:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T20:09:45Z.


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

Tested

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

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

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

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

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

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

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:22:01Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7173563488 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7173563488). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:22:01Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
SlopTart commented 2026-11-25 21:05:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:52:05Z.


gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.

<!-- greyfinch-sync:ivall/xcl:comment:7174296275 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7174296275). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:52:05Z. --- `gpu_` suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
thehollowedone commented 2026-11-25 22:06:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T22:04:57Z.


Independent NVIDIA check of #2470 head d5f6daf, on its original base 2898511, from a clean checkout.

Tested

  • RTX 3080 Ti / NVIDIA 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC; XCL_TEXTURE_SKIP_UNCHANGED=1.
  • cargo test --offline --locked -p xcl --lib a_placed_texture_gets_the_pages_of_a_level_with_its_texels --jobs 6 -- --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored. The test injected a failed lazy-mip bind, checked that the unmapped mip stayed zero while other mips uploaded, then reselected the same source bytes and verified all mips through GPU readback.
  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,363 passed, 0 failed, 46 ignored. The output contained 25 GPU SKIPPED notices for unsupported features; these are not GPU coverage.

I read the diff and found no concrete blocker in the retry path. On a failed requested mip mapping, map_levels returns false and the upload path clears LAST_CONTENT; a later selection can retry unchanged bytes. Successfully mapped mips still upload.

Not tested: actual VRAM exhaustion, an AMD GPU, native wave64/per-lane features skipped here, a retail title, or a rebased merge with current main. The fixture uses a controlled mapping failure, so it verifies the retry mechanism rather than real allocation pressure.

AI-assisted: Codex (GPT-6, exact variant unavailable) reviewed the change, ran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7175911743 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7175911743). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T22:04:57Z. --- Independent NVIDIA check of [#2470 head `d5f6daf`](https://github.com/xcl-dev/xcl/commit/d5f6daf79b1780f64d8683337bbd1e9303880b37), on its original base `2898511`, from a clean checkout. **Tested** - RTX 3080 Ti / NVIDIA 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC; `XCL_TEXTURE_SKIP_UNCHANGED=1`. - `cargo test --offline --locked -p xcl --lib a_placed_texture_gets_the_pages_of_a_level_with_its_texels --jobs 6 -- --test-threads=1 --nocapture`: 1 passed, 0 failed, 0 ignored. The test injected a failed lazy-mip bind, checked that the unmapped mip stayed zero while other mips uploaded, then reselected the same source bytes and verified all mips through GPU readback. - `cargo build --offline --locked --workspace`: passed. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4`: 1,363 passed, 0 failed, 46 ignored. The output contained 25 GPU `SKIPPED` notices for unsupported features; these are not GPU coverage. I read the diff and found no concrete blocker in the retry path. On a failed requested mip mapping, `map_levels` returns false and the upload path clears `LAST_CONTENT`; a later selection can retry unchanged bytes. Successfully mapped mips still upload. **Not tested:** actual VRAM exhaustion, an AMD GPU, native wave64/per-lane features skipped here, a retail title, or a rebased merge with current main. The fixture uses a controlled mapping failure, so it verifies the retry mechanism rather than real allocation pressure. AI-assisted: Codex (GPT-6, exact variant unavailable) reviewed the change, ran the tests, and drafted this report.
Ritolino commented 2026-11-26 17:08:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Ritolino on 2026-11-26T17:08:43Z.


Independent Windows 11 x64 + NVIDIA GeForce RTX 4080 (wave32) verification of #2470 head d5f6daf79b1780f64d8683337bbd1e9303880b37 merged cleanly onto current main (8b957bec):

Tested

  • Windows 11 x64, AMD Ryzen 9 7950X, NVIDIA GeForce RTX 4080 (wave32), rustc 1.100.0 (stable-x86_64-pc-windows-msvc), debug
  • cargo build --workspace: succeeded
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip blob_enumeration_sees_one_submitted_update:
    • xcl --lib: 1317 passed, 0 failed, 27 ignored, 1 filtered out
    • All 37 other workspace test targets (128 tests across integration/e2e/d3d12 targets): 128 passed, 0 failed, 20 ignored
    • Total: 1445 passed, 0 failed, 47 ignored, 1 filtered out (blob_enumeration_sees_one_submitted_update skipped due to pre-existing NTFS temp-file issue tracked in #2421).

AI use: Antigravity with Gemini 4 Neon (Medium) and Gemini 4 Hydrogen (Medium) ran the merge/build/test pass and drafted this comment; reviewed by human.

<!-- greyfinch-sync:ivall/xcl:comment:7198563829 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7198563829). Originally posted by [Ritolino](https://github.com/Ritolino) on 2026-11-26T17:08:43Z. --- Independent Windows 11 x64 + NVIDIA GeForce RTX 4080 (`wave32`) verification of `#2470` head `d5f6daf79b1780f64d8683337bbd1e9303880b37` merged cleanly onto current `main` (`8b957bec`): **Tested** - Windows 11 x64, AMD Ryzen 9 7950X, NVIDIA GeForce RTX 4080 (`wave32`), `rustc 1.100.0` (`stable-x86_64-pc-windows-msvc`), debug - `cargo build --workspace`: succeeded - `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip blob_enumeration_sees_one_submitted_update`: - `xcl --lib`: `1317 passed, 0 failed, 27 ignored, 1 filtered out` - All 37 other workspace test targets (`128` tests across integration/e2e/d3d12 targets): `128 passed, 0 failed, 20 ignored` - Total: `1445 passed, 0 failed, 47 ignored, 1 filtered out` (`blob_enumeration_sees_one_submitted_update` skipped due to pre-existing NTFS temp-file issue tracked in `#2421`). AI use: Antigravity with Gemini 4 Neon (Medium) and Gemini 4 Hydrogen (Medium) ran the merge/build/test pass and drafted this comment; reviewed by human.
throny commented 2026-11-27 19:44:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T19:44:09Z.


merge-check claim
head: d5f6daf79b

<!-- greyfinch-sync:ivall/xcl:comment:7226819716 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7226819716). Originally posted by [throny](https://github.com/throny) on 2026-11-27T19:44:09Z. --- merge-check claim head: d5f6daf79b1780f64d8683337bbd1e9303880b37
throny commented 2026-11-27 20:00:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:00:56Z.


merge-check
base: 6089122a
head: d5f6daf79b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1465 passed, 0 failed, 47 ignored (the PR extends an existing test, which ran and passed) (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: none blocking. The two other map_levels callers ignore the result, so the bool return changes nothing for them. A superseded texture now returns false, which clears its last-content mark so it uploads again once remapped. Not blocking, from the thread: a retry happens only when the texture is selected again.
performance: only with XCL_TEXTURE_LEVEL_PAGES=1 (off by default); the hook in bind_range is test-only (reasoned).
verdict: safe to merge
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:7227090491 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7227090491). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:00:56Z. --- merge-check base: 6089122a head: d5f6daf79b1780f64d8683337bbd1e9303880b37 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1465 passed, 0 failed, 47 ignored (the PR extends an existing test, which ran and passed) (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored review: none blocking. The two other map_levels callers ignore the result, so the bool return changes nothing for them. A superseded texture now returns false, which clears its last-content mark so it uploads again once remapped. Not blocking, from the thread: a retry happens only when the texture is selected again. performance: only with XCL_TEXTURE_LEVEL_PAGES=1 (off by default); the hook in bind_range is test-only (reasoned). verdict: safe to merge 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).
KOLESNiii commented 2026-11-27 23:29:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T23:29:29Z.


merge-check claim
head: d5f6daf79b

<!-- greyfinch-sync:ivall/xcl:comment:7230181379 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7230181379). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T23:29:29Z. --- merge-check claim head: d5f6daf79b1780f64d8683337bbd1e9303880b37
KOLESNiii commented 2026-11-28 00:16:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:16:13Z.


merge-check
base: 2c717a043c
head: d5f6daf79b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as six other PRs' suites, in one queued job.
review: none. Whole diff read (README, title_textures.rs upload_all/map_levels_with_texels + test, vram.rs map_levels -> bool, test hook). The other two map_levels callers (title_textures.rs:472, :554) ignore the result; all behaviour is behind XCL_TEXTURE_LEVEL_PAGES=1.
performance: reasoned, not measured: default off, no change; with the switch on, a texture whose level could not get pages is re-uploaded the next time it is selected.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 79e2ad9fb85e231d5e7b89ac6e3b16d032c04a2b (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7230780821 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7230780821). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T00:16:13Z. --- merge-check base: 2c717a043c8488938179fca81da4bb9e7913a358 head: d5f6daf79b1780f64d8683337bbd1e9303880b37 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as six other PRs' suites, in one queued job. review: none. Whole diff read (README, title_textures.rs upload_all/map_levels_with_texels + test, vram.rs map_levels -> bool, test hook). The other two map_levels callers (title_textures.rs:472, :554) ignore the result; all behaviour is behind XCL_TEXTURE_LEVEL_PAGES=1. performance: reasoned, not measured: default off, no change; with the switch on, a texture whose level could not get pages is re-uploaded the next time it is selected. verdict: safe to merge hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 79e2ad9fb85e231d5e7b89ac6e3b16d032c04a2b (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
akimfomin commented 2026-11-28 01:59:48 +00:00 (Migrated from github.com)

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


AnyPS5 #27451 covers another sparse backing transition. A separate control here could use three distinct states on the same mip: uncommitted, mapped but copy pending, and ready. The deferred upload must retry on the last transition, while an explicitly invalid content state stays distinct. This is a receiving-side test suggestion rather than a claim that the two sparse implementations have the same policy.

<!-- greyfinch-sync:ivall/xcl:comment:7232056565 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7232056565). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T01:59:48Z. --- [AnyPS5 #27451](https://github.com/boykopovar/AnyPS5/pull/27451) covers another sparse backing transition. A separate control here could use three distinct states on the same mip: uncommitted, mapped but copy pending, and ready. The deferred upload must retry on the last transition, while an explicitly invalid content state stays distinct. This is a receiving-side test suggestion rather than a claim that the two sparse implementations have the same policy.
Foniass commented 2026-12-01 08:08:08 +00:00 (Migrated from github.com)

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


Triage (#1607) – head d5f6daf

Main already handles this case another way. In main's title_textures.rs upload loop, after map_levels_with_texels_in a texture with any level still without pages (vram::has_unmapped_levels, true when a bind failed) gets texture_upload::unknown(&d.known), so its next upload sends all of it and maps the levels again. That came in with b921527 (merged into main with f0e8fdd), after this PR was opened.
The PR cannot be rebased as it is: LAST_CONTENT and the upload_all code it edits are gone from main, and main's callers now use the Vec<u32> that vram::map_levels returns (the PR changes it to bool).
Recommendation: close (superseded by main commit f0e8fdd).

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:7304919559 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7304919559). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:08:08Z. --- **Triage (#1607)** – head d5f6daf Main already handles this case another way. In main's `title_textures.rs` upload loop, after `map_levels_with_texels_in` a texture with any level still without pages (`vram::has_unmapped_levels`, true when a bind failed) gets `texture_upload::unknown(&d.known)`, so its next upload sends all of it and maps the levels again. That came in with b921527 (merged into main with f0e8fdd), after this PR was opened. The PR cannot be rebased as it is: `LAST_CONTENT` and the `upload_all` code it edits are gone from main, and main's callers now use the `Vec<u32>` that `vram::map_levels` returns (the PR changes it to `bool`). Recommendation: close (superseded by main commit f0e8fdd). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:53:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:53:03Z.


Closing as superseded: this change is already on main (f0e8fdd5). main title_textures.rs: an unmapped lazy level (vram::has_unmapped_levels) calls texture_upload::unknown so the next upload sends everything again; LAST_CONTENT no longer exists

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311787059 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2470#issuecomment-7311787059). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:53:03Z. --- Closing as superseded: this change is already on `main` (f0e8fdd5). main title_textures.rs: an unmapped lazy level (vram::has_unmapped_levels) calls texture_upload::unknown so the next upload sends everything again; LAST_CONTENT no longer exists Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

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!2460
No description provided.