D3D12.X: log bound shader hashes for DRED partially executed lists #1794
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1794
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1794"
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?
@mastrr9 on GitHub · 2026-11-24 20:51 UTC · original
mastrr9:feat/dred-log-bound-shaders→main· +223 −1 · 4 files · 1 commits · openSummary
When a DRED device-removed report involves a partially executed console command list, it now also names the pipeline and shader hashes bound most recently on that list.
draw_log.rs).XCL_DRED=1. When off, the cost is a single relaxed atomic load.log_device_removedlooks the ring up withtry_lock, so the report path never blocks.Tested
Windows 11 x64, NVIDIA GeForce RTX 5080 16 GB.
cargo test -p xcl --lib draw_log -- --test-threads=1: 4 passed, 0 failedcargo check --workspace --tests: clean (no new warnings)Regression run
Smoke run by @Anon64 in comment below: #1794
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup: RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,
XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, in one batch with themainrun.No device removals or crashes; 97 % of main's frames, 108 % of its peak commit.
Tester's AI use: Written with Claude Code (Claude Opus 5.5) from runs on the tester's machine.
Not tested
cargo test --workspacerun by the author: only the commands above are reported.XCL_DRED=1and the hashes it prints: not covered by the commands above, and the regression run does not report settingXCL_DRED.AI use
Co-Authored-Bytrailer).@futurepro62 on GitHub · 2026-11-24 21:30 UTC · original · edited 2026-11-24 22:20 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
2601ce6(on its base4178e88).Tested
cargo build --workspace, thenXCL_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: 893 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.an_empty_ring_has_no_summary,the_summary_names_the_newest_events_oldest_first,the_ring_keeps_only_the_newest_events_once_full,clear_forgets_the_recording.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 895 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and therepso_measurement_compiles_an_exact_synthetic_recordran and passed.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:41 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@Anon64 on GitHub · 2026-11-25 00:18 UTC · original
Regression run for this PR: head
7abd6f1, based onmain689f2db. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, in one batch with themainrun.main
689f2db:this PR:
No device removals or crashes; 97 % of main's frames, 108 % of its peak commit.
Not tested: the whole suite; whether the title reaches the changed code in these 60 s.
Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@JJAutoCompare on GitHub · 2026-11-25 04:14 UTC · original
XCL PR #1794 — Arc A770 verification
Tested clean head
7abd6f1b39837105e330add0b5b9aad9c7c573c4on STOR-WINLAB (Windows 11 Enterprise Evaluation, build 26200, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175). DXC--versionreported 1.9.2609.5. Rustc 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-runboth succeeded outside the Arc mutex.cargo test -p xcl --lib hle::d3d12x::draw_log::tests— 4 passed, 0 failed, 0 ignored, 0 skips. The new CPU fixtures cover an empty/reset ring, retaining the latest 64 events after wraparound, chronological ordering of the newest events, and VS/PS/CS hash and unknown-PSO formatting.cargo test -p xcl --lib hle::d3d12x::real::dred_tests— 1 passed, 0 failed, 0 ignored, 0 skips. The existing synthetic test reports a late, partially executed list ahead of unstarted lists within the 64-list cap. Both focused commands usedXCL_ADAPTER=NONE_CPU_ONLY.cargo test --workspace --no-fail-fast -- --test-threads=4ran once underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 101. Across 20test result:lines (19 binaries and one doctest harness), libtest reported 954 passed, 25 failed, 45 ignored. All five focused tests passed again.Workspace failures and skips
The library target had 24 shader/DXIL failures, mostly
CreateComputePipelineStatereturning0x80070057, plus output mismatches. Ine2e, theRSSetDepthBiasXcheck produced blue where it expected green. The log had 25 lines beginning withSKIPPED(17 no-wave64, 3 refused per-lane shader forms, 2 missing debug-layer components, 1 each for tiled tier, driver-cache controls, and heap windows). Those paths provide no coverage.Not tested
Live device removal with
XCL_DRED=1, including the emitted per-list shader hashes. Retail-title smoke comparison, matchedmainsuite, and other adapters. The workspace failures remain unattributed.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1794-suite.logand published.@DavidM1911 on GitHub · 2026-11-26 00:29 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.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.Merge
Merge the changes and update on Forgejo.