D3D12.X: a partly read-back sparse chunk is uploaded again #1730

Closed
b3IKK wants to merge 1 commit from upstream-pr/1740 into main
b3IKK commented 2026-11-24 20:06:26 +00:00 (Migrated from github.com)

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


Addresses XCL-BT-033 from #1488.

readback_ranges copies a GPU-written range into the CPU view and then sync_sent_range marked every 64-byte chunk the range touched as sent, hashing the chunk's whole content. The bytes of such a chunk that the readback did not write may be CPU writes that were never uploaded — hashing them as sent made the next before_execute skip the chunk for good: the GPU never had those bytes, and the CPU's view kept them until a later readback replaced them with the GPU's.

This marks a chunk sent only when the range covers it whole; a partly covered chunk is given a hash it cannot have, so the next submit uploads it (the GPU end gets the CPU's view, which now also holds the read-back bytes).

What is in it

  • crates/xcl/src/hle/d3d12x/sparse.rs: mark_read_back() does the per-chunk rule; State::sync_sent_range calls it; add test a_partly_read_back_chunk_is_uploaded_again (a 4-byte readback inside a chunk with a 4-byte CPU write: the chunk must be uploaded; a range covering chunks whole must not be; the page's last chunk too). Fails on main with left: [], right: [(0, 64)] — the CPU's write was dropped.

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)). The one #[ignore]d test in the module (early_commit_timing) is pre-existing.
  • cargo test -p xcl --lib sparse: 18 passed, 0 failed, 1 ignored

Regression run

main (c4d37be, clean tree, no local changes):

xcl-smoke v1
commit: c4d37bec1bb4286eb373aea963404a23f13401fa
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
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: 14618 MB

PR (294f565, clean tree, no local changes):

xcl-smoke v1
commit: 294f5655c918446b9732858a8e09f13f0ce8fdda
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: 14620 MB

Not tested

  • a title that writes a sparse window's CPU view between before_execute and a GPU readback of the same cacheline (the test drives mark_read_back 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-033 against readback_ranges/scan_page, wrote the fix and test (and confirmed it fails without the fix), rebased onto c4d37be, 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:5479466900 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T20:06:26Z. --- Addresses `XCL-BT-033` from #1488. `readback_ranges` copies a GPU-written range into the CPU view and then `sync_sent_range` marked every 64-byte chunk the range *touched* as sent, hashing the chunk's whole content. The bytes of such a chunk that the readback did not write may be CPU writes that were never uploaded — hashing them as sent made the next `before_execute` skip the chunk for good: the GPU never had those bytes, and the CPU's view kept them until a later readback replaced them with the GPU's. This marks a chunk sent only when the range covers it whole; a partly covered chunk is given a hash it cannot have, so the next submit uploads it (the GPU end gets the CPU's view, which now also holds the read-back bytes). **What is in it** - `crates/xcl/src/hle/d3d12x/sparse.rs`: `mark_read_back()` does the per-chunk rule; `State::sync_sent_range` calls it; add test `a_partly_read_back_chunk_is_uploaded_again` (a 4-byte readback inside a chunk with a 4-byte CPU write: the chunk must be uploaded; a range covering chunks whole must not be; the page's last chunk too). Fails on `main` with `left: [], right: [(0, 64)]` — the CPU's write was dropped. **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)`). The one `#[ignore]`d test in the module (`early_commit_timing`) is pre-existing. - `cargo test -p xcl --lib sparse`: 18 passed, 0 failed, 1 ignored **Regression run** main (`c4d37be`, clean tree, no local changes): ``` xcl-smoke v1 commit: c4d37bec1bb4286eb373aea963404a23f13401fa gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e 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: 14618 MB ``` PR (`294f565`, clean tree, no local changes): ``` xcl-smoke v1 commit: 294f5655c918446b9732858a8e09f13f0ce8fdda 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: 14620 MB ``` **Not tested** - a title that writes a sparse window's CPU view between `before_execute` and a GPU readback of the same cacheline (the test drives `mark_read_back` 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-033` against `readback_ranges`/`scan_page`, wrote the fix and test (and confirmed it fails without the fix), rebased onto `c4d37be`, ran the test suite and `scripts/smoke.ps1` regression runs with #677's title hashing, and drafted this PR description.
thatirishguyyy commented 2026-11-24 21:09:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thatirishguyyy on 2026-11-24T20:21:17Z.


Independent AMD check on Windows, RX 9070 XT. I cherry-picked #1740 head 36371bd onto b9b6ea6 (local 259499b).

cargo test -p xcl --release --locked --offline --lib hle::d3d12x::sparse::tests -- --nocapture --test-threads=1 returned 15 passed, 0 failed, 1 ignored. a_partly_read_back_chunk_is_uploaded_again passed. This is a focused suite result.

AI-assisted with Codex for setup, execution, and reporting.

<!-- greyfinch-sync:ivall/xcl:comment:7143415828 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7143415828). Originally posted by [thatirishguyyy](https://github.com/thatirishguyyy) on 2026-11-24T20:21:17Z. --- Independent AMD check on Windows, RX 9070 XT. I cherry-picked #1740 head `36371bd` onto `b9b6ea6` (local `259499b`). `cargo test -p xcl --release --locked --offline --lib hle::d3d12x::sparse::tests -- --nocapture --test-threads=1` returned **15 passed, 0 failed, 1 ignored**. `a_partly_read_back_chunk_is_uploaded_again` passed. This is a focused suite result. AI-assisted with Codex for setup, execution, and reporting.
b3IKK commented 2026-11-24 22:06:46 +00:00 (Migrated from github.com)

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


Rebased onto c4d37be 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:7145197801 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7145197801). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T21:38:30Z. --- Rebased onto c4d37be 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:30 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7146581632 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7146581632). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:44:05Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
JJAutoCompare commented 2026-11-25 04:10:38 +00:00 (Migrated from github.com)

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


PR #1740 compatibility verification

Tested head 294f5655c918446b9732858a8e09f13f0ce8fdda on STOR-WINLAB. The sparse read-back regression passed. The full workspace suite exited 101 with failures in the GPU library tests and the synthetic test title.

Environment
Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175. Wave range 8–32, DoublePrecisionFloatShaderOps=0, and d3d12SDKLayers.dll unavailable. Rust 1.100.0 (0ef1bc386), DXC/DXIL 1.9.2609.5, unoptimized profiles with debug info and incremental compilation disabled. The suite log confirms the real Arc A770 backend.

Tested

  • cargo build --workspace and cargo test --workspace --no-run both succeeded. All cargo test invocations used the shared Arc lock.
  • cargo test -p xcl hle::d3d12x::sparse -- --nocapture --test-threads=1 reported 15 passed, 0 failed, 1 ignored, 0 SKIPPED. The new unit test passed in both runs. It checks that a partial GPU read-back leaves the 64-byte chunk queued for one re-upload, including at the page boundary, and that a fully read-back chunk stays clean.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 reported 941 passed, 19 failed, 43 ignored over 20 result summaries, with 22 SKIPPED lines. Skip markers are excluded from GPU coverage.

Failures and skips

  • Library (18 failures) • 14 compute PSO creation errors (0x80070057), including FP64 cases, plus four result mismatches covering fused FMA, implicit sample LOD, the high half of an FP16 lane, and a pixel-shader wave reduction.
  • E2E (1 failure) • The synthetic title's RSSetDepthBiasX check produced blue where green was expected.
  • Skip markers (22) • 17 no wave64, 3 unsupported per-lane forms, 1 driver cache could not be disabled, and 1 no heap windows.

Not tested
Paired retail-title smoke runs, other GPUs or drivers, and D3D12 debug-layer behavior. No main test baseline was collected, so the suite failures establish the observed behavior at this head only.

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 pr1740-suite.log and published this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152176432 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7152176432). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:43:03Z. --- # PR #1740 compatibility verification Tested head `294f5655c918446b9732858a8e09f13f0ce8fdda` on STOR-WINLAB. The sparse read-back regression passed. The full workspace suite exited 101 with failures in the GPU library tests and the synthetic test title. **Environment** Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175. Wave range 8–32, `DoublePrecisionFloatShaderOps=0`, and `d3d12SDKLayers.dll` unavailable. Rust 1.100.0 (`0ef1bc386`), DXC/DXIL 1.9.2609.5, unoptimized profiles with debug info and incremental compilation disabled. The suite log confirms the real Arc A770 backend. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` both succeeded. All `cargo test` invocations used the shared Arc lock. - `cargo test -p xcl hle::d3d12x::sparse -- --nocapture --test-threads=1` reported **15 passed, 0 failed, 1 ignored, 0 SKIPPED**. The new unit test passed in both runs. It checks that a partial GPU read-back leaves the 64-byte chunk queued for one re-upload, including at the page boundary, and that a fully read-back chunk stays clean. - `cargo test --workspace --no-fail-fast -- --test-threads=4` reported **941 passed, 19 failed, 43 ignored** over 20 result summaries, with **22 SKIPPED lines**. Skip markers are excluded from GPU coverage. **Failures and skips** - Library (18 failures) • 14 compute PSO creation errors (`0x80070057`), including FP64 cases, plus four result mismatches covering fused FMA, implicit sample LOD, the high half of an FP16 lane, and a pixel-shader wave reduction. - E2E (1 failure) • The synthetic title's `RSSetDepthBiasX` check produced blue where green was expected. - Skip markers (22) • 17 no wave64, 3 unsupported per-lane forms, 1 driver cache could not be disabled, and 1 no heap windows. **Not tested** Paired retail-title smoke runs, other GPUs or drivers, and D3D12 debug-layer behavior. No `main` test baseline was collected, so the suite failures establish the observed behavior at this head only. **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 `pr1740-suite.log` and published this report.
thehollowedone commented 2026-11-25 11:09:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T10:50:13Z.


Independent Windows run on 294f565. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug.

cargo build --offline --locked --workspace passed. cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture finished with 960 passed, 0 failed, 43 ignored and 23 runtime skip notices included in Cargo’s counts.

I extended ensure_mapped_with_query_holes_skips_uncommitted_pages_on_readback in a scratch copy to read back 72 bytes across a page boundary on the native D3D12 adapter. The next scan queued exactly the two partially covered 64-byte chunks for upload and kept the fully covered chunk out of the queue. A second GPU readback matched all 192 bytes, including the CPU writes at both ends. With the old hash update restored, the same scan queued zero chunks and the test failed at that assertion.

cargo test --offline --locked -p xcl --lib ensure_mapped_with_query_holes_skips_uncommitted_pages_on_readback -- --nocapture --test-threads=1 passed 1/0/0 with zero fixture skips. Synthetic test coverage only. AI-assisted. Codex (GPT-6, exact variant unavailable) extended the fixture, ran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7160237736 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7160237736). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T10:50:13Z. --- Independent Windows run on [294f565](https://github.com/xcl-dev/xcl/commit/294f5655c918446b9732858a8e09f13f0ce8fdda). Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug. `cargo build --offline --locked --workspace` passed. `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture` finished with **960 passed, 0 failed, 43 ignored** and 23 runtime skip notices included in Cargo’s counts. I extended `ensure_mapped_with_query_holes_skips_uncommitted_pages_on_readback` in a scratch copy to read back 72 bytes across a page boundary on the native D3D12 adapter. The next scan queued exactly the two partially covered 64-byte chunks for upload and kept the fully covered chunk out of the queue. A second GPU readback matched all 192 bytes, including the CPU writes at both ends. With the old hash update restored, the same scan queued zero chunks and the test failed at that assertion. `cargo test --offline --locked -p xcl --lib ensure_mapped_with_query_holes_skips_uncommitted_pages_on_readback -- --nocapture --test-threads=1` passed 1/0/0 with zero fixture skips. Synthetic test coverage only. AI-assisted. Codex (GPT-6, exact variant unavailable) extended the fixture, ran the tests, and drafted this report.
Royalflamejlh commented 2026-11-25 12:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-25T11:52:22Z.


Linux (Wine + vkd3d-proton) + NVIDIA, the title, 100 s runs: the case this fixes did not come up here. In 4 runs of main with a counter added, no read-back range covered a 64-byte chunk in part. In 3 runs with #1740 merged the title ran as on main: no fault, and the last present within the range of the main runs. The one fault, in a main run, is the one #751 is for, on a path #1740 does not change.

Setup: 294f565 and #684 (e56dbc3) merged locally onto main f087b99 (local merge c5c9f58). The counting copy is main f087b99 + #684 + a counter in sync_sent_range (local 67e229e; its first run was on local 0724148, which counted only partly covered chunks). RTX 4070 12 GB (615.71.09), Ryzen 9 9950X3D, Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, VKD3D_CONFIG=ignore_shared_fence, release. Series X profile, first-run screens done once, no story progress, A pressed at 16.2 to 16.5 s in the main runs and at 16.4 to 18.5 s with #1740 (--press-a-when-ready), XCL_PSO_PRELOAD=0, WINEDEBUG=err+all,fixme-all. The two trees ran in turn.

main + counter (4 runs) #1740 (3 runs)
ranges read back 1,024 to 2,047 in 2 runs; 512 to 1,023 in the run that faulted; not counted in 1 –
chunks read back in part 0 in 4 runs –
last 2 s with a present 60.1, 82.4, 82.6, 98.2 s 82.7, 84.2, 94.1 s
faults 1 run: msvcrt.dll+0xa52b, a read with tiling::Chain::detile_level and title_textures::subresources on the stack at 58.7 s (the fault #751 is for), then the title's watchdog game+0x23cf683 at 89.3 s 0
  • The partly-covered counter logs its first hit and logged none in 4 runs; its test is the one mark_read_back (sparse.rs:369) makes. The range counter logs its 1st to 4th and then each power of two: all 11 or 12 ranges it printed per run were 64-byte aligned at both ends (for example 0x863a40000 + 0x4000). So here #1740 would give every chunk its real hash, as main does, and changes nothing on this path.
  • sparse::tests under Wine: 16 passed, 1 ignored with #1740 (a_partly_read_back_chunk_is_uploaded_again among them); 15 passed, 1 ignored on main + #684.

Not tested: the rest of the suite; Windows; AMD and Intel; runs past 100 s.

AI use: Claude Code (Claude Opus 5.5) read the change, wrote the counter, ran the title and the tests, and wrote this comment.

Posted without review by a person: the account owner was away and reads replies later.

<!-- greyfinch-sync:ivall/xcl:comment:7161615390 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7161615390). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-25T11:52:22Z. --- Linux (Wine + vkd3d-proton) + NVIDIA, the title, 100 s runs: the case this fixes did not come up here. In 4 runs of `main` with a counter added, no read-back range covered a 64-byte chunk in part. In 3 runs with #1740 merged the title ran as on `main`: no fault, and the last present within the range of the `main` runs. The one fault, in a `main` run, is the one #751 is for, on a path #1740 does not change. **Setup:** `294f565` and #684 (`e56dbc3`) merged locally onto `main` `f087b99` (local merge `c5c9f58`). The counting copy is `main` `f087b99` + #684 + a counter in `sync_sent_range` (local `67e229e`; its first run was on local `0724148`, which counted only partly covered chunks). RTX 4070 12 GB (615.71.09), Ryzen 9 9950X3D, Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, `VKD3D_CONFIG=ignore_shared_fence`, release. Series X profile, first-run screens done once, no story progress, A pressed at 16.2 to 16.5 s in the `main` runs and at 16.4 to 18.5 s with #1740 (`--press-a-when-ready`), `XCL_PSO_PRELOAD=0`, `WINEDEBUG=err+all,fixme-all`. The two trees ran in turn. | | `main` + counter (4 runs) | #1740 (3 runs) | |---|---|---| | ranges read back | 1,024 to 2,047 in 2 runs; 512 to 1,023 in the run that faulted; not counted in 1 | – | | chunks read back in part | 0 in 4 runs | – | | last 2 s with a present | 60.1, 82.4, 82.6, 98.2 s | 82.7, 84.2, 94.1 s | | faults | 1 run: `msvcrt.dll+0xa52b`, a read with `tiling::Chain::detile_level` and `title_textures::subresources` on the stack at 58.7 s (the fault #751 is for), then the title's watchdog `game+0x23cf683` at 89.3 s | 0 | - The partly-covered counter logs its first hit and logged none in 4 runs; its test is the one `mark_read_back` (`sparse.rs:369`) makes. The range counter logs its 1st to 4th and then each power of two: all 11 or 12 ranges it printed per run were 64-byte aligned at both ends (for example `0x863a40000` + `0x4000`). So here #1740 would give every chunk its real hash, as `main` does, and changes nothing on this path. - `sparse::tests` under Wine: 16 passed, 1 ignored with #1740 (`a_partly_read_back_chunk_is_uploaded_again` among them); 15 passed, 1 ignored on `main` + #684. **Not tested:** the rest of the suite; Windows; AMD and Intel; runs past 100 s. **AI use:** Claude Code (Claude Opus 5.5) read the change, wrote the counter, ran the title and the tests, and wrote this comment. Posted without review by a person: the account owner was away and reads replies later.
ClosetPie107 commented 2026-11-25 21:05:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T20:46:18Z.


Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head 294f5655c918446b9732858a8e09f13f0ce8fdda (merged cleanly onto main 6d12f58).

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::sparse: 18 passed, 0 failed, 1 ignored (0 skipped)

Combined retail sanity run (main 6d12f58 + #2068, #1771, #1740, #1256 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)

  • Completed the full 300 s (exit=0) with 0 crashes and 0 device removals (11.55 GiB peak VRAM / 0 GTT spill, 13.35 GiB peak RSS, 1,800+ frames presented, 16,442 translated draws, 4,499 dispatches, 11,257 Opus packets).

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:7174164615 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7174164615). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T20:46:18Z. --- Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head `294f5655c918446b9732858a8e09f13f0ce8fdda` (merged cleanly onto `main` `6d12f58`). **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::sparse`: **18 passed, 0 failed, 1 ignored** (0 skipped) **Combined retail sanity run** (`main` `6d12f58` + `#2068`, `#1771`, `#1740`, `#1256` 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`) - Completed the full **300 s (`exit=0`)** with **0 crashes** and **0 device removals** (`11.55 GiB` peak VRAM / 0 GTT spill, `13.35 GiB` peak RSS, `1,800+` frames presented, `16,442` translated draws, `4,499` dispatches, `11,257` Opus packets). **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:13:28 +00:00 (Migrated from github.com)

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

Review: COMMENTED


No concrete defect found. Partial 64-byte readback chunk hashing correctly forces only incompletely read-back chunks to re-upload; range/page calculations look sound. Please add end-to-end readback_ranges coverage for real partial GPU copy, including multi-page partial first/last chunks and full middle pages. Current head lacks visible Windows CI; retain the disclosed CPU-write-between-submit/readback race limitation and provide current evidence.

<!-- greyfinch-sync:ivall/xcl:review:6065064209 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#pullrequestreview-6065064209). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:13:28Z. **Review:** COMMENTED --- No concrete defect found. Partial 64-byte readback chunk hashing correctly forces only incompletely read-back chunks to re-upload; range/page calculations look sound. Please add end-to-end readback_ranges coverage for real partial GPU copy, including multi-page partial first/last chunks and full middle pages. Current head lacks visible Windows CI; retain the disclosed CPU-write-between-submit/readback race limitation and provide current evidence.
tiagonleal commented 2026-11-26 16:06:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-26T15:07:36Z.


Suite on RTX 5070 Ti (Windows 11) at 294f5655: 960 passed, 0 failed, 43 ignored; the new test passes

Tested

  • Head 294f5655c918446b9732858a8e09f13f0ce8fdda, clean detached worktree, built as is, debug. PR open and head unchanged when I started. Its merge-base with main is c4d37bec, not the current main b49be183, so this is not the tree that would merge.
  • RTX 5070 Ti 16 GB (driver 32.0.16.1742), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26300, rustc 1.100.0 (0ef1bc386 2026-11-09). NVIDIA profile for xcl.exe: shader heap 1024 MB. DXC in use: Windows SDK 1.8.2502.11.
  • cargo build --workspace: ok. cargo test --workspace --no-fail-fast -- --test-threads=4: 960 passed, 0 failed, 43 ignored. With no failure there was nothing to compare against the base.
  • 22 lines contain SKIPPED: 18 "no wave64", 3 wave32 per-lane forms refused (f16 arithmetic, f16 packed, f32 conversions), 1 heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • New test: cargo test -p xcl --lib hle::d3d12x::sparse -- --nocapture --test-threads=1: 15 passed, 0 failed, 1 ignored (early_commit_timing). a_partly_read_back_chunk_is_uploaded_again is among the passes.

Not tested

  • The retail title, AMD or Intel, a release-profile suite, Wine or Linux, a rebase onto current main. One machine, one suite run.

AI use

  • Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Sonnet 5.5) ran the builds and tests and wrote this; I checked it.
<!-- greyfinch-sync:ivall/xcl:comment:7195820351 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7195820351). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-26T15:07:36Z. --- Suite on RTX 5070 Ti (Windows 11) at `294f5655`: 960 passed, 0 failed, 43 ignored; the new test passes **Tested** - Head `294f5655c918446b9732858a8e09f13f0ce8fdda`, clean detached worktree, built as is, debug. PR open and head unchanged when I started. Its merge-base with `main` is `c4d37bec`, not the current `main` `b49be183`, so this is not the tree that would merge. - RTX 5070 Ti 16 GB (driver 32.0.16.1742), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26300, rustc 1.100.0 (0ef1bc386 2026-11-09). NVIDIA profile for xcl.exe: shader heap 1024 MB. DXC in use: Windows SDK 1.8.2502.11. - `cargo build --workspace`: ok. `cargo test --workspace --no-fail-fast -- --test-threads=4`: 960 passed, 0 failed, 43 ignored. With no failure there was nothing to compare against the base. - 22 lines contain `SKIPPED`: 18 "no wave64", 3 wave32 per-lane forms refused (f16 arithmetic, f16 packed, f32 conversions), 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - New test: `cargo test -p xcl --lib hle::d3d12x::sparse -- --nocapture --test-threads=1`: 15 passed, 0 failed, 1 ignored (`early_commit_timing`). `a_partly_read_back_chunk_is_uploaded_again` is among the passes. **Not tested** - The retail title, AMD or Intel, a release-profile suite, Wine or Linux, a rebase onto current `main`. One machine, one suite run. **AI use** - Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Sonnet 5.5) ran the builds and tests and wrote this; I checked it.
Foniass commented 2026-12-01 06:38:44 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 294f565

The problem (a partial copy-back hashing unsent CPU bytes in the same 64-byte chunk as sent) is fixed on main differently. ee3118b ("copies back never go over newer CPU writes") lands copy-backs only on chunks the CPU has not written since they were last sent. sync_sent_range is now called from just one place, a stored immediate, and only when chunk_clean(va) holds before the write, so no unsent CPU bytes can be hashed as sent.
The branch conflicts with that rewrite of sparse.rs.
Recommendation: close (superseded by main commit ee3118b).

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:7303109133 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7303109133). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:38:44Z. --- **Triage (#1607)** – head 294f565 The problem (a partial copy-back hashing unsent CPU bytes in the same 64-byte chunk as sent) is fixed on main differently. ee3118b ("copies back never go over newer CPU writes") lands copy-backs only on chunks the CPU has not written since they were last sent. `sync_sent_range` is now called from just one place, a stored immediate, and only when `chunk_clean(va)` holds before the write, so no unsent CPU bytes can be hashed as sent. The branch conflicts with that rewrite of `sparse.rs`. Recommendation: close (superseded by main commit ee3118b). 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:47:42 +00:00 (Migrated from github.com)

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


Closing as superseded: this change is already on main (ee3118b1). main ee3118b1: land_page lands copy-backs chunk by chunk and leaves CPU-changed chunks and hashes alone; sync_sent_range now only runs for immediates on a clean chunk

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:7311657031 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1740#issuecomment-7311657031). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:47:42Z. --- Closing as superseded: this change is already on `main` (ee3118b1). main ee3118b1: land_page lands copy-backs chunk by chunk and leaves CPU-changed chunks and hashes alone; sync_sent_range now only runs for immediates on a clean chunk 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!1730
No description provided.