xcl run: XCL_FRAME_DUMP=0 and XCL_DRED=0 turn them off #1643
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1653"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by vladbondarenko97 on 2026-11-24T18:45:23Z.
XCL_FRAME_DUMP=0turned frame dumps on (every 120th frame) andXCL_DRED=0turned DRED on, because any value counted as set.0and an empty value now mean off for both, the wayXCL_TRACE_APUandXCL_DSTORAGE_BCPACK_FILLread theirs.XCL_FRAME_DUMP=1is still every 120th frame andN > 1still every N-th.What is in it
crates/xcl/src/hle/d3d12x/present.rs: theXCL_FRAME_DUMPparse moves into the pureframe_dump_every; unset, empty or0is off. New testframe_dump_zero_and_empty_are_off.crates/xcl/src/hle/d3d12x/real.rs:XCL_DREDis read likeXCL_TRACE_APU(set, non-empty, not0).Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 776 passed, 1 failed, 41 ignored (lib: 728 passed, 0 failed, 21 ignored). The failure ise2e::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.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).0, empty and1cases fail with the old parse: the old expression returns 120 for0and 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.ps1then prints no block; see #1270).main:
this PR:
Not tested
XCL_FRAME_DUMP=0orXCL_DRED=0set (the regression runs above use neither).XCL_DRED=0has no unit test: it is read inside D3D12 device creation.AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_01Hri58aiQKmMwqS6K8CHq2s
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T21:16:39Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
upstream-sync referenced this pull request2026-11-24 22:05:22 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:55:39Z.
XCL PR #1653 verification
Clean detached head
69f70c154d458d43177fde959aadaa4e56cfa2b5. The diff touchescrates/xcl/src/hle/d3d12x/present.rs(frame-dump interval parsing and its test) andcrates/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 --versionreported 1.9.2609.5.rustc -vVreported 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Unoptimized dev/test profiles with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded 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 -- --exactwithXCL_ADAPTER=NONE_CPU_ONLYoutside the mutex: 1 passed, 0 failed, 0 ignored, 0SKIPPEDlines. The parser returns 0 for unset,0, and empty, 120 for1, and 5 for5.cargo test --workspace --no-fail-fast -- --test-threads=4underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1: exit 101. Summing all 20test result:lines inpr1653-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 reportedCreateComputePipelineStateerror0x80070057. Four reported result mismatches in FMA, pixel sampling, f16 VALU, and pixel wave reductions.xcl --test e2e:test_title_runs_and_game_folder_is_untouchedfailed when the dynamic depth-bias check saw a blue pixel where it expected green.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/1behavior, frame-dump file output, retail-title smoke, sample-dependent paths (XCL_SAMPLE_*unset), and other GPU vendors. There was no matchedmainrun 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.logand published.upstream-sync referenced this pull request2026-11-25 19:08:53 +00:00
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-26T12:18:24Z.
Tested
69f70c1on an RTX 3090, as part of a batch merged ontomainb49be18: no failures, no regression.e15ddb2, #15946ea563b, #162139788e8, #165369f70c1. They touch no common file and merged cleanly ontob49be18(local commit1e3fb07). Check posted in #1607: B21, https://github.com/xcl-dev/xcl/issues/1607#issuecomment-7191828681.cargo test --workspace -- --test-threads=4(debug): 1,439 passed, 0 failed, 47 ignored. 26SKIPPEDGPU tests, mostly no wave64 on this card; they are not coverage.scripts/smoke.ps1, 60 s, retail 1.0.2.1 (title: 3c290c16), release. Peak commit was lower on the batch.mainb49be181e3fb07XCL_DRED=0turned DRED on (any value did), andXCL_FRAME_DUMP=0dumped every 120th frame (0 fell back to 120). Both are now off, which matches the PR title.Not tested: a run that reaches this change on purpose (the smoke title only shows that nothing regresses); AMD.
AI use: Claude Code (Claude Opus 5.5) ran the commands on my machine and drafted this. Checked by me before posting.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T14:25:53Z.
Independent desktop NVIDIA verification of PR #1653 at head
69f70c154d458d43177fde959aadaa4e56cfa2b5(1commit; exact parent & merge-base:9e3831e1f570d3646e53ab753b19ec07eb8f1485, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted tests & build (
69f70c15)cargo test --release -p xcl --lib -- --nocapture frame_dump_zero_and_empty_are_off(3 consecutive runs)1 passed; 0 failed; 0 ignored; 748 filtered out× 3 (0.00s,0.00s,0.00s,0skipped)cargo test --release -p xcl --lib -- --nocapture hle::d3d12x::present::(3 consecutive runs)7 passed; 0 failed; 0 ignored; 742 filtered out× 3 (0.02s,0.02s,0.02s,0skipped)cargo build --release -p xcl1m 13s, exit0,0new warnings in PR-touched lines)Paired quiet 60 s retail smoke (
title: 29640639)(Note:
scripts/smoke.ps1at9e3831e1predates9683e7a6and printed the local folder basename ontitle:; replaced below with the standard9683e7a6title hash29640639, with all measured fields verbatim.)Exact parent & merge-base (
9e3831e1f570d3646e53ab753b19ec07eb8f1485, cached baseline on the same machine):PR #1653 (
69f70c154d458d43177fde959aadaa4e56cfa2b5):Limits of coverage
frame_dump_zero_and_empty_are_offand the fullhle::d3d12x::present::suite (7/7,0skipped) passed3/3, directly verifyingframe_dump_everytreatsNone,"", and"0"as off (0),"1"as120, and"5"as5.XCL_DRED=0guard inreal.rswas inspected in the diff (is_ok_and(|v| !v.trim().is_empty() && v.trim() != "0")) and is not directly exercised by a unit test or by an explicitXCL_DRED=0smoke launch; the 60 s retail smoke confirms default runtime stability (0device removals,0crashes, steady 60 Hz).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:12:43Z.
merge-check claim
head:
69f70c154dImported from ivall/xcl. Originally posted by throny on 2026-11-28T14:26:31Z.
merge-check
base:
b937fbabhead:
69f70c154dmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2141 passed, 1 failed, 48 ignored (26 SKIPPED lines). The one failure is gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions, which fails on main without this PR too (reported on #3093) and in every tree of this batch; the nine failures main had since #2959 are gone at
b937fbab. I did not runb937fbabalone: the last base-only run ise13d6250(2130 passed, 10 failed, 48 ignored).review: one thing missing for XCL_DRED=0: the PR changes the test in real.rs, but hle/d3d12x/dred.rs on main has its own (
on()at line 37 reads only whether the variable is set) and the PR does not touch that file. With XCL_DRED=0 the device then has DRED off, but XCL still adds a marker and a pipeline label after every pipeline bind. One helper used in both places would do it. The frame-dump parsing is fine (unset, empty or 0 is off; 1 and unparsable values mean every 120th frame; N above 1 means every N-th). Open from the thread: the DRED part has no test.performance: none by default; with XCL_DRED=0 the per-bind marker cost stays, which is what the switch is meant to remove.
verdict: not yet: give dred.rs the same parse (one shared helper) and a test for it; small, I will rerun on the new head.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:24:30Z.
Triage (#1607) – head
69f70c1Half of this is already on main.
XCL_FRAME_DUMP=0(and empty) turning dumps off landed in5179437b(parse_frame_dump_everyinpresent.rs, which also acceptsfalse/off), so theframe_dump_everypart can go.XCL_DRED=0is still treated as on by main. Main has moved the DRED setup togpu/agility.rs(dred_request, read inenable_dred_once), andhle/d3d12x/dred.rsandreal.rseach readvar_os("XCL_DRED").is_some()again, so theinithunk here no longer applies. A rebase would need to handle0indred_requestand in those two readers.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.