D3D12.X: the present copy is XCL's own work and does not look again #1066

Closed
iggyvilla wants to merge 1 commit from upstream-pr/1075 into main
iggyvilla commented 2026-11-24 11:19:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by iggyvilla on 2026-11-24T11:19:49Z.


present_now (crates/xcl/src/hle/d3d12x/present.rs) submits its copy to the swap chain with q.ExecuteCommandLists, which is XCL's own hook. So it came back into q_execute_command_lists → title_textures::refresh outside own_work. As a result, every presented frame paid a second full look at the title's memory: GetWriteWatch over every watched range, then a hash of each dirty texture. That look is only for the title's own work. The copy is now submitted as own_work, the same way XCL's texture uploads are.

Why skipping that look can't miss a write the present needs: the copy reads only the presented resource.

  • Render targets live in video memory (vram::place) and are not kept in step with title memory, so no look could bring a CPU write to them.
  • Anything else the CPU wrote since the title's last submit stays dirty: GetWriteWatch resets its bits only during a look. It is uploaded before the title's next ExecuteCommandLists, which is the first work that can read it.
  • A presented resource that is kept in step with title memory (title_textures::address knows it) still gets the look, as before.
  • The look also made the queue wait for the pages mapped since its last work (vram::before_execute). The copy now calls that itself inside own_work, as XCL's other own-work submits do, so skipping the look never skips that wait.
  • The look also ran sparse::before_execute (CPU writes into mapped sparse tiles) and recheck_gpu_view_sources. The copy skips both; the title's next ExecuteCommandLists runs them. The copy reads only the presented resource, which is either GPU-owned (vram::place, no sparse window) or kept in step (it then gets the look). That no title presents a sparse-window resource that is not kept in step is a hypothesis, not measured.

Conflicts with open PRs: #674 (triple-buffer Presenter) and #711 (draft, its 2-buffer subset) change the same q.ExecuteCommandLists line in present.rs (they move it into present_frame_on). Whichever lands second re-applies this wrapper: keep their present_frame_on and p.queue, and wrap only the ExecuteCommandLists in the own_work conditional (after vram::before_execute); the meaning is the same. No code dependency on #693, #455, #562 or #786.

What is in it

  • crates/xcl/src/hle/d3d12x/present.rs: the copy's ExecuteCommandLists runs inside title_textures::own_work unless the presented resource is kept in step, after vram::before_execute (+13/−1).
  • crates/xcl/src/hle/d3d12x/title_textures.rs: gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes now also checks that a refresh inside own_work uploads nothing, and that the next refresh uploads the write. That is the rule the change relies on. The test checks existing behaviour, so it passes without the present.rs change too. Testing the present path itself would need a window and a swap chain.

Tested

  • AMD Radeon RX 6650 XT (RDNA2), driver 32.0.21045.29003, Ryzen 7 5700X, Windows 10.0.26300, rustc 1.100.0. Debug for the tests; release for the smoke runs (with CARGO_PROFILE_RELEASE_DEBUG=1 for the profiles).

  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 0f77bf1: 724 passed, 3 failed, 41 ignored, 0 SKIPPED. The 3 failures are the ones already on main:

    • placed_title_textures_share_vram_and_preserve_pixels also fails on its own. It is the packed-mip bug that #470 fixes.
    • transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory pass on their own. In the full run they fail from PoisonError after the first failure; #673 fixes that.
  • Submit-thread profile of a retail title past the account prompt: a 20 s sample at 125 s, the same steps on both builds (taken on 1d22c03, before adding the vram::before_execute wait):

    • On main before #693 (merged as de1809c), the render thread's VirtualQuery in gpu_va was the limit. The submit thread wasn't among the two busiest threads, so this profile was taken on #693's head (f44cc79), with and without this commit. It predates the rebase onto the current main; I did not repeat it. There is no code dependency on #693:
    f44cc79 f44cc79 + this commit
    submit thread 84 % of a core 86 % of a core
    refresh reached from present_now (hash + GetWriteWatch + VirtualQuery) 26.7 % none sampled
    fps, mean of the 5 s readings 63–125 s 9.8 10.6
    • The submit thread stays saturated: it does its other looks more often instead, and the time goes to frames. These are single runs. A second pair of runs came up in another state of the title (25.3 against 27.5 fps), where the submit thread was not among the busiest, so it says nothing about this change.
    • On the main base alone (dd2ae9a against 1d22c03), one run each gave 5.8 and 7.1 fps. That is within this title's run-to-run noise.

Regression run

The title's first minute varies a lot between runs on this machine (earlier runs gave 300 to 1500 frames); these eight runs all landed in the same mode. After an unmeasured warm-up of each build, with no other build or title run on the machine, the runs alternated: head 446, main 449, main 446, head 447 frames; no device removals or crashes. The second pair is shown.

main:

xcl-smoke v1
commit: 6efdabcdaac93ce5cc123a85e85deba5d49cb294
gpu: AMD Radeon RX 6650 XT
title: retail
seconds: 60
exit: 0x0
frames shown: 446 (PresentX 452)
presents per 2 s (last 3): 52 48 0
device removals: 0
crashes: 0
peak commit: 15273 MB

This PR:

xcl-smoke v1
commit: 0f77bf18498dae6497b539db2b5ded8ed96a744d
gpu: AMD Radeon RX 6650 XT
title: retail
seconds: 60
exit: 0x0
frames shown: 447 (PresentX 452)
presents per 2 s (last 3): 52 48 0
device removals: 0
crashes: 0
peak commit: 15269 MB

Not tested

  • NVIDIA, Intel, RDNA3/4.
  • Other titles. Only one retail title, and only its first minutes (menus and account prompt).
  • A title that presents a texture its CPU writes after its last submit. The kept-in-step check covers it, but no title I have does this.
  • The submit-thread gain with this commit on main alone: there, the render thread hides it.

AI use

  • Claude Code, Claude Opus 5.5 (claude-opus-5-5): wrote the change, the test, the initial profiles, and the initial PR description.
  • Antigravity, Gemini 4 Neon: ran the full workspace test suite, isolated test reruns, and alternating 60 s regression smoke runs on the earlier head 4d0a00a, verified scripts/pr_check.py --local, and updated this description.
  • Claude Code, Claude Sonnet 5.5 (claude-sonnet-5-5): rebased the branch onto main 6efdabc, reran the suite and the smoke runs above on 0f77bf1, and updated this description.
<!-- greyfinch-sync:ivall/xcl:issue:5471148541 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075). Originally posted by [iggyvilla](https://github.com/iggyvilla) on 2026-11-24T11:19:49Z. --- `present_now` (`crates/xcl/src/hle/d3d12x/present.rs`) submits its copy to the swap chain with `q.ExecuteCommandLists`, which is XCL's own hook. So it came back into `q_execute_command_lists` → `title_textures::refresh` outside `own_work`. As a result, every presented frame paid a second full look at the title's memory: `GetWriteWatch` over every watched range, then a hash of each dirty texture. That look is only for the title's own work. The copy is now submitted as `own_work`, the same way XCL's texture uploads are. **Why skipping that look can't miss a write the present needs:** the copy reads only the presented resource. - Render targets live in video memory (`vram::place`) and are not kept in step with title memory, so no look could bring a CPU write to them. - Anything else the CPU wrote since the title's last submit stays dirty: `GetWriteWatch` resets its bits only during a look. It is uploaded before the title's next `ExecuteCommandLists`, which is the first work that can read it. - A presented resource that *is* kept in step with title memory (`title_textures::address` knows it) still gets the look, as before. - The look also made the queue wait for the pages mapped since its last work (`vram::before_execute`). The copy now calls that itself inside `own_work`, as XCL's other own-work submits do, so skipping the look never skips that wait. - The look also ran `sparse::before_execute` (CPU writes into mapped sparse tiles) and `recheck_gpu_view_sources`. The copy skips both; the title's next `ExecuteCommandLists` runs them. The copy reads only the presented resource, which is either GPU-owned (`vram::place`, no sparse window) or kept in step (it then gets the look). That no title presents a sparse-window resource that is not kept in step is a hypothesis, not measured. **Conflicts with open PRs:** #674 (triple-buffer `Presenter`) and #711 (draft, its 2-buffer subset) change the same `q.ExecuteCommandLists` line in `present.rs` (they move it into `present_frame_on`). Whichever lands second re-applies this wrapper: keep their `present_frame_on` and `p.queue`, and wrap only the `ExecuteCommandLists` in the `own_work` conditional (after `vram::before_execute`); the meaning is the same. No code dependency on #693, #455, #562 or #786. **What is in it** - `crates/xcl/src/hle/d3d12x/present.rs`: the copy's `ExecuteCommandLists` runs inside `title_textures::own_work` unless the presented resource is kept in step, after `vram::before_execute` (+13/−1). - `crates/xcl/src/hle/d3d12x/title_textures.rs`: `gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes` now also checks that a refresh inside `own_work` uploads nothing, and that the next refresh uploads the write. That is the rule the change relies on. The test checks existing behaviour, so it passes without the `present.rs` change too. Testing the present path itself would need a window and a swap chain. **Tested** - AMD Radeon RX 6650 XT (RDNA2), driver 32.0.21045.29003, Ryzen 7 5700X, Windows 10.0.26300, rustc 1.100.0. Debug for the tests; release for the smoke runs (with `CARGO_PROFILE_RELEASE_DEBUG=1` for the profiles). - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `0f77bf1`: 724 passed, 3 failed, 41 ignored, 0 SKIPPED. The 3 failures are the ones already on `main`: - `placed_title_textures_share_vram_and_preserve_pixels` also fails on its own. It is the packed-mip bug that #470 fixes. - `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory` pass on their own. In the full run they fail from `PoisonError` after the first failure; #673 fixes that. - Submit-thread profile of a retail title past the account prompt: a 20 s sample at 125 s, the same steps on both builds (taken on `1d22c03`, before adding the `vram::before_execute` wait): - On `main` before #693 (merged as de1809c), the render thread's `VirtualQuery` in `gpu_va` was the limit. The submit thread wasn't among the two busiest threads, so this profile was taken on #693's head (f44cc79), with and without this commit. It predates the rebase onto the current `main`; I did not repeat it. There is no code dependency on #693: | | f44cc79 | f44cc79 + this commit | |---|---|---| | submit thread | 84 % of a core | 86 % of a core | | `refresh` reached from `present_now` (hash + `GetWriteWatch` + `VirtualQuery`) | 26.7 % | none sampled | | fps, mean of the 5 s readings 63–125 s | 9.8 | 10.6 | - The submit thread stays saturated: it does its other looks more often instead, and the time goes to frames. These are single runs. A second pair of runs came up in another state of the title (25.3 against 27.5 fps), where the submit thread was not among the busiest, so it says nothing about this change. - On the `main` base alone (dd2ae9a against 1d22c03), one run each gave 5.8 and 7.1 fps. That is within this title's run-to-run noise. **Regression run** The title's first minute varies a lot between runs on this machine (earlier runs gave 300 to 1500 frames); these eight runs all landed in the same mode. After an unmeasured warm-up of each build, with no other build or title run on the machine, the runs alternated: head 446, `main` 449, `main` 446, head 447 frames; no device removals or crashes. The second pair is shown. `main`: ``` xcl-smoke v1 commit: 6efdabcdaac93ce5cc123a85e85deba5d49cb294 gpu: AMD Radeon RX 6650 XT title: retail seconds: 60 exit: 0x0 frames shown: 446 (PresentX 452) presents per 2 s (last 3): 52 48 0 device removals: 0 crashes: 0 peak commit: 15273 MB ``` This PR: ``` xcl-smoke v1 commit: 0f77bf18498dae6497b539db2b5ded8ed96a744d gpu: AMD Radeon RX 6650 XT title: retail seconds: 60 exit: 0x0 frames shown: 447 (PresentX 452) presents per 2 s (last 3): 52 48 0 device removals: 0 crashes: 0 peak commit: 15269 MB ``` **Not tested** - NVIDIA, Intel, RDNA3/4. - Other titles. Only one retail title, and only its first minutes (menus and account prompt). - A title that presents a texture its CPU writes after its last submit. The kept-in-step check covers it, but no title I have does this. - The submit-thread gain with this commit on `main` alone: there, the render thread hides it. **AI use** - Claude Code, Claude Opus 5.5 (`claude-opus-5-5`): wrote the change, the test, the initial profiles, and the initial PR description. - Antigravity, Gemini 4 Neon: ran the full workspace test suite, isolated test reruns, and alternating 60 s regression smoke runs on the earlier head `4d0a00a`, verified `scripts/pr_check.py --local`, and updated this description. - Claude Code, Claude Sonnet 5.5 (`claude-sonnet-5-5`): rebased the branch onto `main` `6efdabc`, reran the suite and the smoke runs above on `0f77bf1`, and updated this description.
fromthemoonx commented 2026-11-24 12:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T11:27:35Z.


NVIDIA run, since Not tested lists NVIDIA.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools (D3D12 debug layer) installed; rustc 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug
  • Exact head 0f77bf18498dae6497b539db2b5ded8ed96a744d (on its base 6efdabc), clean worktree: cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 727 passed, 0 failed, 41 ignored (lib 685 / 0 / 21)
  • Merged onto current main 47efa2e (no conflict): the same command gives 741 passed, 0 failed, 41 ignored
  • The PR adds no test, so I repeated the path it changes: the test title presents through PresentX in e2e. cargo test -p xcl --test e2e -- --test-threads=1 on the merged tree, 10 runs: 10 of 10 passed (test_title_runs_and_game_folder_is_untouched, test_title_draws_with_a_root_signature_under_the_debug_layer, and the third e2e test).
  • D3D12 debug layer: the test title's XCL_D3D12_DEBUG=1 run logs the same set of debug-layer errors and warnings on the merged tree as on main. Nothing new from submitting the present copy as own_work.
  • SKIPPED (no wave64 on this adapter): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
  • XCL_SAMPLE_* not set

Not tested

  • The saving itself: XCL's log here has write-watch timing only for the sparse windows, not for title_textures::refresh, and there's no retail title. So the second look per present going away is not measured on this machine.
  • A presented resource that is kept in step with title memory (the case that still gets the look); release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests on the machine above and wrote this report from the logs.
<!-- greyfinch-sync:ivall/xcl:comment:7130124629 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1075#issuecomment-7130124629). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-24T11:27:35Z. --- NVIDIA run, since **Not tested** lists NVIDIA. **Tested** - NVIDIA GeForce RTX 3060 12 GB (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools (D3D12 debug layer) installed; rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug - **Exact head `0f77bf18498dae6497b539db2b5ded8ed96a744d`** (on its base `6efdabc`), clean worktree: `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **727 passed, 0 failed, 41 ignored** (lib 685 / 0 / 21) - **Merged onto current `main` `47efa2e`** (no conflict): the same command gives **741 passed, 0 failed, 41 ignored** - The PR adds no test, so I repeated the path it changes: the test title presents through `PresentX` in `e2e`. `cargo test -p xcl --test e2e -- --test-threads=1` on the merged tree, 10 runs: **10 of 10 passed** (`test_title_runs_and_game_folder_is_untouched`, `test_title_draws_with_a_root_signature_under_the_debug_layer`, and the third e2e test). - D3D12 debug layer: the test title's `XCL_D3D12_DEBUG=1` run logs the same set of debug-layer errors and warnings on the merged tree as on `main`. Nothing new from submitting the present copy as `own_work`. - SKIPPED (no wave64 on this adapter): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` - `XCL_SAMPLE_*` not set **Not tested** - The saving itself: XCL's log here has write-watch timing only for the sparse windows, not for `title_textures::refresh`, and there's no retail title. So the second look per present going away is not measured on this machine. - A presented resource that is kept in step with title memory (the case that still gets the look); release build. **AI use** - Claude Code (Claude Opus 5.5) ran the builds and tests on the machine above and wrote this report from the logs.
thehollowedone commented 2026-11-24 12:05:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-24T11:45:48Z.


I measured the actual windowed PresentX copy at 0f77bf1 on Windows 11 with an RTX 3080 Ti (621.35) and Graphics Tools. I used the stock synthetic title with a scratch counter after the refresh guard and another after the write-watch scan.

For its direct PresentX copy from a DEFAULT render target, restoring the old submit path in the same binary gave one refresh and one write-watch scan. The PR path gave zero of each. Both runs passed the debug-layer e2e test and logged the same D3D12 message IDs and counts. Neither reported device removal.

This measures scan count for the synthetic render target. It leaves CPU time and the path for textures kept in step with title memory unmeasured. AI-assisted. Codex (GPT-6) added the scratch counters and ran the comparison.

<!-- greyfinch-sync:ivall/xcl:comment:7130514998 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1075#issuecomment-7130514998). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-24T11:45:48Z. --- I measured the actual windowed PresentX copy at [0f77bf1](https://github.com/ivall/xcl/commit/0f77bf18498dae6497b539db2b5ded8ed96a744d) on Windows 11 with an RTX 3080 Ti (621.35) and Graphics Tools. I used the stock synthetic title with a scratch counter after the refresh guard and another after the write-watch scan. For its direct PresentX copy from a DEFAULT render target, restoring the old submit path in the same binary gave one refresh and one write-watch scan. The PR path gave zero of each. Both runs passed the debug-layer e2e test and logged the same D3D12 message IDs and counts. Neither reported device removal. This measures scan count for the synthetic render target. It leaves CPU time and the path for textures kept in step with title memory unmeasured. AI-assisted. Codex (GPT-6) added the scratch counters and ran the comparison.
thaqiart139-alt commented 2026-11-24 23:08:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thaqiart139-alt on 2026-11-24T22:49:06Z.


Test report for this PR's head 0f77bf1, merged into main 689f2db (no conflicts), on AMD RDNA2 with native 64-lane waves and on a 32-lane NVIDIA card.

Tested

  • GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101), chosen with XCL_ADAPTER.
  • System: 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17.
  • cargo test --workspace --no-fail-fast -- --test-threads=4:
main 689f2db with this PR
RTX 5070 971 passed, 4 failed, 45 ignored 971 passed, 4 failed, 45 ignored
Radeon iGPU 974 passed, 1 failed, 45 ignored 974 passed, 1 failed, 45 ignored
  • This PR adds no failure. The failures are the same on main, from #1679's new fuzz tests, and both are already reported on #1679:
    • RTX 5070: fuzz_validate_and_gpu_0 to _3 (CreateComputePipelineState: 0x8007000E)
    • iGPU: fuzz_validate_and_gpu_1 (seed 540: res[833] = 0x7, CPU 0x6)
  • This is an NVIDIA run, which the description lists as not tested.
  • The three tests the description saw fail on its main pass here on both GPUs, on main and with this PR: placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory.
SKIPPED tests (the same on main and with this PR)
  • RTX 5070:
    • no wave64:
      • gpu::recomp::lower::tests: a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu
      • gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu, and the wave64 cases of its f16 / f32 / f64 / integer_programs_on_the_gpu
      • gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
    • the wave32 per-lane cases of lower_dxil's f16 arithmetic, f16 packed and f32 conversions: refused ("its #1426 semantics differ from the console's")
    • heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
    • pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode is off)
  • Radeon iGPU:
    • no mesh shaders: gpu::dxil::geometry_tests::gpu_geometry_direct_records, emitted_ms_primitive_attribute_reaches_the_pixel_shader, emitted_ms_ps_draw_a_triangle, gpu_geometry_mode_es_gs_strip, gpu_geometry_mode_es_gs_strip_with_branches, gpu_mesh_mode_two_passes
    • the wave32 and wave64 per-lane cases of lower_dxil's f16 arithmetic, f16 packed and f32 conversions: refused, as above
    • heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
    • pso_measurement_compiles_an_exact_synthetic_record (Developer Mode is off)

Not tested

  • a title run, Intel, RDNA3 / RDNA4; other GPUs; Linux / Wine.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7146679424 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075#issuecomment-7146679424). Originally posted by [thaqiart139-alt](https://github.com/thaqiart139-alt) on 2026-11-24T22:49:06Z. --- Test report for this PR's head `0f77bf1`, merged into `main` `689f2db` (no conflicts), on AMD RDNA2 with native 64-lane waves and on a 32-lane NVIDIA card. **Tested** - GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101), chosen with `XCL_ADAPTER`. - System: 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: | | `main` `689f2db` | with this PR | |---|---|---| | RTX 5070 | 971 passed, 4 failed, 45 ignored | 971 passed, 4 failed, 45 ignored | | Radeon iGPU | 974 passed, 1 failed, 45 ignored | 974 passed, 1 failed, 45 ignored | - This PR adds no failure. The failures are the same on `main`, from #1679's new fuzz tests, and both are already reported on #1679: - RTX 5070: `fuzz_validate_and_gpu_0` to `_3` (`CreateComputePipelineState`: `0x8007000E`) - iGPU: `fuzz_validate_and_gpu_1` (`seed 540: res[833] = 0x7, CPU 0x6`) - This is an NVIDIA run, which the description lists as not tested. - The three tests the description saw fail on its `main` pass here on both GPUs, on `main` and with this PR: `placed_title_textures_share_vram_and_preserve_pixels`, `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory`. <details><summary>SKIPPED tests (the same on <code>main</code> and with this PR)</summary> - **RTX 5070:** - no wave64: - `gpu::recomp::lower::tests`: `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu` - `gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu`, and the wave64 cases of its `f16` / `f32` / `f64` / `integer_programs_on_the_gpu` - `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` - the wave32 per-lane cases of `lower_dxil`'s f16 arithmetic, f16 packed and f32 conversions: refused ("its #1426 semantics differ from the console's") - `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - `pso_measurement_compiles_an_exact_synthetic_record` (Windows Developer Mode is off) - **Radeon iGPU:** - no mesh shaders: `gpu::dxil::geometry_tests::gpu_geometry_direct_records`, `emitted_ms_primitive_attribute_reaches_the_pixel_shader`, `emitted_ms_ps_draw_a_triangle`, `gpu_geometry_mode_es_gs_strip`, `gpu_geometry_mode_es_gs_strip_with_branches`, `gpu_mesh_mode_two_passes` - the wave32 and wave64 per-lane cases of `lower_dxil`'s f16 arithmetic, f16 packed and f32 conversions: refused, as above - `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - `pso_measurement_compiles_an_exact_synthetic_record` (Developer Mode is off) </details> **Not tested** - a title run, Intel, RDNA3 / RDNA4; other GPUs; Linux / Wine. **AI use** - Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.
DavidM1911 commented 2026-11-25 09:08:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:51:24Z.


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

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

Thanks!

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

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-25T14:30:58Z.


Test report for 0f77bf18498dae6497b539db2b5ded8ed96a744d (this PR's head), for #1607.

Tested

  • NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, 47 GB RAM, Windows 11 Home 10.0.26300, rustc 1.100.0 (0ef1bc386 2026-11-09) x86_64-pc-windows-msvc, debug.
  • cargo build --workspace, then cargo test --workspace -- --test-threads=4 at the head: 727 passed, 0 failed, 41 ignored.
  • SKIPPED (2): gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64).

Regression run (retail title, scripts/smoke.ps1 -Seconds 60, release; main built from the commit in its block, this PR from its head, no uncommitted changes)

main:

xcl-smoke v1
commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1599 (PresentX 1599)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16384 MB

this PR:

xcl-smoke v1
commit: 0f77bf18498dae6497b539db2b5ded8ed96a744d
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1651 (PresentX 1651)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17442 MB

Not tested

  • AMD, other NVIDIA cards and drivers, Linux. I did not review the diff; this report is the build, the suite and the regression run only.

AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.

<!-- greyfinch-sync:ivall/xcl:comment:7165396705 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075#issuecomment-7165396705). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-25T14:30:58Z. --- Test report for `0f77bf18498dae6497b539db2b5ded8ed96a744d` (this PR's head), for #1607. **Tested** - NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, 47 GB RAM, Windows 11 Home 10.0.26300, `rustc 1.100.0 (0ef1bc386 2026-11-09)` `x86_64-pc-windows-msvc`, debug. - `cargo build --workspace`, then `cargo test --workspace -- --test-threads=4` at the head: **727 passed, 0 failed, 41 ignored**. - SKIPPED (2): `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64). **Regression run** (retail title, `scripts/smoke.ps1 -Seconds 60`, release; `main` built from the commit in its block, this PR from its head, no uncommitted changes) main: ``` xcl-smoke v1 commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324 gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1599 (PresentX 1599) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16384 MB ``` this PR: ``` xcl-smoke v1 commit: 0f77bf18498dae6497b539db2b5ded8ed96a744d gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1651 (PresentX 1651) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17442 MB ``` **Not tested** - AMD, other NVIDIA cards and drivers, Linux. I did not review the diff; this report is the build, the suite and the regression run only. *AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.*
github-actions[bot] commented 2026-11-29 20:42:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:42:05Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262288993 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075#issuecomment-7262288993). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:42:05Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
brainhay5 commented 2026-12-01 01:53:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T01:53:49Z.


Triage note: this no longer merges with current main (mergeable=false), so it cannot be built or tested as it stands.

Why I am asking rather than just noting it: we have run fifteen mergeable candidates on the retail title on an RTX 5070 Ti, and every one still stops presenting at 50–80 s (device removed, surfacing ~88 s later on the next allocation). The PRs whose descriptions actually match that symptom are the ones that no longer apply — this is one of them. A rebase would make it testable again, and we will run it and report the numbers.

If it has been superseded by merged work, saying so is enough and it can be closed.

AI use: an agent posted this triage note.

<!-- greyfinch-sync:ivall/xcl:comment:7298015318 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075#issuecomment-7298015318). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T01:53:49Z. --- Triage note: this no longer merges with current `main` (`mergeable=false`), so it cannot be built or tested as it stands. Why I am asking rather than just noting it: we have run fifteen mergeable candidates on the retail title on an RTX 5070 Ti, and every one still stops presenting at 50–80 s (device removed, surfacing ~88 s later on the next allocation). The PRs whose descriptions actually match that symptom are the ones that no longer apply — this is one of them. A rebase would make it testable again, and we will run it and report the numbers. If it has been superseded by merged work, saying so is enough and it can be closed. *AI use: an agent posted this triage note.*
Foniass commented 2026-12-01 04:45:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:45:48Z.


Triage (#1607) – head 0f77bf1

On main, present.rs:present_now no longer calls q.ExecuteCommandLists for the present copy: since c3d701a ("D3D12.X: call native queue slots for internal work") it calls super::real::native_queue_execute, which goes straight to the PC queue slot and never reaches q_execute_command_lists, so the title-texture look before the copy is already gone. This PR also conflicts with main.
What main does not have from this PR: the look is still skipped when src is a texture kept in step, and vram::before_execute is not called before the copy. If either of those matters, a rebased PR against native_queue_execute would be the place for it.
Recommendation: close (superseded by main commit c3d701a).

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:7301074045 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075#issuecomment-7301074045). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:45:48Z. --- **Triage (#1607)** – head 0f77bf1 On main, present.rs:present_now no longer calls `q.ExecuteCommandLists` for the present copy: since c3d701a ("D3D12.X: call native queue slots for internal work") it calls `super::real::native_queue_execute`, which goes straight to the PC queue slot and never reaches `q_execute_command_lists`, so the title-texture look before the copy is already gone. This PR also conflicts with main. What main does not have from this PR: the look is still skipped when `src` is a texture kept in step, and `vram::before_execute` is not called before the copy. If either of those matters, a rebased PR against `native_queue_execute` would be the place for it. Recommendation: close (superseded by main commit c3d701a). 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:42:30 +00:00 (Migrated from github.com)

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


Closing as superseded: this change is already on main (c3d701a). main present.rs present copy goes through real::native_queue_execute (PC queue slot, c3d701a), so it skips the title_textures look; only the extra before_execute wait on the queue is not mirrored (native slot path used by all other own work)

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:7311530842 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1075#issuecomment-7311530842). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:42:30Z. --- Closing as superseded: this change is already on `main` (c3d701a). main present.rs present copy goes through real::native_queue_execute (PC queue slot, c3d701a), so it skips the title_textures look; only the extra before_execute wait on the queue is not mirrored (native slot path used by all other own work) 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!1066
No description provided.