D3D12.X: a capture copies the textures its call reads #2421

Open
madaraXor wants to merge 3 commits from upstream-pr/2431 into main
madaraXor commented 2026-11-25 18:38:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by madaraXor on 2026-11-25T18:38:02Z.


The textures of a captured call get their contents: each is copied on the GPU where the call stands and read back after the submit. Part of #675.

A copy recorded on the title's list sees the uploads of title memory that submit makes and what earlier commands of the list wrote; a read at record time or after the submit would not.

Stacked on #2430; only the top commit belongs here.

What is in it

  • hle/d3d12x/capture/textures.rs: copy_all records a CopyResource of each texture into a texture of XCL's own on the list at the call; read_back copies them to read-back buffers on a queue of XCL's own once the title's queue is past the list, and writes tex_<id>.bin (all subresources and planes in the layout of GetCopyableFootprints).
  • capture.rs, real.rs: the two calls.
  • XCL does not track resource states. The state a texture is copied from is its last transition on the list, else its use as a target, else its last transition on any list, else a shader-resource state; the manifest names which for each texture.
  • Test: the subresource and plane count of a copy (mips x slices, a 3D texture, a depth-stencil format).
  • Review fixes: a texture whose subresources are not in one known state (#2430's partial:) is not copied and goes into left_out, so no ALL_SUBRESOURCES transition is made from a state some subresource is not in (copyable). Test: a_texture_in_no_one_state_is_not_copied.

Tested

  • AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045; Ryzen 5 5600X, 16 GB; Windows 10 22H2 (19045); rustc 1.90.0; release
  • A retail title, top of the stack (on the head before the review fixes): a DrawIndexed captured in the menus with 4 textures (2 read through SRVs); replayed, its target went from the captured contents (zeros, before the draw) to the fill the draw makes.
  • Earlier, from a local branch with the same code: 156 textures of a volumetric light pass captured with nothing left out, among them the 3D R32_UINT mask the pass reads, sparse as expected (99.9 % zero words).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 5f8eb9c: 1430 passed, 6 failed, 46 ignored. The failures: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 540), hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory (#650) and the e2e tests test_title_runs_and_game_folder_is_untouched, test_title_draws_with_a_root_signature_under_the_debug_layer and test_title_runs_under_the_debug_layer_with_dred, which fail on main e1d84b7 on this machine too (its whole suite: 1416 passed, 7 failed, 46 ignored); hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory failed in this whole-suite run; it fails in the whole-suite run of main e1d84b7 on this machine too. SKIPPED: the six per-lane cases of f16_programs_on_the_gpu / f32_programs_on_the_gpu (refused), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)

Regression run

scripts/smoke.ps1, 60 s, release builds, the same title on the same day.

main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: AMD Radeon RX 6700 XT
title: 1778c2d9
seconds: 60
exit: 0x0
frames shown: 788 (PresentX 788)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15646 MB

PR:

xcl-smoke v1
commit: 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e
gpu: AMD Radeon RX 6700 XT
title: 1778c2d9
seconds: 60
exit: 0x0
frames shown: 938 (PresentX 938)
presents per 2 s (last 3): 52 55 60
device removals: 0
crashes: 0
peak commit: 17459 MB

Not tested

  • Multisampled textures (left out, listed in the manifest).
  • A texture whose state is none of the four guesses: the copy's barrier is then wrong. Not seen; the debug layer was not on in a title run.
  • Captures over XCL_CAPTURE_MAX_MB.
  • NVIDIA, Intel, RDNA3 / RDNA4; Windows 11.

AI use

  • Claude Code. Claude Fable 5.2 wrote the code, the tests and this description, and ran the tests listed above. Claude Opus 5.5 coordinated the work and ran the game checks. Claude Opus 5.5 wrote the review fixes of the last push and their tests, and ran the suites and smoke runs of this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5497041935 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431). Originally posted by [madaraXor](https://github.com/madaraXor) on 2026-11-25T18:38:02Z. --- The textures of a captured call get their contents: each is copied on the GPU where the call stands and read back after the submit. Part of #675. A copy recorded on the title's list sees the uploads of title memory that submit makes and what earlier commands of the list wrote; a read at record time or after the submit would not. Stacked on #2430; only the top commit belongs here. **What is in it** - `hle/d3d12x/capture/textures.rs`: `copy_all` records a `CopyResource` of each texture into a texture of XCL's own on the list at the call; `read_back` copies them to read-back buffers on a queue of XCL's own once the title's queue is past the list, and writes `tex_<id>.bin` (all subresources and planes in the layout of `GetCopyableFootprints`). - `capture.rs`, `real.rs`: the two calls. - XCL does not track resource states. The state a texture is copied from is its last transition on the list, else its use as a target, else its last transition on any list, else a shader-resource state; the manifest names which for each texture. - Test: the subresource and plane count of a copy (mips x slices, a 3D texture, a depth-stencil format). - Review fixes: a texture whose subresources are not in one known state (#2430's `partial:`) is not copied and goes into `left_out`, so no `ALL_SUBRESOURCES` transition is made from a state some subresource is not in (`copyable`). Test: `a_texture_in_no_one_state_is_not_copied`. **Tested** - AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045; Ryzen 5 5600X, 16 GB; Windows 10 22H2 (19045); rustc 1.90.0; release - A retail title, top of the stack (on the head before the review fixes): a DrawIndexed captured in the menus with 4 textures (2 read through SRVs); replayed, its target went from the captured contents (zeros, before the draw) to the fill the draw makes. - Earlier, from a local branch with the same code: 156 textures of a volumetric light pass captured with nothing left out, among them the 3D R32_UINT mask the pass reads, sparse as expected (99.9 % zero words). - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `5f8eb9c`: 1430 passed, 6 failed, 46 ignored. The failures: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 540), `hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory` (#650) and the e2e tests `test_title_runs_and_game_folder_is_untouched`, `test_title_draws_with_a_root_signature_under_the_debug_layer` and `test_title_runs_under_the_debug_layer_with_dred`, which fail on `main` `e1d84b7` on this machine too (its whole suite: 1416 passed, 7 failed, 46 ignored); `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory` failed in this whole-suite run; it fails in the whole-suite run of `main` `e1d84b7` on this machine too. SKIPPED: the six per-lane cases of `f16_programs_on_the_gpu` / `f32_programs_on_the_gpu` (refused), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) **Regression run** `scripts/smoke.ps1`, 60 s, release builds, the same title on the same day. main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: AMD Radeon RX 6700 XT title: 1778c2d9 seconds: 60 exit: 0x0 frames shown: 788 (PresentX 788) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15646 MB ``` PR: ``` xcl-smoke v1 commit: 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e gpu: AMD Radeon RX 6700 XT title: 1778c2d9 seconds: 60 exit: 0x0 frames shown: 938 (PresentX 938) presents per 2 s (last 3): 52 55 60 device removals: 0 crashes: 0 peak commit: 17459 MB ``` **Not tested** - Multisampled textures (left out, listed in the manifest). - A texture whose state is none of the four guesses: the copy's barrier is then wrong. Not seen; the debug layer was not on in a title run. - Captures over `XCL_CAPTURE_MAX_MB`. - NVIDIA, Intel, RDNA3 / RDNA4; Windows 11. **AI use** - Claude Code. Claude Fable 5.2 wrote the code, the tests and this description, and ran the tests listed above. Claude Opus 5.5 coordinated the work and ran the game checks. Claude Opus 5.5 wrote the review fixes of the last push and their tests, and ran the suites and smoke runs of this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
emirduran707 commented 2026-11-25 20:08:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T19:27:29Z.


Independent AMD RDNA4 (native wave64) test report on exact head 20059ab65622734ccf48be4edc99aa8633caca29 (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: 1271 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 8 hle::d3d12x::capture tests (including capture::textures::tests::a_copy_holds_every_subresource_and_plane) 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; default capture off)

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

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

Not tested

  • Live XCL_CAPTURE_DRAW capture on the retail title; 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:7172323425 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7172323425). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T19:27:29Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `20059ab65622734ccf48be4edc99aa8633caca29` (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`: **1271 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 8 `hle::d3d12x::capture` tests (including `capture::textures::tests::a_copy_holds_every_subresource_and_plane`) 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; default capture off) ``` xcl-smoke v1 commit: 20059ab65622734ccf48be4edc99aa8633caca29 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1579 (PresentX 1579) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14937 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - Live `XCL_CAPTURE_DRAW` capture on the retail title; D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
SlopTart commented 2026-11-25 20:08:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T19:46:19Z.


gpu_ suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth is gpu_promoted_uav_clear_values_pass_create_committed_resource, newly red on main since #2280 (report), unrelated to this PR.
Targeted run of the capture tests: 8 passed.

<!-- greyfinch-sync:ivall/xcl:comment:7172744795 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7172744795). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T19:46:19Z. --- `gpu_` suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth is `gpu_promoted_uav_clear_values_pass_create_committed_resource`, newly red on main since #2280 ([report](https://github.com/xcl-dev/xcl/pull/2280#issuecomment-7172066690)), unrelated to this PR. Targeted run of the capture tests: 8 passed.
DavidM1911 commented 2026-11-25 20:08:51 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7173155409 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7173155409). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:04:33Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
bmjask commented 2026-11-25 20:53:04 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Blocked by the P1 per-subresource state flaw introduced in #2430. state_of records one state per resource, then textures::snapshot transitions ALL_SUBRESOURCES through COPY_SOURCE and back using that one StateBefore. A valid partial mip/slice transition can thus make capture declare wrong states for every other subresource, causing debug-layer errors/undefined GPU state when enabled. Track per-subresource states or skip textures with unknown partial state; add a partial-state capture test. Other copy lifetime/queue ordering looked sound, but this stacked PR also lacks a clean suite/current broad validation.

<!-- greyfinch-sync:ivall/xcl:review:6064834282 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#pullrequestreview-6064834282). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:53:04Z. **Review:** COMMENTED --- Blocked by the P1 per-subresource state flaw introduced in #2430. state_of records one state per resource, then textures::snapshot transitions ALL_SUBRESOURCES through COPY_SOURCE and back using that one StateBefore. A valid partial mip/slice transition can thus make capture declare wrong states for every other subresource, causing debug-layer errors/undefined GPU state when enabled. Track per-subresource states or skip textures with unknown partial state; add a partial-state capture test. Other copy lifetime/queue ordering looked sound, but this stacked PR also lacks a clean suite/current broad validation.
madaraXor commented 2026-11-26 00:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by madaraXor on 2026-11-25T23:43:43Z.


Thanks, fixed, with #2430's per-subresource tracking.

  • copy_all no longer copies a texture whose subresources are not in one known state (copyable). It goes into left_out with the reason, so snapshot never issues an ALL_SUBRESOURCES transition from a state some subresource is not in.
  • Textures in one known state, or with no transition seen (assumed shader-resource, as before), are still copied.
  • Test: a_texture_in_no_one_state_is_not_copied.
<!-- greyfinch-sync:ivall/xcl:comment:7177965998 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7177965998). Originally posted by [madaraXor](https://github.com/madaraXor) on 2026-11-25T23:43:43Z. --- Thanks, fixed, with #2430's per-subresource tracking. - `copy_all` no longer copies a texture whose subresources are not in one known state (`copyable`). It goes into `left_out` with the reason, so `snapshot` never issues an `ALL_SUBRESOURCES` transition from a state some subresource is not in. - Textures in one known state, or with no transition seen (assumed shader-resource, as before), are still copied. - Test: `a_texture_in_no_one_state_is_not_copied`.
upipibi commented 2026-11-26 00:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T23:59:13Z.


NVIDIA test report for c01c55b (this branch contains #2430's head f6354cd): RTX 3070 8 GB (Ampere, driver 616.56), Windows 11 26100, Rust 1.100.0, debug.

cargo test -p xcl --lib -- --skip hle::xaudio2 --test-threads=4 (the hle::xaudio2 tests hang on this machine, on main too):

  • this PR c01c55b: 1301 passed, 0 failed, 26 ignored.
  • main at 08db802: 1295 passed, 0 failed, 27 ignored.
  • The same 25 SKIPPED lines on both sides (no wave64 etc.).

Lib tests only; no title run.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7178271594 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7178271594). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T23:59:13Z. --- NVIDIA test report for `c01c55b` (this branch contains #2430's head `f6354cd`): RTX 3070 8 GB (Ampere, driver 616.56), Windows 11 26100, Rust 1.100.0, debug. `cargo test -p xcl --lib -- --skip hle::xaudio2 --test-threads=4` (the `hle::xaudio2` tests hang on this machine, on `main` too): - this PR `c01c55b`: **1301 passed, 0 failed**, 26 ignored. - `main` at `08db802`: 1295 passed, 0 failed, 27 ignored. - The same 25 `SKIPPED` lines on both sides (no wave64 etc.). Lib tests only; no title run. AI-assisted (Claude Code, Claude Opus 5.5).
DavidM1911 commented 2026-11-26 03:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T02:12:31Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7180568455 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7180568455). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T02:12:31Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
upipibi commented 2026-11-26 17:43:21 +00:00 (Migrated from github.com)

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


NVIDIA re-run for 5f8eb9c (on main e1d84b7; this branch contains #2430): RTX 3070 8 GB (Ampere, driver 616.56), Windows 11, debug. Earlier I ran c01c55b (1301 passed).
cargo test -p xcl --lib capture -- --test-threads=4, 3 runs: 13 passed, 0 failed, 0 skipped each, including the new a_call_that_never_reaches_the_capture_does_not_stand_for_the_next.
Whole lib (--skip hle::xaudio2 --test-threads=4): 1302 passed, 0 failed, 26 ignored. SKIPPED: 21 no wave64, 3 per-lane forms the translator refuses, 1 needs Developer Mode.
Lib tests only; no title run.
AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:ivall/xcl:comment:7199523724 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7199523724). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T17:43:21Z. --- NVIDIA re-run for `5f8eb9c` (on `main` `e1d84b7`; this branch contains #2430): RTX 3070 8 GB (Ampere, driver 616.56), Windows 11, debug. Earlier I ran `c01c55b` (1301 passed). `cargo test -p xcl --lib capture -- --test-threads=4`, 3 runs: 13 passed, 0 failed, 0 skipped each, including the new `a_call_that_never_reaches_the_capture_does_not_stand_for_the_next`. Whole lib (`--skip hle::xaudio2 --test-threads=4`): 1302 passed, 0 failed, 26 ignored. SKIPPED: 21 no wave64, 3 per-lane forms the translator refuses, 1 needs Developer Mode. Lib tests only; no title run. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
a-DuckGod commented 2026-11-26 18:29:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by a-DuckGod on 2026-11-26T18:29:32Z.


Independent Windows 11 / NVIDIA test report on exact PR head 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e (clean detached checkout; merge-base e1d84b7d; stacked on #2430).

Tested

  • Hardware / OS / toolchain: NVIDIA GeForce RTX 3080 Ti (12 GB, wave32, mesh shaders), driver 32.0.16.2114; Intel Core i7-8700K, 32 GB RAM; Windows 11 Pro (Version Dev 29708.1003); rustc 1.100.0 (0ef1bc386 2026-11-09) (x86_64-pc-windows-msvc), Windows SDK DXC 1.8.2502.11, D3D12 debug layer installed, debug build.
  • cargo build --workspace: succeeded.
  • cargo test -p xcl --lib hle::d3d12x::capture -- --nocapture: 13 passed, 0 failed, 0 ignored, 0 skipped — including a_texture_in_no_one_state_is_not_copied and GPU test a_copy_holds_every_subresource_and_plane.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1436 passed, 0 failed, 46 ignored (including all e2e tests under the D3D12 debug layer and DRED).
  • SKIPPED GPU tests (26): 21 no wave64 (RTX 3080 Ti is 32-lane waves only), 3 per-lane #1426 refused forms (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32), 1 shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (cannot disable driver cache; Windows Developer Mode required), 1 heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Not tested

  • Release build, retail title / scripts/smoke.ps1 run, XCL_SAMPLE_* tests, live XCL_CAPTURE_DRAW capture/replay on a game, AMD / Intel / native wave64 GPUs.

AI use

  • Antigravity (Gemini 4 Neon) checked out the PR, read commit 5f8eb9cd, ran the build and tests, and drafted this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7200523235 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7200523235). Originally posted by [a-DuckGod](https://github.com/a-DuckGod) on 2026-11-26T18:29:32Z. --- Independent Windows 11 / NVIDIA test report on exact PR head `5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e` (clean detached checkout; merge-base `e1d84b7d`; stacked on #2430). **Tested** - Hardware / OS / toolchain: NVIDIA GeForce RTX 3080 Ti (12 GB, wave32, mesh shaders), driver 32.0.16.2114; Intel Core i7-8700K, 32 GB RAM; Windows 11 Pro (Version Dev 29708.1003); `rustc 1.100.0 (0ef1bc386 2026-11-09)` (`x86_64-pc-windows-msvc`), Windows SDK DXC `1.8.2502.11`, D3D12 debug layer installed, debug build. - `cargo build --workspace`: succeeded. - `cargo test -p xcl --lib hle::d3d12x::capture -- --nocapture`: **13 passed, 0 failed, 0 ignored, 0 skipped** — including `a_texture_in_no_one_state_is_not_copied` and GPU test `a_copy_holds_every_subresource_and_plane`. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **1436 passed, 0 failed, 46 ignored** (including all `e2e` tests under the D3D12 debug layer and DRED). - `SKIPPED` GPU tests (26): 21 `no wave64` (RTX 3080 Ti is 32-lane waves only), 3 per-lane #1426 refused forms (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32`), 1 `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` (cannot disable driver cache; Windows Developer Mode required), 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` (`no heap windows`). **Not tested** - Release build, retail title / `scripts/smoke.ps1` run, `XCL_SAMPLE_*` tests, live `XCL_CAPTURE_DRAW` capture/replay on a game, AMD / Intel / native wave64 GPUs. **AI use** - Antigravity (Gemini 4 Neon) checked out the PR, read commit `5f8eb9cd`, ran the build and tests, and drafted this report. I checked it before posting.
thiagocalile commented 2026-11-26 20:10:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thiagocalile on 2026-11-26T20:10:10Z.


Independent test and smoke report for head 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver 32.0.21045.29003, XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11.
  • XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- capture --test-threads=4: 13 passed, 0 failed, 0 ignored (0 skipped).

Not tested: full workspace suite, 60 s smoke run on this head, NVIDIA/Intel GPUs, or Linux/Wine.

AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.

<!-- greyfinch-sync:ivall/xcl:comment:7202374721 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7202374721). Originally posted by [thiagocalile](https://github.com/thiagocalile) on 2026-11-26T20:10:10Z. --- Independent test and smoke report for head `5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e` on an **AMD Radeon RX 6600** (8 GB VRAM, RDNA2, native wave64). **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver `32.0.21045.29003`, `XCL_ADAPTER=radeon`), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (`10.0.26200.0`), Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.8.2502.11`. - `XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- capture --test-threads=4`: **13 passed, 0 failed, 0 ignored** (`0` skipped). **Not tested:** full workspace suite, 60 s smoke run on this head, NVIDIA/Intel GPUs, or Linux/Wine. **AI use:** Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
Decodere commented 2026-11-27 02:14:03 +00:00 (Migrated from github.com)

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


Independent desktop NVIDIA verification of PR #2431 at head 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e (3 stacked commits 69e0883d -> 3d496a17 -> 5f8eb9cd, stacked with #2430; exact 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 (5f8eb9cd)

Command Result
cargo test --release -p xcl --lib a_texture_in_no_one_state_is_not_copied -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1336 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib a_copy_holds_every_subresource_and_plane -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1336 filtered out × 3 (0.20s, 0.17s, 0.17s, 0 skipped — live D3D12 readback copy on RTX 4060)
cargo test --release -p xcl --lib hle::d3d12x::capture:: -- --test-threads=1 (3 consecutive runs) 13 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.17s × 3, 0 skipped)
cargo build --release -p xcl Clean build (1m 13s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact 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 #2431 (5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e, default — XCL_CAPTURE_DRAW unset):

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

Runtime log observations (xcl.log)

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

Limits of coverage

  • Multi-subresource / multi-plane texture snapshot copying (a_copy_holds_every_subresource_and_plane), non-uniform state refusal (a_texture_in_no_one_state_is_not_copied), and the full capture test suite (hle::d3d12x::capture::, 13/13 × 3) passed live on desktop D3D12 / RTX 4060 with 0 skips.
  • The 60 s retail smoke ran with XCL_CAPTURE_DRAW unset to confirm zero default-path overhead/regression across title: 29640639 (frame-count and commit deltas vs. cached merge-base reflect single-run startup variance, not this PR); an end-to-end XCL_CAPTURE_DRAW=... disk capture during retail gameplay was not run here.

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

<!-- greyfinch-sync:ivall/xcl:comment:7207945631 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7207945631). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T02:14:03Z. --- Independent desktop NVIDIA verification of **PR #2431** at head `5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e` (`3` stacked commits `69e0883d -> 3d496a17 -> 5f8eb9cd`, stacked with `#2430`; exact 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 (`5f8eb9cd`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib a_texture_in_no_one_state_is_not_copied -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1336 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib a_copy_holds_every_subresource_and_plane -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1336 filtered out` × 3 (`0.20s`, `0.17s`, `0.17s`, `0` skipped — live D3D12 readback copy on RTX 4060) | | `cargo test --release -p xcl --lib hle::d3d12x::capture:: -- --test-threads=1` (3 consecutive runs) | `13 passed; 0 failed; 0 ignored; 1324 filtered out` × 3 (`0.17s` × 3, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 13s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact 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 #2431 (`5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e`, default — `XCL_CAPTURE_DRAW` unset): ``` xcl-smoke v1 commit: 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1596 (PresentX 1596) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14016 MB ``` ### Runtime log observations (`xcl.log`) - `9219` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19462 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14016 MB committed by the process; video memory 6115 MB local, 4683 MB non-local`. ### Limits of coverage - Multi-subresource / multi-plane texture snapshot copying (`a_copy_holds_every_subresource_and_plane`), non-uniform state refusal (`a_texture_in_no_one_state_is_not_copied`), and the full capture test suite (`hle::d3d12x::capture::`, `13/13` × 3) passed live on desktop D3D12 / RTX 4060 with `0` skips. - The 60 s retail smoke ran with `XCL_CAPTURE_DRAW` unset to confirm zero default-path overhead/regression across `title: 29640639` (frame-count and commit deltas vs. cached merge-base reflect single-run startup variance, not this PR); an end-to-end `XCL_CAPTURE_DRAW=...` disk capture during retail gameplay was not run here. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
thehollowedone commented 2026-11-27 22:02:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T22:02:03Z.


merge-check
base: 2c717a043c (main)
head: 5f8eb9cd7a
merge: clean, uncommitted trial merge; the diff also contains open parent #2430
build: cargo build --workspace --locked -> ok
tests: cargo test --workspace --locked --no-fail-fast -- --test-threads=4 -> 1,478 passed, 1 failed, 47 ignored; 25 GPU SKIPPED notices. The only failure, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, also failed on the same machine and command at clean main 2c717a04 (1,465 passed, 1 failed, 47 ignored, 25 skips). The merged branch's 13 capture tests passed. A test-only unproven_state_is_not_used_as_a_copy_source regression on this head failed 0/1 as described below.
review: Not ready on the opt-in capture path:

  1. after_execute removes and drops Pending.snaps after the first submit, but the closed list still records CopyResource to those snapshots. D3D12 permits submitting a completed list again and does not retain its recorded resources. A second submit before Reset can use a destroyed destination; a surviving destination would also need to return from COPY_SOURCE to COPY_DEST after the private readback. Keep recording-scoped snapshot ownership until Reset/release and retirement of its last submit. Discard a never-submitted capture when Reset replaces its recording; currently list_reset clears only state tracking. Add a debug-layer regression that submits the same captured list twice without Reset and another that resets it before first submission.
  2. read_back submits private work before creating its completion fence. Fence creation/signaling failure or the 30 s timeout returns and drops the allocator, readback buffers and snapshots while GPU work may still reference them. Earlier errors after the title submit have the same snapshot-lifetime problem. Create the fence before submission and retain submitted owners in a retirement record until observed completion or confirmed device removal, including error/timeout paths. Test a queue held behind a signal and released after the readback timeout.
  3. state_of guesses NON_PIXEL|PIXEL_SHADER_RESOURCE when no transition was seen, copyable accepts that guess, and snapshot writes it as StateBefore. A texture created in NON_PIXEL_SHADER_RESOURCE and read by a compute dispatch without a local transition is a concrete mismatch. The focused test below fails on this head. Copy only when the state is proven for every subresource and legal on that list; put unprovable textures in left_out. Add a compute-list debug-layer case and a split-barrier case. I did not run those GPU cases.
Focused test-only regression for finding 3 (fails on this head)
--- a/crates/xcl/src/hle/d3d12x/capture/textures.rs
+++ b/crates/xcl/src/hle/d3d12x/capture/textures.rs
@@ mod tests {
+    #[test]
+    fn unproven_state_is_not_used_as_a_copy_source() {
+        let t = super::super::manifest::Texture {
+            state: (D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE.0
+                | D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE.0) as u32,
+            state_source: "assumed (no transition seen)".into(),
+            ..Default::default()
+        };
+        assert!(copyable(&t).is_err(), "a guessed state must not become StateBefore");
+    }

cargo test -p xcl --lib unproven_state_is_not_used_as_a_copy_source --locked -- --nocapture -> 0 passed, 1 failed, 0 ignored. The test-only edit was removed after the run.

performance: Capture is opt-in; its synchronous GPU readback and up-to-2 GiB capture budget affect enabled captures. The default path's frame time was not measured here. Fixing lifetime requires bounded retirement so repeated captures do not retain GPU memory indefinitely.
verdict: not yet: repair resource ownership/state proof, add the GPU regressions, and merge #2430 first so this PR contains only its top commit.
hardware / tool and model: Windows 11 build 26300; RTX 3080 Ti 12 GB, NVIDIA 621.35; Ryzen 7 9800X3D; Rust 1.99.1 MSVC; DXC 1.8.2502.11. Codex (GPT-6.2 Sol) ran the paired suites, inspected the diff, reproduced the test-only failure and wrote this report; Codex (GPT-6.2 Astra) independently traced the GPU lifetime and state paths.

<!-- greyfinch-sync:ivall/xcl:comment:7228968635 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7228968635). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T22:02:03Z. --- merge-check base: 2c717a043c8488938179fca81da4bb9e7913a358 (`main`) head: 5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e merge: clean, uncommitted trial merge; the diff also contains open parent #2430 build: `cargo build --workspace --locked` -> ok tests: `cargo test --workspace --locked --no-fail-fast -- --test-threads=4` -> 1,478 passed, 1 failed, 47 ignored; 25 GPU `SKIPPED` notices. The only failure, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk`, also failed on the same machine and command at clean `main` `2c717a04` (1,465 passed, 1 failed, 47 ignored, 25 skips). The merged branch's 13 capture tests passed. A test-only `unproven_state_is_not_used_as_a_copy_source` regression on this head failed 0/1 as described below. review: Not ready on the opt-in capture path: 1. [`after_execute` removes and drops `Pending.snaps` after the first submit](https://github.com/xcl-dev/xcl/blob/5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e/crates/xcl/src/hle/d3d12x/capture.rs#L713-L743), but the closed list still records `CopyResource` to those snapshots. D3D12 permits submitting a completed list again and [does not retain its recorded resources](https://learn.microsoft.com/en-us/windows/win32/direct3d12/recording-command-lists-and-bundles#reference-counting). A second submit before Reset can use a destroyed destination; a surviving destination would also need to return from `COPY_SOURCE` to `COPY_DEST` after the private readback. Keep recording-scoped snapshot ownership until Reset/release *and* retirement of its last submit. Discard a never-submitted capture when Reset replaces its recording; currently `list_reset` clears only state tracking. Add a debug-layer regression that submits the same captured list twice without Reset and another that resets it before first submission. 2. [`read_back` submits private work before creating its completion fence](https://github.com/xcl-dev/xcl/blob/5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e/crates/xcl/src/hle/d3d12x/capture/textures.rs#L191-L195). Fence creation/signaling failure or the 30 s timeout returns and drops the allocator, readback buffers and snapshots while GPU work may still reference them. Earlier errors after the title submit have the same snapshot-lifetime problem. Create the fence before submission and retain submitted owners in a retirement record until observed completion or confirmed device removal, including error/timeout paths. Test a queue held behind a signal and released after the readback timeout. 3. [`state_of` guesses `NON_PIXEL|PIXEL_SHADER_RESOURCE` when no transition was seen](https://github.com/xcl-dev/xcl/blob/5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e/crates/xcl/src/hle/d3d12x/capture.rs#L438-L455), [`copyable` accepts that guess](https://github.com/xcl-dev/xcl/blob/5f8eb9cd7a5702fc5bc9a5c0cdf0339b2a06980e/crates/xcl/src/hle/d3d12x/capture/textures.rs#L66-L71), and `snapshot` writes it as `StateBefore`. A texture created in `NON_PIXEL_SHADER_RESOURCE` and read by a compute dispatch without a local transition is a concrete mismatch. The focused test below fails on this head. Copy only when the state is proven for every subresource and legal on that list; put unprovable textures in `left_out`. Add a compute-list debug-layer case and a split-barrier case. I did not run those GPU cases. <details><summary>Focused test-only regression for finding 3 (fails on this head)</summary> ```diff --- a/crates/xcl/src/hle/d3d12x/capture/textures.rs +++ b/crates/xcl/src/hle/d3d12x/capture/textures.rs @@ mod tests { + #[test] + fn unproven_state_is_not_used_as_a_copy_source() { + let t = super::super::manifest::Texture { + state: (D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE.0 + | D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE.0) as u32, + state_source: "assumed (no transition seen)".into(), + ..Default::default() + }; + assert!(copyable(&t).is_err(), "a guessed state must not become StateBefore"); + } ``` `cargo test -p xcl --lib unproven_state_is_not_used_as_a_copy_source --locked -- --nocapture` -> 0 passed, 1 failed, 0 ignored. The test-only edit was removed after the run. </details> performance: Capture is opt-in; its synchronous GPU readback and up-to-2 GiB capture budget affect enabled captures. The default path's frame time was not measured here. Fixing lifetime requires bounded retirement so repeated captures do not retain GPU memory indefinitely. verdict: not yet: repair resource ownership/state proof, add the GPU regressions, and merge #2430 first so this PR contains only its top commit. hardware / tool and model: Windows 11 build 26300; RTX 3080 Ti 12 GB, NVIDIA 621.35; Ryzen 7 9800X3D; Rust 1.99.1 MSVC; DXC 1.8.2502.11. Codex (GPT-6.2 Sol) ran the paired suites, inspected the diff, reproduced the test-only failure and wrote this report; Codex (GPT-6.2 Astra) independently traced the GPU lifetime and state paths.
Foniass commented 2026-12-01 08:03:18 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 5f8eb9c

This PR is stacked on #2430 (and #2429); only the top commit belongs here, and it shares lines with #2432-#2435 only because they are the same stack. No other PR copies a captured call's textures.
No problems found in capture/textures.rs. The copy is recorded on the title's list with transitions to and from COPY_SOURCE. The read-back runs on XCL's own queue after a fence wait on the title's queue. Textures in mixed states and multisampled textures are left out and listed.
This PR conflicts with main because of the capture.rs clash with XCL_CAPTURE_FRAME (see #2429).
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304814373 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2431#issuecomment-7304814373). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:03:18Z. --- **Triage (#1607)** – head 5f8eb9c This PR is stacked on #2430 (and #2429); only the top commit belongs here, and it shares lines with #2432-#2435 only because they are the same stack. No other PR copies a captured call's textures. No problems found in `capture/textures.rs`. The copy is recorded on the title's list with transitions to and from `COPY_SOURCE`. The read-back runs on XCL's own queue after a fence wait on the title's queue. Textures in mixed states and multisampled textures are left out and listed. This PR conflicts with main because of the `capture.rs` clash with `XCL_CAPTURE_FRAME` (see #2429). Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2431'
git switch 'upstream-pr/2431'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2431'
git switch 'upstream-pr/2431'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2431'
git switch 'main'
git merge --squash 'upstream-pr/2431'
git switch 'main'
git merge --ff-only 'upstream-pr/2431'
git switch 'main'
git merge 'upstream-pr/2431'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2421
No description provided.