D3D12.X: read DRED PageFault1 ObjectNameW and name internal resources #2131
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!2131
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2131"
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?
@Simon-CR on GitHub · 2026-11-25 05:38 UTC · original
Simon-CR:pr/dred-pagefault1-names→main· +143 −15 · 6 files · 1 commits · openWhen DRED captures a page fault on Windows (
XCL_DRED=1),ID3D12Object::SetNamepopulates wideObjectNameWstrings in the DRED allocation nodes while leaving ANSIObjectNameAempty. Because XCL only inspectedObjectNameAand did not name its own internal D3D12 buffers and heaps underXCL_DRED=1, page-fault logs printed unnamedtype 34entries without telling which XCL allocation backed a faulting GPU address. Part of #1452.What is in it
ObjectNameW(with fallback toObjectNameA) and queryID3D12DeviceRemovedExtendedData1::GetPageFaultAllocationOutput1to include object pointers incrates/xcl/src/hle/d3d12x/real.rsXCL_DRED=1acrosscrates/xcl/src/hle/d3d12x/real.rs,crates/xcl/src/hle/d3d12x/list_x.rs,crates/xcl/src/hle/d3d12x/bind.rs,crates/xcl/src/hle/d3d12x/sparse.rs,crates/xcl/src/hle/d3d12x/vram.rs, andcrates/xcl/src/hle/d3d12x/title_textures.rsObjectNameWpreference andObjectNameAfallback incrates/xcl/src/hle/d3d12x/real.rs(dred_tests)Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)cargo test -p xcl --lib dred -- --nocapture: 2 passed, 0 failedcargo test --workspace --no-fail-fast -- --test-threads=4: 1153 passed, 2 failed (only pre-existinggpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599 per #2115 / #1679 on RDNA4), 46 ignored across 21 test targets (debug build)SKIPPEDtests: gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)); gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)); gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)); gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)); heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows; shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)cargo build --release -p xcl) and 60 s retail title run (5ec87c56) completed cleanly with 0 device removals and 0 crashesRegression run
Not tested
XCL_DRED=1on a crashing title, NVIDIA GPUs, Intel Arc GPUs, wave32-only GPUs, and Linux/WineAI use
main, adding the unit test, running the local test suite and smoke runs, and drafting this description. All builds, tests, and regression runs were executed locally on the hardware above.@fromthemoonx on GitHub · 2026-11-25 06:11 UTC · original
Passes on NVIDIA (RTX 3060), including the e2e title run with
XCL_DRED=1. Nothing here produced a device removal, so the new page-fault output itself is untested.31d8f4b(base6020a33; it merges into current main6e1e2bewithout conflicts, andhle/d3d12xhas not changed onmainsince the base; I did not run the merged tree):cargo build --workspace+cargo test --workspace --no-fail-fast -- --test-threads=4: 1155 passed, 0 failed, 46 ignored. 24 SKIPPED, the same as onmain(no wave64, the per-lane refusals, no heap windows).format_dred_allocation_name_prefers_wide_and_falls_back_to_ansipassed.XCL_DRED=1 cargo test -p xcl --test e2e:test_title_runs_and_game_folder_is_untouchedpasses, so the test title runs to the end with the newSetNamecalls on.test_title_draws_with_a_root_signature_under_the_debug_layerfails (e2e.rs:268, the title does not reachdone). Not this PR: main6e1e2befails the same way, 3 of 3, whenXCL_DRED=1is combined with the debug layer that test turns on.Hardware: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug.
Not tested: a real page fault (so not the
GetPageFaultAllocationOutput1path or the names it prints), a title, a release build.AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 06:32 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@raylitebull on GitHub · 2026-11-25 10:48 UTC · original
Code review on
31d8f4b:ID3D12DeviceRemovedExtendedData1(ObjectNameW with ObjectNameA fallback viaformat_dred_allocation_name) and gatingSetNamecalls behinddred_on()(XCL_DRED=1) cleanly identifies XCL internal allocations in DRED page-fault logs with zero overhead when DRED is off.Remaining before merge:
Build and testfinishing green plus dual-vendor (AMD + NVIDIA) verification on31d8f4b.@Royalflamejlh on GitHub · 2026-11-25 12:03 UTC · original
Under Wine + vkd3d-proton the new page-fault output cannot print: by vkd3d-proton's source, its device gives no DRED data. Linux + NVIDIA, the title with
XCL_DRED=1, 1 run with #2131 and 1 without: noDRED requested but unavailablewarning and no device removal in either. Both stopped presenting before the 100 s limit, at 82.2 s with #2131 and 76.6 s without.Setup:
mainf087b99+ #684e56dbc3+ #213131d8f4b(local mergeb1d4ab7), againstmainf087b99+ #684 (local merge2f6a4ae). RTX 4070 12 GB (driver 615.71.09), Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, release, Series X profile, first-run screens completed once and no story progress, 100 s, A pressed at 16.2 s with #2131 and 16.3 s without,XCL_PSO_PRELOAD=0,WINEDEBUG=err+all,fixme-all.XCL_DRED=1main+ #684DRED requested but unavailableRead
real.rs:502goes throughD3D12GetDebugInterface(gpu/agility.rs:353), and vkd3d-proton hands out anID3D12DeviceRemovedExtendedDataSettings(libs/d3d12core/main.c:796). The request succeeds and logs nothing, but both setters are stubs that only print aFIXME(libs/d3d12core/debug.c:88and:94).ID3D12DeviceRemovedExtendedDataorID3D12DeviceRemovedExtendedData1(itsQueryInterface,libs/vkd3d/device.c:3709). So on a device removal under Wine,log_device_removedskips the new block atreal.rs:6409and returns atreal.rs:6428, with or without this change. Here only the newSetNamecalls run; vkd3d-proton keeps the names as private data (libs/vkd3d/utils.c:1686).Not tested: a device removal (none came); the suite; Windows; AMD and Intel.
AI use: Claude Code (Claude Opus 5.5) read the change and vkd3d-proton's source, ran the title, and wrote this comment.
Posted without review by a person: the account owner was away and reads replies later.
@upipibi on GitHub · 2026-11-25 12:25 UTC · original · edited 2026-11-25 12:48 UTC
NVIDIA half of the dual-vendor check, exact head
31d8f4b(as-is, on its base6020a33b): RTX 3070 8 GB, driver 616.56, Windows 11, debug, full workspace build.First, the limit: no device removal happened in any of these runs, and none set
XCL_DRED=1. So the DRED page-fault read and theSetNamecalls behinddred_on()never ran. The PR's unit testdred_tests::format_dred_allocation_name_prefers_wide_and_falls_back_to_ansidid run, and it passed. Otherwise, this only shows that the default, DRED-off path is unchanged on this card. (Edited: I first wrote thatformat_dred_allocation_namenever ran, which was wrong.)cargo test -p xcl --lib -- --test-threads=4gpu_withXCL_DIRECT_DXIL=1, single-threadedgpu_image_get_resinfo_1d_arraycargo test -p xcl --test e2envlddmkm153 events during the runsgpu_image_get_resinfo_1d_arraycomes from the base: #2046 fixed it inmain(5ebaf3eb), and6020a33bis older.main1a0bbe3apasses the samegpu_run 145 of 145 on this card.Not tested: a removal with
XCL_DRED=1(the case the PR is for), a title, AMD.AI-assisted (Claude Code). Synthetic tests only.
@oni-swr on GitHub · 2026-11-25 18:33 UTC · original
RX 7800 XT (RDNA3, wave32/wave64) report on exact head
31d8f4bedf34742bcfcfc5787aa3ab01a4c65022(as is, on its base6020a33b; no merge with currentmain, which merges cleanly).Tested
dxc.exefrom Windows SDK 10.0.26100.0.cargo test --workspace --no-fail-fast -- --test-threads=4on this head: 1154 passed, 1 failed, 46 ignored (21 targets). The one failure isfuzz_validate_and_gpu_1, which fails the same way onmain; nothing else failed.mainatc9ee916a: 1330 passed, 2 failed, 46 ignored (24 targets). The 2 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722: CPU0x7fffffff, GPU0x1) andgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier.a_bridged_mask_write...does not exist on this older head, so onlyfuzz_validate_and_gpu_1is comparable withmain.hle::d3d12x::real::dred_tests::*(includingformat_dred_allocation_name_prefers_wide_and_falls_back_to_ansi). No device removal happened, so the new PageFault1 output itself was not exercisedSKIPPED(7 lines on the heads that have these tests, same asmain): the f16 / f32-conversion per-lane programs, "refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...)", andheap_window_out_of_memory_falls_back_to_the_switch_form("no heap windows").Not tested
scripts/smoke.ps1run (noxcl-smokeblocks): I did not run an untrusted retail executable. This is a test-suite report only, not the regression run the PR needs.AI use
@thiagocalile on GitHub · 2026-11-25 19:35 UTC · original
Independent test and smoke report for head
31d8f4bedf34742bcfcfc5787aa3ab01a4c65022on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).Tested
32.0.21045.29003,XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- dred --test-threads=4: 2 passed, 0 failed, 0 ignored (0skipped).Regression run (
scripts/smoke.ps1, release builds,XCL_ADAPTER=radeon)main(2898511):PR
#2131(31d8f4b):Not tested: NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.
AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
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.