Shaders: report progress for every precompile record #1758

Open
github-bot wants to merge 1 commit from github-bot/gh-1758 into main AGit
Owner

@⁠NemesisDawn on GitHub · 2026-11-24 20:17 UTC · original
NemesisDawn:fix/shader-precompile-progress → main · +33 −11 · 2 files · 1 commits · open

Print progress when a filtered, unrecognized, or unreadable shader record hits a reporting milestone, just as for compiled records. This addresses the progress reporting described in #1657.

What is in it

  • crates/xcl/src/shaders.rs counts all record outcomes at the same milestones. crates/xcl/tests/shaders_e2e.rs covers filtered and unrecognized records.

Tested

  • At e2c7975, two standalone fixture regressions passed on Windows with rustc 1.100.0. They cover filtered, unrecognized, and unreadable records. Both failed against the original loop.

Regression run

  • Pending comparable retail-title runs on upstream main and this PR’s commit.

Not tested

  • Full XCL build, Cargo workspace suite on a GPU, and retail-title smoke runs.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) wrote the patch and regression tests, ran the focused checks, and drafted this description.
**@⁠NemesisDawn** on GitHub · 2026-11-24 20:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1758) `NemesisDawn:fix/shader-precompile-progress` → `main` · +33 −11 · 2 files · 1 commits · open Print progress when a filtered, unrecognized, or unreadable shader record hits a reporting milestone, just as for compiled records. This addresses the progress reporting described in #1657. **What is in it** - `crates/xcl/src/shaders.rs` counts all record outcomes at the same milestones. `crates/xcl/tests/shaders_e2e.rs` covers filtered and unrecognized records. **Tested** - At `e2c7975`, two standalone fixture regressions passed on Windows with `rustc` 1.100.0. They cover filtered, unrecognized, and unreadable records. Both failed against the original loop. **Regression run** - Pending comparable retail-title runs on upstream `main` and this PR’s commit. **Not tested** - Full XCL build, Cargo workspace suite on a GPU, and retail-title smoke runs. **AI use** - OpenAI Codex (GPT-6, exact variant unavailable) wrote the patch and regression tests, ran the focused checks, and drafted this description.
Count filtered, unrecognized, and unreadable records at the same
progress milestones as compiled records. Cover the filtered and
unrecognized paths with a CLI regression test.

Assisted-by: OpenAI Codex (GPT-6, exact variant unavailable)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:03 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 21:20 UTC · original · edited 2026-11-24 21:42 UTC

Full-suite run, since this PR has no test report yet. Tested exact head e2c7975 (on its base c160d86).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, 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 -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 858 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: precompile_progress_counts_filtered_and_unrecognized_records.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 859 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Two tests were skipped with --skip on NVIDIA. Both fail on main 7f7e768 too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns their skips into failures. heap_window_out_of_memory_falls_back_to_the_switch_form skips when XCL_HEAP_WINDOWS is unset (#1651), and shaders::tests::pso_measurement_compiles_an_exact_synthetic_record skips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not set XCL_REQUIRE_GPU, so there both just print SKIPPED.

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.
**@⁠futurepro62** on GitHub · 2026-11-24 21:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1758#issuecomment-7144802365) · edited 2026-11-24 21:42 UTC Full-suite run, since this PR has no test report yet. Tested exact head `e2c7975` (on its base `c160d86`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, 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 -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record`: **858 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: `precompile_progress_counts_filtered_and_unrecognized_records`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **859 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Two tests were skipped with `--skip` on NVIDIA. Both fail on main `7f7e768` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns their skips into failures. `heap_window_out_of_memory_falls_back_to_the_switch_form` skips when `XCL_HEAP_WINDOWS` is unset (#1651), and `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` skips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not set `XCL_REQUIRE_GPU`, so there both just print SKIPPED. **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.
Author
Owner

@⁠Toons29 on GitHub · 2026-11-24 21:43 UTC · original

Regression run of e2c7975d on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: e2c7975dfaaec3d07615d8c3b6a340fdde33617e
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14687 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 99 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

**@⁠Toons29** on GitHub · 2026-11-24 21:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1758#issuecomment-7145305025) Regression run of `e2c7975d` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: e2c7975dfaaec3d07615d8c3b6a340fdde33617e gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14687 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 99 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 23:04 UTC · original

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

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

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 23:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1758#issuecomment-7146987089) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 04:09 UTC · original

XCL PR #1758 verification

Head e2c7975dfaaec3d07615d8c3b6a340fdde33617e on a clean detached checkout. STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386 2026-11-09) targeting x86_64-pc-windows-msvc. Cargo used unoptimized dev/test profiles with debug info and incremental compilation disabled.

Tested

  • cargo build --workspace and cargo test --workspace --no-run both exited 0 outside the Arc lock.
  • With $env:XCL_ADAPTER='NONE_CPU_ONLY', cargo test -p xcl --test shaders_e2e precompile_progress_counts_filtered_and_unrecognized_records -- --exact gave 1 passed, 0 failed, 0 ignored, and 0 skipped. The fixture invoked xcl shaders --precompile --only cs --split 0 on two folders of 200 files each. Both the filtered pixel shaders and the unrecognized blobs produced the 200/200 progress milestone on stderr and exited successfully.
  • The full Arc run used the command below. shaders_e2e passed all 5 tests, including the new fixture.
Set-ExecutionPolicy -Scope Process Bypass -Force; & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { $env:XCL_ADAPTER='A770'; $env:RUST_TEST_NOCAPTURE='1'; cargo test --workspace --no-fail-fast -- --test-threads=4 *>&1 | Tee-Object -FilePath 'L:\XclTooling\neon-slot-6\tmp\pr1758-suite.log' }

Workspace failures and skips

  • Exit 101. The 20 result lines (19 test binaries plus one doctest invocation) sum to 841 passed, 18 failed, and 42 ignored. Six lines begin with SKIPPED , so those tests did not exercise their target behavior. Reasons were missing wave64 (2), unavailable D3D12 debug layers (2), tiled resource tier below 2 (1), and unavailable heap windows (1).
  • The library target had 17 GPU failures: 13 compute pipeline creation errors (0x80070057) and four result mismatches. The e2e target failed the synthetic title check for dynamic depth bias (RSSetDepthBiasX), which rendered a blue pixel where green was expected.

Not tested

Matched main baseline, retail-title smoke run, non-Intel GPUs, and the progress milestone for unreadable or uninflatable records.

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

**@⁠JJAutoCompare** on GitHub · 2026-11-25 04:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/1758#issuecomment-7152581277) # XCL PR #1758 verification Head `e2c7975dfaaec3d07615d8c3b6a340fdde33617e` on a clean detached checkout. STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 build `26200.9974`, AMD Ryzen 7 3800X, Intel Arc A770 driver `32.0.101.9175`, DXC `1.9.2609.5`, and rustc `1.100.0 (0ef1bc386 2026-11-09)` targeting `x86_64-pc-windows-msvc`. Cargo used unoptimized dev/test profiles with debug info and incremental compilation disabled. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` both exited 0 outside the Arc lock. - With `$env:XCL_ADAPTER='NONE_CPU_ONLY'`, `cargo test -p xcl --test shaders_e2e precompile_progress_counts_filtered_and_unrecognized_records -- --exact` gave 1 passed, 0 failed, 0 ignored, and 0 skipped. The fixture invoked `xcl shaders --precompile --only cs --split 0` on two folders of 200 files each. Both the filtered pixel shaders and the unrecognized blobs produced the `200/200` progress milestone on stderr and exited successfully. - The full Arc run used the command below. `shaders_e2e` passed all 5 tests, including the new fixture. ```powershell Set-ExecutionPolicy -Scope Process Bypass -Force; & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { $env:XCL_ADAPTER='A770'; $env:RUST_TEST_NOCAPTURE='1'; cargo test --workspace --no-fail-fast -- --test-threads=4 *>&1 | Tee-Object -FilePath 'L:\XclTooling\neon-slot-6\tmp\pr1758-suite.log' } ``` **Workspace failures and skips** - Exit 101. The 20 result lines (19 test binaries plus one doctest invocation) sum to 841 passed, 18 failed, and 42 ignored. Six lines begin with `SKIPPED `, so those tests did not exercise their target behavior. Reasons were missing wave64 (2), unavailable D3D12 debug layers (2), tiled resource tier below 2 (1), and unavailable heap windows (1). - The library target had 17 GPU failures: 13 compute pipeline creation errors (`0x80070057`) and four result mismatches. The `e2e` target failed the synthetic title check for dynamic depth bias (`RSSetDepthBiasX`), which rendered a blue pixel where green was expected. **Not tested** Matched `main` baseline, retail-title smoke run, non-Intel GPUs, and the progress milestone for unreadable or uninflatable records. **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 `pr1758-suite.log` and published.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/shaders.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1758/head:github-bot/gh-1758'
git switch 'github-bot/gh-1758'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1758'
git switch 'github-bot/gh-1758'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1758'
git switch 'github-bot/gh-1758'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1758'
git switch 'main'
git merge --squash 'github-bot/gh-1758'
git switch 'main'
git merge --ff-only 'github-bot/gh-1758'
git switch 'main'
git merge 'github-bot/gh-1758'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.