xcl run: XCL_FRAME_DUMP=0 and XCL_DRED=0 turn them off #1653

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

@⁠vladbondarenko97 on GitHub · 2026-11-24 18:45 UTC · original
vladbondarenko97:xcl-run/env-zero-off → main · +20 −6 · 2 files · 1 commits · open

XCL_FRAME_DUMP=0 turned frame dumps on (every 120th frame) and XCL_DRED=0 turned DRED on, because any value counted as set. 0 and an empty value now mean off for both, the way XCL_TRACE_APU and XCL_DSTORAGE_BCPACK_FILL read theirs. XCL_FRAME_DUMP=1 is still every 120th frame and N > 1 still every N-th.

What is in it

  • crates/xcl/src/hle/d3d12x/present.rs: the XCL_FRAME_DUMP parse moves into the pure frame_dump_every; unset, empty or 0 is off. New test frame_dump_zero_and_empty_are_off.
  • crates/xcl/src/hle/d3d12x/real.rs: XCL_DRED is read like XCL_TRACE_APU (set, non-empty, not 0).

Tested

  • RTX 3080 Ti (driver 32.0.16.1060), i7-12700KF, Windows 11 build 26300, rustc 1.100.0, debug; release for the regression run.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 776 passed, 1 failed, 41 ignored (lib: 728 passed, 0 failed, 21 ignored). The failure is e2e::test_title_runs_and_game_folder_is_untouched (presents: 0; the run was over SSH without a desktop session), which fails the same way on main on this machine.
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64); heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • The new test's 0, empty and 1 cases fail with the old parse: the old expression returns 120 for 0 and empty (checked by compiling it on its own).

Regression run
Both 120 s (at 600 s both main and this branch reach the world load on this card and are killed there, and main's smoke.ps1 then prints no block; see #1270).

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 3080 Ti
title: 9cc6a39e
seconds: 120
exit: 0x0
frames shown: 2517 (PresentX 2517)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 29769 MB

this PR:

xcl-smoke v1
commit: 69f70c154d458d43177fde959aadaa4e56cfa2b5
gpu: NVIDIA GeForce RTX 3080 Ti
title: 9cc6a39e
seconds: 120
exit: 0x0
frames shown: 2350 (PresentX 2350)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 32720 MB

Not tested

  • AMD; a retail run with XCL_FRAME_DUMP=0 or XCL_DRED=0 set (the regression runs above use neither).
  • XCL_DRED=0 has no unit test: it is read inside D3D12 device creation.

AI use

  • Claude Code: Claude Sonnet 5.5 wrote the change and the test and ran the build and tests on the box; Claude Opus 5.5 reviewed the diff and ran the two regression runs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hri58aiQKmMwqS6K8CHq2s

**@⁠vladbondarenko97** on GitHub · 2026-11-24 18:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/1653) `vladbondarenko97:xcl-run/env-zero-off` → `main` · +20 −6 · 2 files · 1 commits · open `XCL_FRAME_DUMP=0` turned frame dumps on (every 120th frame) and `XCL_DRED=0` turned DRED on, because any value counted as set. `0` and an empty value now mean off for both, the way `XCL_TRACE_APU` and `XCL_DSTORAGE_BCPACK_FILL` read theirs. `XCL_FRAME_DUMP=1` is still every 120th frame and `N > 1` still every N-th. **What is in it** - `crates/xcl/src/hle/d3d12x/present.rs`: the `XCL_FRAME_DUMP` parse moves into the pure `frame_dump_every`; unset, empty or `0` is off. New test `frame_dump_zero_and_empty_are_off`. - `crates/xcl/src/hle/d3d12x/real.rs`: `XCL_DRED` is read like `XCL_TRACE_APU` (set, non-empty, not `0`). **Tested** - RTX 3080 Ti (driver 32.0.16.1060), i7-12700KF, Windows 11 build 26300, rustc 1.100.0, debug; release for the regression run. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: 776 passed, 1 failed, 41 ignored (lib: 728 passed, 0 failed, 21 ignored). The failure is `e2e::test_title_runs_and_game_folder_is_untouched` (`presents: 0`; the run was over SSH without a desktop session), which fails the same way on main on this machine. - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64); `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - The new test's `0`, empty and `1` cases fail with the old parse: the old expression returns 120 for `0` and empty (checked by compiling it on its own). **Regression run** Both 120 s (at 600 s both main and this branch reach the world load on this card and are killed there, and main's `smoke.ps1` then prints no block; see #1270). main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 3080 Ti title: 9cc6a39e seconds: 120 exit: 0x0 frames shown: 2517 (PresentX 2517) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 29769 MB ``` this PR: ``` xcl-smoke v1 commit: 69f70c154d458d43177fde959aadaa4e56cfa2b5 gpu: NVIDIA GeForce RTX 3080 Ti title: 9cc6a39e seconds: 120 exit: 0x0 frames shown: 2350 (PresentX 2350) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 32720 MB ``` **Not tested** - AMD; a retail run with `XCL_FRAME_DUMP=0` or `XCL_DRED=0` set (the regression runs above use neither). - `XCL_DRED=0` has no unit test: it is read inside D3D12 device creation. **AI use** - Claude Code: Claude Sonnet 5.5 wrote the change and the test and ran the build and tests on the box; Claude Opus 5.5 reviewed the diff and ran the two regression runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hri58aiQKmMwqS6K8CHq2s
XCL_FRAME_DUMP=0 dumped every 120th frame and XCL_DRED=0 enabled DRED,
because any value counted as on. 0 and an empty value are now off,
like XCL_TRACE_APU and XCL_DSTORAGE_BCPACK_FILL.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hri58aiQKmMwqS6K8CHq2s
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:39 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 21:16 UTC · original

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

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

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 21:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/1653#issuecomment-7144715192) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
Author
Owner

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

XCL PR #1653 verification

Clean detached head 69f70c154d458d43177fde959aadaa4e56cfa2b5. The diff touches crates/xcl/src/hle/d3d12x/present.rs (frame-dump interval parsing and its test) and crates/xcl/src/hle/d3d12x/real.rs (DRED opt-in).

STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200, AMD64 Family 23 Model 113 (~3.9 GHz), Intel Arc A770 (driver 32.0.101.9175). dxc.exe --version reported 1.9.2609.5. rustc -vV reported 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Unoptimized dev/test profiles with debug info and incremental compilation disabled.

Tested

  • cargo build --workspace and cargo test --workspace --no-run succeeded outside the Arc mutex. Cargo listed 19 test executables.
  • cargo test -p xcl --lib hle::d3d12x::present::frame_dump_tests::frame_dump_zero_and_empty_are_off -- --exact with XCL_ADAPTER=NONE_CPU_ONLY outside the mutex: 1 passed, 0 failed, 0 ignored, 0 SKIPPED lines. The parser returns 0 for unset, 0, and empty, 120 for 1, and 5 for 5.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1: exit 101. Summing all 20 test result: lines in pr1653-suite.log (19 executables plus doc-tests) gives 761 passed, 16 failed, 41 ignored. The log identifies the A770, and the frame-dump parser test passed again.

Workspace failures and skips

  • xcl --lib: 15 GPU recompiler failures. Eleven reported CreateComputePipelineState error 0x80070057. Four reported result mismatches in FMA, pixel sampling, f16 VALU, and pixel wave reductions.
  • xcl --test e2e: test_title_runs_and_game_folder_is_untouched failed when the dynamic depth-bias check saw a blue pixel where it expected green.
  • Six lines begin with SKIPPED : two for wave64, two for the D3D12 debug layer, one for tiled tier below 2, and one for unavailable heap windows. These cases provide no coverage.

Not tested

Live XCL_DRED=0/1 behavior, frame-dump file output, retail-title smoke, sample-dependent paths (XCL_SAMPLE_* unset), and other GPU vendors. There was no matched main run to establish whether the workspace failures predate this PR.

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

**@⁠JJAutoCompare** on GitHub · 2026-11-25 04:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1653#issuecomment-7153289619) # XCL PR #1653 verification Clean detached head `69f70c154d458d43177fde959aadaa4e56cfa2b5`. The diff touches `crates/xcl/src/hle/d3d12x/present.rs` (frame-dump interval parsing and its test) and `crates/xcl/src/hle/d3d12x/real.rs` (DRED opt-in). STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200, AMD64 Family 23 Model 113 (~3.9 GHz), Intel Arc A770 (driver 32.0.101.9175). `dxc.exe --version` reported 1.9.2609.5. `rustc -vV` reported 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Unoptimized dev/test profiles with debug info and incremental compilation disabled. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` succeeded outside the Arc mutex. Cargo listed 19 test executables. - `cargo test -p xcl --lib hle::d3d12x::present::frame_dump_tests::frame_dump_zero_and_empty_are_off -- --exact` with `XCL_ADAPTER=NONE_CPU_ONLY` outside the mutex: 1 passed, 0 failed, 0 ignored, 0 `SKIPPED` lines. The parser returns 0 for unset, `0`, and empty, 120 for `1`, and 5 for `5`. - `cargo test --workspace --no-fail-fast -- --test-threads=4` under `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`: exit 101. Summing all 20 `test result:` lines in `pr1653-suite.log` (19 executables plus doc-tests) gives **761 passed, 16 failed, 41 ignored**. The log identifies the A770, and the frame-dump parser test passed again. **Workspace failures and skips** - `xcl --lib`: 15 GPU recompiler failures. Eleven reported `CreateComputePipelineState` error `0x80070057`. Four reported result mismatches in FMA, pixel sampling, f16 VALU, and pixel wave reductions. - `xcl --test e2e`: `test_title_runs_and_game_folder_is_untouched` failed when the dynamic depth-bias check saw a blue pixel where it expected green. - Six lines begin with `SKIPPED `: two for wave64, two for the D3D12 debug layer, one for tiled tier below 2, and one for unavailable heap windows. These cases provide no coverage. **Not tested** Live `XCL_DRED=0`/`1` behavior, frame-dump file output, retail-title smoke, sample-dependent paths (`XCL_SAMPLE_*` unset), and other GPU vendors. There was no matched `main` run to establish whether the workspace failures predate this PR. **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 `pr1653-suite.log` and published.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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