D3D12.X: share staging for zero-filled lazy texture mips (#1773) #2563

Closed
razormontana wants to merge 1 commit from upstream-pr/2573 into main
razormontana commented 2026-11-25 23:18:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T23:18:38Z.


Part of #1773 and #1833. Lazy texture uploads can contain several all-zero mips. The title-texture uploader now uses one zero-filled staging span for their sources, reducing the staging request while still copying every mip.

What is in it

  • title_textures.rs passes the existing lazy-level zero detection into the CPU uploader. texture.rs shares one aligned span when at least two zero sources are present, retaining the driver's footprint dimensions and each copy and transition. The reused staging span is cleared through the final row of every depth slice.
  • The planner test covers ordinary and shared offsets, full pitched clearing and requested size. For eight synthetic 1024² R8 textures, the request falls from 11,403,072 to 4,063,232 bytes, which selects 16 MiB and 4 MiB size classes for a fresh uploader. The GPU test refreshes a placed texture and verifies zero readback of a previously mapped top mip and a packed mip, with nonzero neighbors preserved.

Tested

  • Windows 11 Pro (22631.5335), Core i7-10700K, NVIDIA GeForce RTX 3070 8 GB (driver 617.42), Rust 1.100.0 MSVC. Debug workspace tests, release retail smoke.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output on 1bfa05d reported 1424 passes, 0 failures, and 46 ignored. There were 26 explicit runner skips within the pass count.
  • The focused staging planner and placed-texture refresh tests each passed 1/0/0 with zero skips. The old dense planner failed the new size assertion. Native RTX 3070 refresh cleared both previously mapped levels and preserved the nonzero neighbors byte for byte.
  • cargo build --offline --locked --release -p xcl succeeded. scripts/smoke.ps1 ran the same title offline for 60 seconds per arm with direct DXIL and matching cache seeds.

Regression run

Main

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 493 (PresentX 493)
presents per 2 s (last 3): 12 13 8
device removals: 0
crashes: 0
peak commit: 15495 MB

PR head

xcl-smoke v1
commit: 1bfa05d9214cf5f68e602233072d8786fd3c529a
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 658 (PresentX 658)
presents per 2 s (last 3): 9 0 12
device removals: 0
crashes: 0
peak commit: 14469 MB

Not tested

  • Retail staging savings and world-load timing. The fixture measures staging layout and texel correctness. It does not quantify VRAM savings. Other GPU vendors remain unmeasured.

AI use

Yes, Codex GPT-6.2 Sol implemented and independently reviewed the patch, ran the tests, and prepared this description.

<!-- greyfinch-sync:ivall/xcl:issue:5500863451 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573). Originally posted by [razormontana](https://github.com/razormontana) on 2026-11-25T23:18:38Z. --- Part of #1773 and #1833. Lazy texture uploads can contain several all-zero mips. The title-texture uploader now uses one zero-filled staging span for their sources, reducing the staging request while still copying every mip. **What is in it** - `title_textures.rs` passes the existing lazy-level zero detection into the CPU uploader. `texture.rs` shares one aligned span when at least two zero sources are present, retaining the driver's footprint dimensions and each copy and transition. The reused staging span is cleared through the final row of every depth slice. - The planner test covers ordinary and shared offsets, full pitched clearing and requested size. For eight synthetic 1024² R8 textures, the request falls from 11,403,072 to 4,063,232 bytes, which selects 16 MiB and 4 MiB size classes for a fresh uploader. The GPU test refreshes a placed texture and verifies zero readback of a previously mapped top mip and a packed mip, with nonzero neighbors preserved. **Tested** - Windows 11 Pro (22631.5335), Core i7-10700K, NVIDIA GeForce RTX 3070 8 GB (driver 617.42), Rust 1.100.0 MSVC. Debug workspace tests, release retail smoke. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` on `1bfa05d` reported 1424 passes, 0 failures, and 46 ignored. There were 26 explicit runner skips within the pass count. - The focused staging planner and placed-texture refresh tests each passed 1/0/0 with zero skips. The old dense planner failed the new size assertion. Native RTX 3070 refresh cleared both previously mapped levels and preserved the nonzero neighbors byte for byte. - `cargo build --offline --locked --release -p xcl` succeeded. `scripts/smoke.ps1` ran the same title offline for 60 seconds per arm with direct DXIL and matching cache seeds. **Regression run** Main ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 493 (PresentX 493) presents per 2 s (last 3): 12 13 8 device removals: 0 crashes: 0 peak commit: 15495 MB ``` PR head ``` xcl-smoke v1 commit: 1bfa05d9214cf5f68e602233072d8786fd3c529a gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 658 (PresentX 658) presents per 2 s (last 3): 9 0 12 device removals: 0 crashes: 0 peak commit: 14469 MB ``` **Not tested** - Retail staging savings and world-load timing. The fixture measures staging layout and texel correctness. It does not quantify VRAM savings. Other GPU vendors remain unmeasured. **AI use** Yes, Codex GPT-6.2 Sol implemented and independently reviewed the patch, ran the tests, and prepared this description.
DavidM1911 commented 2026-11-26 00:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T23:28:50Z.


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:7177617755 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7177617755). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T23:28:50Z. --- 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
xpatfussy69x commented 2026-11-26 00:05:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-26T00:02:01Z.


Test run on exact head 1bfa05d (1bfa05d9214cf5f68e602233072d8786fd3c529a, on its base e1d84b7), clean tree.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs
  • cargo test --workspace -- --test-threads=4: 1424 passed, 0 failed, 46 ignored
  • SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 (on main too)
  • cargo test -p xcl --lib shared_zero_mip_staging: 1 passed, 0 failed
  • This PR's new tests in the workspace run:
    • shared_zero_mip_staging_compacts_and_clears_the_full_span: ok

Regression run (60 s, default settings, a retail title)

main:

xcl-smoke v1
commit: 08db8020d323bf478964fcc586152cce54959cfc
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1571 (PresentX 1571)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14042 MB

this PR:

xcl-smoke v1
commit: 1bfa05d9214cf5f68e602233072d8786fd3c529a
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1639 (PresentX 1640)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14036 MB

No crash or device removal; frames 104 % of main's, peak commit 100 %. The main run is on current main (08db802), newer than this PR's base.

Not tested

  • Whether the title creates lazy textures with zero-filled mips in this run (default settings): a regression check only
  • The PR merged into current main (tested on its own base; it merges into 08db802 without conflicts)
  • AMD / native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7178321267 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7178321267). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-26T00:02:01Z. --- Test run on exact head `1bfa05d` (`1bfa05d9214cf5f68e602233072d8786fd3c529a`, on its base `e1d84b7`), clean tree. **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs - `cargo test --workspace -- --test-threads=4`: 1424 passed, 0 failed, 46 ignored - SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused `V_MUL_F16` / `V_PK_MUL_F16` / `V_CVT_F16_F32` (on `main` too) - `cargo test -p xcl --lib shared_zero_mip_staging`: 1 passed, 0 failed - This PR's new tests in the workspace run: - `shared_zero_mip_staging_compacts_and_clears_the_full_span`: ok **Regression run** (60 s, default settings, a retail title) main: ``` xcl-smoke v1 commit: 08db8020d323bf478964fcc586152cce54959cfc gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1571 (PresentX 1571) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14042 MB ``` this PR: ``` xcl-smoke v1 commit: 1bfa05d9214cf5f68e602233072d8786fd3c529a gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1639 (PresentX 1640) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14036 MB ``` No crash or device removal; frames 104 % of `main`'s, peak commit 100 %. The `main` run is on current `main` (`08db802`), newer than this PR's base. **Not tested** - Whether the title creates lazy textures with zero-filled mips in this run (default settings): a regression check only - The PR merged into current `main` (tested on its own base; it merges into `08db802` without conflicts) - AMD / native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
thehollowedone commented 2026-11-26 01:05:37 +00:00 (Migrated from github.com)

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


Independent Windows/NVIDIA check of the current clean head 1bfa05d. RTX 3080 Ti / driver 621.35, Windows 11 build 26300, rustc 1.99.1, DXC 1.8.2502.11; debug build.

Tested

  • cargo test -p xcl --lib shared_zero_mip_staging_compacts_and_clears_the_full_span -- --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored.
  • cargo test -p xcl --lib a_placed_texture_gets_the_pages_of_a_level_with_its_texels -- --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored. This exercised placed-resource refresh and GPU readback: the newly zeroed top and packed mips read back zero, while the nonzero neighboring mips retained their expected bytes. Neither focused test skipped.
  • cargo build --workspace: passed. cargo test --workspace --no-fail-fast -- --test-threads=4: 1,424 passed, 0 failed, 46 ignored; 25 explicit SKIPPED GPU notices. Both named tests passed in the workspace run too.

Not tested: a paired retail-title smoke on this machine, AMD/native wave64, retail staging allocation savings, VRAM use, or world-load time. The synthetic planner's size assertions are not a measured retail performance result.

AI use: Codex (GPT-6.2 Sol) reviewed the tests, ran the commands, and drafted this report; GPT-6.2 Astra reviewed the staging and queue-lifetime reasoning.

<!-- greyfinch-sync:ivall/xcl:comment:7178600048 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7178600048). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T00:17:21Z. --- Independent Windows/NVIDIA check of the current clean head [`1bfa05d`](https://github.com/xcl-dev/xcl/commit/1bfa05d9214cf5f68e602233072d8786fd3c529a). RTX 3080 Ti / driver 621.35, Windows 11 build 26300, rustc 1.99.1, DXC 1.8.2502.11; debug build. **Tested** - `cargo test -p xcl --lib shared_zero_mip_staging_compacts_and_clears_the_full_span -- --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored. - `cargo test -p xcl --lib a_placed_texture_gets_the_pages_of_a_level_with_its_texels -- --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored. This exercised placed-resource refresh and GPU readback: the newly zeroed top and packed mips read back zero, while the nonzero neighboring mips retained their expected bytes. Neither focused test skipped. - `cargo build --workspace`: passed. `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1,424 passed, 0 failed, 46 ignored; 25 explicit `SKIPPED` GPU notices. Both named tests passed in the workspace run too. **Not tested:** a paired retail-title smoke on this machine, AMD/native wave64, retail staging allocation savings, VRAM use, or world-load time. The synthetic planner's size assertions are not a measured retail performance result. AI use: Codex (GPT-6.2 Sol) reviewed the tests, ran the commands, and drafted this report; GPT-6.2 Astra reviewed the staging and queue-lifetime reasoning.
pickles976 commented 2026-11-26 05:05:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-26T04:42:56Z.


Wine/NVIDIA cross-check: planner test passes; the GPU fixture cannot run under stock vkd3d-proton on this host. Head 1bfa05d9214cf5f68e602233072d8786fd3c529a, Linux + Wine 11.0, vkd3d-proton 3.2.0 (2576c0b4adfae4a), NVIDIA 590.48.1, RTX 4060 Laptop GPU 8 GiB, --locked --target x86_64-pc-windows-msvc, one test thread, fresh Compiling xcl .../xcl-pr2573/... provenance, vendor masking disabled.

  • gpu::texture::tests::shared_zero_mip_staging_compacts_and_clears_the_full_span — 1/1 pass (CPU-only, 0.00 s): shared offsets, full pitched clearing and requested size all check out on this host.
  • hle::d3d12x::title_textures::tests::a_placed_texture_gets_the_pages_of_a_level_with_its_texels — aborts before the test body on stock vkd3d-proton's replaced-vtable assertion: ID3D12Fence1 – 12 PC methods, 10 internal slots under the guard, +64 stubs then Assertion failed: iface->lpVtbl == &d3d12_fence_vtbl, file ../src-vkd3d-proton/libs/vkd3d/vkd3d_private.h, line 705, exit 3. This is the known #175 infrastructure wall on Linux/Wine (the same abort shape as the GPU fixtures of #2428/#2558 here), not a failure of this PR's code: the fixture's fence-guard setup itself trips the stock library. No pass/fail claim for the placed-texture extension on this stack; the Windows RTX 3070 result in the PR description remains the only GPU coverage of it.

So on this host: staging-planner logic verified; zero-mip GPU readback unverified pending a vkd3d-proton build that tolerates replaced vtables (the #175 proposal, or the relaxed-vtable two-hunk build described in #2140). No title run; no staging-byte savings measured at retail.

Logs: .compat-xcl/logs/verify-pr2573-wine-planner.log, verify-pr2573-wine-placed.log (local). AI-assisted verification and report (OpenAI Codex).

<!-- greyfinch-sync:ivall/xcl:comment:7182838084 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7182838084). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-26T04:42:56Z. --- **Wine/NVIDIA cross-check: planner test passes; the GPU fixture cannot run under stock vkd3d-proton on this host.** Head `1bfa05d9214cf5f68e602233072d8786fd3c529a`, Linux + Wine 11.0, vkd3d-proton 3.2.0 (`2576c0b4adfae4a`), NVIDIA 590.48.1, RTX 4060 Laptop GPU 8 GiB, `--locked --target x86_64-pc-windows-msvc`, one test thread, fresh `Compiling xcl .../xcl-pr2573/...` provenance, vendor masking disabled. - `gpu::texture::tests::shared_zero_mip_staging_compacts_and_clears_the_full_span` — **1/1 pass** (CPU-only, 0.00 s): shared offsets, full pitched clearing and requested size all check out on this host. - `hle::d3d12x::title_textures::tests::a_placed_texture_gets_the_pages_of_a_level_with_its_texels` — **aborts before the test body** on stock vkd3d-proton's replaced-vtable assertion: `ID3D12Fence1 – 12 PC methods, 10 internal slots under the guard, +64 stubs` then `Assertion failed: iface->lpVtbl == &d3d12_fence_vtbl, file ../src-vkd3d-proton/libs/vkd3d/vkd3d_private.h, line 705`, exit 3. This is the known #175 infrastructure wall on Linux/Wine (the same abort shape as the GPU fixtures of #2428/#2558 here), not a failure of this PR's code: the fixture's fence-guard setup itself trips the stock library. No pass/fail claim for the placed-texture extension on this stack; the Windows RTX 3070 result in the PR description remains the only GPU coverage of it. So on this host: staging-planner logic verified; zero-mip GPU readback unverified pending a vkd3d-proton build that tolerates replaced vtables (the #175 proposal, or the relaxed-vtable two-hunk build described in #2140). No title run; no staging-byte savings measured at retail. Logs: `.compat-xcl/logs/verify-pr2573-wine-planner.log`, `verify-pr2573-wine-placed.log` (local). AI-assisted verification and report (OpenAI Codex).
pickles976 commented 2026-11-26 05:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-26T04:57:46Z.


Follow-up: the placed-texture GPU fixture now runs and passes on a relaxed diagnostic stack. My earlier comment reported the GPU leg aborting pre-body on stock vkd3d-proton's fence-vtable assertion (vkd3d_private.h:705) with no verdict possible.

Rebuilt the same exact provenance commit our stock DLL came from (2576c0b4adfae4a) with -Db_ndebug=true plus the two from_iface relaxations from #175 (local diagnostic build only), same RTX 4060 Laptop / Wine 11.0 / NVIDIA 590.48.1 host: a_placed_texture_gets_the_pages_of_a_level_with_its_texels passes 1/1 (1.16 s, 0 ignored), fresh Compiling xcl .../xcl-pr2573/... provenance.

That completes this machine's verification of the PR: staging planner 1/1 (stock stack) and the placed-texture zero-mip GPU fixture 1/1 (relaxed diagnostic stack) — both consistent with the author's Windows RTX 3070 result. The fixture exercises the shared zero-span clearing of a previously mapped top mip and a packed mip with nonzero neighbours preserved, on the real adapter. No retail staging savings measured. Log: .compat-xcl/logs/verify-pr2573-wine-placed-relaxed.log (local). AI-assisted verification and report (OpenAI Codex).

<!-- greyfinch-sync:ivall/xcl:comment:7183055511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7183055511). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-26T04:57:46Z. --- **Follow-up: the placed-texture GPU fixture now runs and passes on a relaxed diagnostic stack.** My earlier comment reported the GPU leg aborting pre-body on stock vkd3d-proton's fence-vtable assertion (`vkd3d_private.h:705`) with no verdict possible. Rebuilt the same exact provenance commit our stock DLL came from (`2576c0b4adfae4a`) with `-Db_ndebug=true` plus the two `from_iface` relaxations from #175 (local diagnostic build only), same RTX 4060 Laptop / Wine 11.0 / NVIDIA 590.48.1 host: `a_placed_texture_gets_the_pages_of_a_level_with_its_texels` **passes 1/1** (1.16 s, 0 ignored), fresh `Compiling xcl .../xcl-pr2573/...` provenance. That completes this machine's verification of the PR: staging planner 1/1 (stock stack) and the placed-texture zero-mip GPU fixture 1/1 (relaxed diagnostic stack) — both consistent with the author's Windows RTX 3070 result. The fixture exercises the shared zero-span clearing of a previously mapped top mip and a packed mip with nonzero neighbours preserved, on the real adapter. No retail staging savings measured. Log: `.compat-xcl/logs/verify-pr2573-wine-placed-relaxed.log` (local). AI-assisted verification and report (OpenAI Codex).
Decodere commented 2026-11-27 01:58:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T01:58:17Z.


Independent desktop NVIDIA verification of PR #2573 at head 1bfa05d9214cf5f68e602233072d8786fd3c529a (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 (1bfa05d9)

Command Result
cargo test --release -p xcl --lib shared_zero_mip_staging_compacts_and_clears_the_full_span -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib gpu::texture:: -- --test-threads=1 (3 consecutive runs) 16 passed; 0 failed; 0 ignored; 1309 filtered out × 3 (0.87s, 0.86s, 0.86s, 0 skipped — includes live RTX 4060 texture upload tests)
cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1 (3 consecutive runs) 19 passed; 0 failed; 0 ignored; 1306 filtered out × 3 (0.82s, 0.91s, 0.81s, 0 skipped)
cargo build --release -p xcl Clean build (1m 10s, 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 #2573 (1bfa05d9214cf5f68e602233072d8786fd3c529a):

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

Runtime log observations (xcl.log)

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

Limits of coverage

  • Shared zero-mip staging compaction and full-span clearing were verified via shared_zero_mip_staging_compacts_and_clears_the_full_span (3/3), gpu::texture:: (16/16 × 3 on RTX 4060), and hle::d3d12x::title_textures:: (19/19 × 3).
  • The 60 s retail smoke on title: 29640639 exercises live lazy texture uploads and confirms zero visual/stability regression (frame-count delta vs. cached parent reflects single-run startup variance, not this PR); peak staging savings on textures with large zero-filled mip chains were not separately profiled.

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

<!-- greyfinch-sync:ivall/xcl:comment:7207724200 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7207724200). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T01:58:17Z. --- Independent desktop NVIDIA verification of **PR #2573** at head `1bfa05d9214cf5f68e602233072d8786fd3c529a` (`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 (`1bfa05d9`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib shared_zero_mip_staging_compacts_and_clears_the_full_span -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1324 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib gpu::texture:: -- --test-threads=1` (3 consecutive runs) | `16 passed; 0 failed; 0 ignored; 1309 filtered out` × 3 (`0.87s`, `0.86s`, `0.86s`, `0` skipped — includes live RTX 4060 texture upload tests) | | `cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1` (3 consecutive runs) | `19 passed; 0 failed; 0 ignored; 1306 filtered out` × 3 (`0.82s`, `0.91s`, `0.81s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 10s`, 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 #2573 (`1bfa05d9214cf5f68e602233072d8786fd3c529a`): ``` xcl-smoke v1 commit: 1bfa05d9214cf5f68e602233072d8786fd3c529a gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1590 (PresentX 1590) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13976 MB ``` ### Runtime log observations (`xcl.log`) - `9222` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19528 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `13975 MB committed by the process; video memory 6115 MB local, 4650 MB non-local`. ### Limits of coverage - Shared zero-mip staging compaction and full-span clearing were verified via `shared_zero_mip_staging_compacts_and_clears_the_full_span` (`3/3`), `gpu::texture::` (`16/16` × 3 on RTX 4060), and `hle::d3d12x::title_textures::` (`19/19` × 3). - The 60 s retail smoke on `title: 29640639` exercises live lazy texture uploads and confirms zero visual/stability regression (frame-count delta vs. cached parent reflects single-run startup variance, not this PR); peak staging savings on textures with large zero-filled mip chains were not separately profiled. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Foniass commented 2026-12-01 08:23:56 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 1bfa05d

This change is already on main: a6dcf43 ("D3D12.X: share zero-mip upload staging") was adapted from this PR's commit 1bfa05d and adds the same shared zeroed staging span for verified-zero mips (upload_batch_with_zero_mips, StagingOffsets, clear_staging_span), the title_textures.rs zero masks and the README note, with an extra check that a zero mask matches the item's subresource count.
Recommendation: close (superseded by main commit a6dcf43).

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:7305264555 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7305264555). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:23:56Z. --- **Triage (#1607)** – head 1bfa05d This change is already on main: a6dcf43 ("D3D12.X: share zero-mip upload staging") was adapted from this PR's commit 1bfa05d and adds the same shared zeroed staging span for verified-zero mips (`upload_batch_with_zero_mips`, `StagingOffsets`, `clear_staging_span`), the `title_textures.rs` zero masks and the README note, with an extra check that a zero mask matches the item's subresource count. Recommendation: close (superseded by main commit a6dcf43). 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:54:03 +00:00 (Migrated from github.com)

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


Closing as superseded: this change is already on main (a6dcf43). a6dcf43 message says adapted from PR #2573 commit 1bfa05d; same upload_batch_with_zero_mips / shared zero staging in texture.rs + title_textures.rs + README; XCL_TEXTURE_LEVEL_PAGES exists on main (vram.rs)

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:7311811816 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2573#issuecomment-7311811816). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:54:03Z. --- Closing as superseded: this change is already on `main` (a6dcf43). a6dcf43 message says adapted from PR #2573 commit 1bfa05d; same upload_batch_with_zero_mips / shared zero staging in texture.rs + title_textures.rs + README; XCL_TEXTURE_LEVEL_PAGES exists on main (vram.rs) 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!2563
No description provided.