Shaders: budget each DXC compile by the size of its source #1714

Open
PracticalStudios wants to merge 1 commit from upstream-pr/1724 into main
PracticalStudios commented 2026-11-24 19:55:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by PracticalStudios on 2026-11-24T19:55:11Z.


DXC compiles now reserve memory by source size instead of a flat 1 GB, and a heavy compile (8 MB of HLSL or more) can no longer skip the budget. Part of #1269.

Why: programs over 8 MB take more than 12 GB each in DXC; several at once ran --precompile out of memory (@Sergentval, @LRF17 in #1269).

How it relates to #1774 (merged): that one admits driver compiles by DXIL size; this one admits the DXC step before it, by HLSL size.

What is in it

  • dxc.rs: a compile reserves 1 GB, or 1 GB per MB of HLSL from 8 MB. A heavy one runs when it fits, or alone. A heavy compile the title waits for briefly holds back background compiles so it is not starved. Unit tests for the rules.

Tested

  • RTX 3090 24 GB (driver 621.24), Ryzen 7 9800X3D, 62 GB RAM, Windows 11 26200, Rust 1.89.0, DXC 1.8.2502.11.
  • cargo test --workspace --no-fail-fast -- --test-threads=2: 870 passed, 1 failed, 42 ignored. The failure (kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory) fails the same way on main on this machine.
  • SKIPPED: 2 wave64 tests, 1 heap-window test.
  • DXC peak memory measured on the pack's programs: 0.1–0.6 GB for 0.5–7 MB of HLSL, so 1 GB below 8 MB is safe.

Regression run
.\scripts\smoke.ps1 -Game <retail title> -Seconds 60, no input, main first, same machine:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 3090
title: GTA6
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: 14924 MB
xcl-smoke v1
commit: 8e0cb77243cf696eec05de67f4092dbd799f0d4b
gpu: NVIDIA GeForce RTX 3090
title: GTA6
seconds: 60
exit: 0x0
frames shown: 1615 (PresentX 1615)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14948 MB

Not tested

  • AMD, wave64, Linux, 16 GB machines.
  • Sources between 7 and 11 MB.
  • Overlaps the same function as #1364 / #1417.

AI use

  • Claude Code (Claude Opus 5.5, with Claude Sonnet subagents) wrote the code, tests and this text. The test runs are real runs on the hardware above.
<!-- greyfinch-sync:ivall/xcl:issue:5479296232 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724). Originally posted by [PracticalStudios](https://github.com/PracticalStudios) on 2026-11-24T19:55:11Z. --- DXC compiles now reserve memory by source size instead of a flat 1 GB, and a heavy compile (8 MB of HLSL or more) can no longer skip the budget. Part of #1269. Why: programs over 8 MB take more than 12 GB each in DXC; several at once ran `--precompile` out of memory (@Sergentval, @LRF17 in #1269). How it relates to #1774 (merged): that one admits *driver* compiles by DXIL size; this one admits the DXC step before it, by HLSL size. **What is in it** - `dxc.rs`: a compile reserves 1 GB, or 1 GB per MB of HLSL from 8 MB. A heavy one runs when it fits, or alone. A heavy compile the title waits for briefly holds back background compiles so it is not starved. Unit tests for the rules. **Tested** - RTX 3090 24 GB (driver 621.24), Ryzen 7 9800X3D, 62 GB RAM, Windows 11 26200, Rust 1.89.0, DXC 1.8.2502.11. - `cargo test --workspace --no-fail-fast -- --test-threads=2`: 870 passed, 1 failed, 42 ignored. The failure (`kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory`) fails the same way on `main` on this machine. - SKIPPED: 2 wave64 tests, 1 heap-window test. - DXC peak memory measured on the pack's programs: 0.1–0.6 GB for 0.5–7 MB of HLSL, so 1 GB below 8 MB is safe. **Regression run** `.\scripts\smoke.ps1 -Game <retail title> -Seconds 60`, no input, `main` first, same machine: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 3090 title: GTA6 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: 14924 MB ``` ``` xcl-smoke v1 commit: 8e0cb77243cf696eec05de67f4092dbd799f0d4b gpu: NVIDIA GeForce RTX 3090 title: GTA6 seconds: 60 exit: 0x0 frames shown: 1615 (PresentX 1615) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14948 MB ``` **Not tested** - AMD, wave64, Linux, 16 GB machines. - Sources between 7 and 11 MB. - Overlaps the same function as #1364 / #1417. **AI use** - Claude Code (Claude Opus 5.5, with Claude Sonnet subagents) wrote the code, tests and this text. The test runs are real runs on the hardware above.
DavidM1911 commented 2026-11-24 23:08:21 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7146281064 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724#issuecomment-7146281064). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:28:53Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. Thanks!
JJAutoCompare commented 2026-11-25 05:08:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:20:17Z.


XCL PR #1724 verification

Clean detached head 8e0cb77243cf696eec05de67f4092dbd799f0d4b. The PR changes only crates/xcl/src/gpu/recomp/dxc.rs.

Tested

STOR-WINLAB ran Windows 11 build 26200 on an AMD Ryzen 7 3800X and Intel Arc A770 with driver 32.0.101.9175. DXC reported 1.9.2609.5. Rust was rustc 1.100.0 (0ef1bc386 2026-11-09) for x86_64-pc-windows-msvc. Builds used unoptimized profiles with debug info and incremental compilation disabled.

  • cargo build --workspace and cargo test --workspace --no-run succeeded outside the Arc lock. The latter built 19 test executables.
  • cargo test -p xcl --lib gpu::recomp::dxc::admission_tests ran outside the lock with XCL_ADAPTER=NONE_CPU_ONLY. All 13 passed, with 0 failed, 0 ignored, 0 skips and 831 filtered out. The tests check the 8 MiB source threshold and reservation sizes, commit and physical-memory admission, ordinary timeout and title priority, solo admission for heavy compiles, and reservation and wait-counter cleanup, including unwind. All 13 also passed in the workspace run.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 ran once inside Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. It exited 1. Summing every test result: line in pr1724-suite.log gives 853 passed, 18 failed and 42 ignored across 19 binaries and one doctest harness.

Workspace failures and skips

  • 17 library tests failed. In 13, CreateComputePipelineState returned 0x80070057. Four reported output mismatches in FMA overflow, mip sampling, 16-bit VALU and whole-wave pixel reductions.
  • The test title failed its RSSetDepthBiasX check. The top-right pixel was blue instead of green.
  • Six lines begin with SKIPPED . Two cite wave64, two cite unavailable debug-layer components, one cites tiled resource tier and one cites heap windows. These test paths did not provide coverage.

Not tested

Matched main baseline, retail-title smoke run, retail sample fixtures, large-shader compile stress and peak memory, and AMD or NVIDIA GPUs. The failures are observations at this PR head.

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 pr1724-suite.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7152750918 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724#issuecomment-7152750918). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:20:17Z. --- # XCL PR #1724 verification Clean detached head `8e0cb77243cf696eec05de67f4092dbd799f0d4b`. The PR changes only `crates/xcl/src/gpu/recomp/dxc.rs`. **Tested** STOR-WINLAB ran Windows 11 build 26200 on an AMD Ryzen 7 3800X and Intel Arc A770 with driver 32.0.101.9175. DXC reported 1.9.2609.5. Rust was `rustc 1.100.0 (0ef1bc386 2026-11-09)` for `x86_64-pc-windows-msvc`. Builds used unoptimized profiles with debug info and incremental compilation disabled. - `cargo build --workspace` and `cargo test --workspace --no-run` succeeded outside the Arc lock. The latter built 19 test executables. - `cargo test -p xcl --lib gpu::recomp::dxc::admission_tests` ran outside the lock with `XCL_ADAPTER=NONE_CPU_ONLY`. All 13 passed, with 0 failed, 0 ignored, 0 skips and 831 filtered out. The tests check the 8 MiB source threshold and reservation sizes, commit and physical-memory admission, ordinary timeout and title priority, solo admission for heavy compiles, and reservation and wait-counter cleanup, including unwind. All 13 also passed in the workspace run. - `cargo test --workspace --no-fail-fast -- --test-threads=4` ran once inside `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. It exited 1. Summing every `test result:` line in `pr1724-suite.log` gives 853 passed, 18 failed and 42 ignored across 19 binaries and one doctest harness. **Workspace failures and skips** - 17 library tests failed. In 13, `CreateComputePipelineState` returned `0x80070057`. Four reported output mismatches in FMA overflow, mip sampling, 16-bit VALU and whole-wave pixel reductions. - The test title failed its `RSSetDepthBiasX` check. The top-right pixel was blue instead of green. - Six lines begin with `SKIPPED `. Two cite wave64, two cite unavailable debug-layer components, one cites tiled resource tier and one cites heap windows. These test paths did not provide coverage. **Not tested** Matched `main` baseline, retail-title smoke run, retail sample fixtures, large-shader compile stress and peak memory, and AMD or NVIDIA GPUs. The failures are observations at this PR head. **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 `pr1724-suite.log` and published.
upipibi commented 2026-11-26 22:01:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T22:01:50Z.


NVIDIA report, head 8e0cb77243cf696eec05de67f4092dbd799f0d4b, merge-base c160d86ef2efe3a07e4dfb473e4fa72eafb413c0. RTX 3070 8 GB, driver 616.56, Win11, rustc 1.100.0, 5950X, 32 GB.

cargo test -p xcl --lib gpu::recomp::dxc x3: head 27 passed, 0 failed; base 14 passed, 0 failed. The 13 new admission_tests do not build on the merge-base (their module appended to it: 40 errors, e.g. cannot find function compile_estimate, admit, HEAVY_COMPILE).

cargo test --workspace --no-fail-fast -- --test-threads=4: head 862 passed, 0 failed, 42 ignored; base 849 passed, 0 failed, 42 ignored. e2e title tests ran to completion on both sides. My runner stopped gpu_compute_e2e mid-run on head; rerun x3 alone: 4 passed, 0 failed (included in the 862). SKIPPED: wave64 and heap-window only, same on both. No nvlddmkm resets.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:ivall/xcl:comment:7204288399 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724#issuecomment-7204288399). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T22:01:50Z. --- NVIDIA report, head `8e0cb77243cf696eec05de67f4092dbd799f0d4b`, merge-base `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`. RTX 3070 8 GB, driver 616.56, Win11, rustc 1.100.0, 5950X, 32 GB. `cargo test -p xcl --lib gpu::recomp::dxc` x3: head 27 passed, 0 failed; base 14 passed, 0 failed. The 13 new `admission_tests` do not build on the merge-base (their module appended to it: 40 errors, e.g. `cannot find function compile_estimate`, `admit`, `HEAVY_COMPILE`). `cargo test --workspace --no-fail-fast -- --test-threads=4`: head 862 passed, 0 failed, 42 ignored; base 849 passed, 0 failed, 42 ignored. e2e title tests ran to completion on both sides. My runner stopped `gpu_compute_e2e` mid-run on head; rerun x3 alone: 4 passed, 0 failed (included in the 862). SKIPPED: wave64 and heap-window only, same on both. No nvlddmkm resets. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
futurepro62 commented 2026-11-27 06:15:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T06:15:00Z.


NVIDIA and AMD full-suite run, to go with the reports above by JJAutoCompare, upipibi, since none of them covers AMD. Tested exact head 8e0cb772 (on its base c160d86).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 870 passed, 0 failed, 42 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: a_compile_reserves_a_floor_below_8_mb_and_a_gb_per_mb_from_there, an_ordinary_compile_checks_the_commit_only, an_ordinary_compile_goes_after_a_minute_or_when_wanted, an_ordinary_compile_nobody_waits_for_yields_to_a_waiting_heavy_one, a_heavy_compile_needs_the_commit_and_the_physical_memory, a_heavy_compile_has_no_escape_but_running_alone, a_waiting_heavy_compile_does_not_change_a_heavy_one, the_heavy_threshold_is_the_estimate_of_an_8_mb_source, the_totals_saturate, dropping_a_memory_slot_gives_back_its_compile_and_reservation, heavy_waiting_counts_one_per_guard_and_gives_it_back, heavy_waiting_is_given_back_when_its_thread_panics, only_a_wanted_heavy_compile_holds_the_others_back.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 871 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main c2ee10e4 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7211354560 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724#issuecomment-7211354560). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T06:15:00Z. --- NVIDIA and AMD full-suite run, to go with the reports above by JJAutoCompare, upipibi, since none of them covers AMD. Tested exact head `8e0cb772` (on its base `c160d86`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **870 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `a_compile_reserves_a_floor_below_8_mb_and_a_gb_per_mb_from_there`, `an_ordinary_compile_checks_the_commit_only`, `an_ordinary_compile_goes_after_a_minute_or_when_wanted`, `an_ordinary_compile_nobody_waits_for_yields_to_a_waiting_heavy_one`, `a_heavy_compile_needs_the_commit_and_the_physical_memory`, `a_heavy_compile_has_no_escape_but_running_alone`, `a_waiting_heavy_compile_does_not_change_a_heavy_one`, `the_heavy_threshold_is_the_estimate_of_an_8_mb_source`, `the_totals_saturate`, `dropping_a_memory_slot_gives_back_its_compile_and_reservation`, `heavy_waiting_counts_one_per_guard_and_gives_it_back`, `heavy_waiting_is_given_back_when_its_thread_panics`, `only_a_wanted_heavy_compile_holds_the_others_back`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **871 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `c2ee10e4` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Decodere commented 2026-11-27 11:18:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T11:18:28Z.


Independent desktop NVIDIA verification of PR #1724 at head 8e0cb77243cf696eec05de67f4092dbd799f0d4b (1 commit; exact parent & merge-base: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), 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 tests & build (8e0cb772)

Command Result
cargo test --release -p xcl --lib gpu::recomp::dxc:: -- --nocapture (3 consecutive runs) 27 passed; 0 failed; 0 ignored; 817 filtered out × 3 (0.44s, 0.44s, 0.44s, 0 skipped; includes all 13 new admission_tests:: compile memory-budget tests plus live DXC 1.9.2609.5 version_tests:: and cache_tests::)
cargo build --release -p xcl Clean build (1m 20s, exit 0, 0 new warnings in dxc.rs)

Paired quiet 60 s retail smoke (title: 29640639)

(Note: scripts/smoke.ps1 at c160d86e predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)

Exact parent & merge-base (c160d86ef2efe3a07e4dfb473e4fa72eafb413c0):

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

PR #1724 (8e0cb77243cf696eec05de67f4092dbd799f0d4b):

xcl-smoke v1
commit: 8e0cb77243cf696eec05de67f4092dbd799f0d4b
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1548 (PresentX 1549)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14712 MB

Limits of coverage

  • All 27/27 gpu::recomp::dxc:: tests (0 skipped) — including all 13 new source-size admission/heavy-compile reservation tests (admission_tests::) and live DXC 1.9.2609.5 compilation/cache tests — passed 3/3.
  • The 60 s retail smoke runs cleanly (0 device removals, 0 crashes, steady 60 Hz) on this 32 GB RAM host where cached shaders and ample commit headroom do not hit low-memory heavy-compile throttling; single-run frame/commit delta vs. parent reflects normal startup variance.

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

<!-- greyfinch-sync:ivall/xcl:comment:7216922144 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724#issuecomment-7216922144). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T11:18:28Z. --- Independent desktop NVIDIA verification of **PR #1724** at head `8e0cb77243cf696eec05de67f4092dbd799f0d4b` (`1` commit; exact parent & merge-base: `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), 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 tests & build (`8e0cb772`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib gpu::recomp::dxc:: -- --nocapture` (3 consecutive runs) | `27 passed; 0 failed; 0 ignored; 817 filtered out` × 3 (`0.44s`, `0.44s`, `0.44s`, `0` skipped; includes all `13` new `admission_tests::` compile memory-budget tests plus live `DXC 1.9.2609.5` `version_tests::` and `cache_tests::`) | | `cargo build --release -p xcl` | Clean build (`1m 20s`, exit `0`, `0` new warnings in `dxc.rs`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) *(Note: `scripts/smoke.ps1` at `c160d86e` predates `9683e7a6` and printed the local folder basename on `title:`; replaced below with the standard `9683e7a6` title hash `29640639`, with all measured fields verbatim.)* Exact parent & merge-base (`c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`): ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1533 (PresentX 1533) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14721 MB ``` PR #1724 (`8e0cb77243cf696eec05de67f4092dbd799f0d4b`): ``` xcl-smoke v1 commit: 8e0cb77243cf696eec05de67f4092dbd799f0d4b gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1548 (PresentX 1549) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14712 MB ``` ### Limits of coverage - All `27/27` `gpu::recomp::dxc::` tests (`0` skipped) — including all `13` new source-size admission/heavy-compile reservation tests (`admission_tests::`) and live DXC `1.9.2609.5` compilation/cache tests — passed `3/3`. - The 60 s retail smoke runs cleanly (`0` device removals, `0` crashes, steady 60 Hz) on this 32 GB RAM host where cached shaders and ample commit headroom do not hit low-memory heavy-compile throttling; single-run frame/commit delta vs. parent reflects normal startup variance. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Foniass commented 2026-12-01 06:36:03 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 8e0cb77

Same problem as #1723 (same author), #1762 and #2950 (#1269), solved differently: here a compile of 8 MB of HLSL or more reserves 1 GB per MB and needs that much physical memory too. #2950 also reserves per job, but in tiers that stop at 1 GB.
The atomic admission part is already on main: commit a34eaed4 (MemoryGate::try_admit) checks and reserves under one lock. This PR has to be rebased onto it rather than adding its own RESERVED compare-exchange.
On main, compute programs over 8 MB of HLSL take the direct DXIL translator (UNOPTIMISED_ABOVE), so the measurements in the comments (12 GB per compile) may no longer match the current path.
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:7303058319 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1724#issuecomment-7303058319). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:36:03Z. --- **Triage (#1607)** – head 8e0cb77 Same problem as #1723 (same author), #1762 and #2950 (#1269), solved differently: here a compile of 8 MB of HLSL or more reserves 1 GB per MB and needs that much physical memory too. #2950 also reserves per job, but in tiers that stop at 1 GB. The atomic admission part is already on main: commit a34eaed4 (`MemoryGate::try_admit`) checks and reserves under one lock. This PR has to be rebased onto it rather than adding its own `RESERVED` compare-exchange. On main, compute programs over 8 MB of HLSL take the direct DXIL translator (`UNOPTIMISED_ABOVE`), so the measurements in the comments (12 GB per compile) may no longer match the current path. 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/1724:upstream-pr/1724'
git switch 'upstream-pr/1724'

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/1724'
git switch 'upstream-pr/1724'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1724'
git switch 'upstream-pr/1724'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1724'
git switch 'main'
git merge --squash 'upstream-pr/1724'
git switch 'main'
git merge --ff-only 'upstream-pr/1724'
git switch 'main'
git merge 'upstream-pr/1724'
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!1714
No description provided.