D3D12.X: log bound shader hashes for DRED partially executed lists #1784
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T20:51:45Z.
Summary
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: https://github.com/xcl-dev/xcl/pull/1794#issuecomment-7148374584
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).Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:30:17Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:41:47Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T00:18:37Z.
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.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:14:50Z.
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.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:29:11Z.
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.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:48:39Z.
Triage (#1607) – head
7abd6f1#1592, merged as
c6067a66and extended by792d9671inhle/d3d12x/dred.rs, already does this on main: withXCL_DRED=1each bound pipeline gets a marker and a label made of its console shader hashes, and the device-removal log names the label at the operation DRED stopped at. That is more precise than the last 4 draws per list kept here. There is also a concrete gap here.log_device_removedlooks upnode.pCommandList, but #1592 found that DRED gives a null pointer there on NVIDIA (Windows 26300) and only the list's debug name. On that setupbind::dred_summaryfinds nothing. Main works around it by naming each listxcl list 0x...(dred::node_list).Recommendation: close (superseded by #1592).
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:48:33Z.
Closing as superseded: this change is already on
main(c6067a66). main dred.rs (c6067a66,792d9671) names the pipeline and console shaders bound at the DRED fault point; PR's draw ring is a weaker design for the same goalTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed