Repository navigation
Conversation
ID3D12Object::SetName populates wide ObjectNameW in DRED allocation nodes, whereas log_device_removed previously read only ObjectNameA and printed unnamed internal objects. Prefer ObjectNameW with fallback to ObjectNameA via format_dred_allocation_name, query PageFaultOutput1 to include object pointers when available, and under XCL_DRED=1 name internal resources and heaps in real, list_x, bind, sparse, vram, and title_textures. Assisted-by: Antigravity
|
Passes on NVIDIA (RTX 3060), including the e2e title run with
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 AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When 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 DXIL fuzz tests: fuzz_validate_and_gpu_1 fails on AMD (seed 722 and others, RDNA2-4), so the default suite is red there #2115 / Direct DXIL: geometry mode, MSAA loads and directed f32 rounding #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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.