D3D12.X: read DRED PageFault1 ObjectNameW and name internal resources #2121

Open
Simon-CR wants to merge 1 commit from upstream-pr/2131 into main
Simon-CR commented 2026-11-25 05:38:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Simon-CR on 2026-11-25T05:38:43Z.


When DRED captures a page fault on Windows (XCL_DRED=1), ID3D12Object::SetName populates wide ObjectNameW strings in the DRED allocation nodes while leaving ANSI ObjectNameA empty. Because XCL only inspected ObjectNameA and did not name its own internal D3D12 buffers and heaps under XCL_DRED=1, page-fault logs printed unnamed type 34 entries without telling which XCL allocation backed a faulting GPU address. Part of #1452.

What is in it

  • Prefer wide ObjectNameW (with fallback to ObjectNameA) and query ID3D12DeviceRemovedExtendedData1::GetPageFaultAllocationOutput1 to include object pointers in crates/xcl/src/hle/d3d12x/real.rs
  • Name internal XCL D3D12 buffers and heaps when XCL_DRED=1 across crates/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, and crates/xcl/src/hle/d3d12x/title_textures.rs
  • Unit test verifying wide ObjectNameW preference and ObjectNameA fallback in crates/xcl/src/hle/d3d12x/real.rs (dred_tests)

Tested

  • Hardware & OS: AMD Radeon RX 9070 XT (driver 32.0.32015.7029), AMD Ryzen 7 5800X, Windows 10 Pro 26H2 (Build 26300.9974), rustc 1.100.0 (0ef1bc386 2026-11-09)
  • cargo test -p xcl --lib dred -- --nocapture: 2 passed, 0 failed
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1153 passed, 2 failed (only pre-existing gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599 per #2115 / #1679 on RDNA4), 46 ignored across 21 test targets (debug build)
  • SKIPPED tests: 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)
  • Release build (cargo build --release -p xcl) and 60 s retail title run (5ec87c56) completed cleanly with 0 device removals and 0 crashes

Regression run

xcl-smoke v1
commit: 6020a33b16ba2de25b3aef5947552f2dc1831f09
gpu: AMD Radeon RX 9070 XT
title: 5ec87c56
seconds: 60
exit: 0x0
frames shown: 1483 (PresentX 1483)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19090 MB
xcl-smoke v1
commit: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022
gpu: AMD Radeon RX 9070 XT
title: 5ec87c56
seconds: 60
exit: 0x0
frames shown: 1564 (PresentX 1564)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16295 MB

Not tested

  • Live device-removal DRED log output with XCL_DRED=1 on a crashing title, NVIDIA GPUs, Intel Arc GPUs, wave32-only GPUs, and Linux/Wine

AI use

  • Antigravity (frontier model; exact model identifier not exposed to agent) assisted with writing the adaptation against 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.
<!-- greyfinch-sync:ivall/xcl:issue:5485842822 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131). Originally posted by [Simon-CR](https://github.com/Simon-CR) on 2026-11-25T05:38:43Z. --- When DRED captures a page fault on Windows (`XCL_DRED=1`), `ID3D12Object::SetName` populates wide `ObjectNameW` strings in the DRED allocation nodes while leaving ANSI `ObjectNameA` empty. Because XCL only inspected `ObjectNameA` and did not name its own internal D3D12 buffers and heaps under `XCL_DRED=1`, page-fault logs printed unnamed `type 34` entries without telling which XCL allocation backed a faulting GPU address. Part of #1452. **What is in it** - Prefer wide `ObjectNameW` (with fallback to `ObjectNameA`) and query `ID3D12DeviceRemovedExtendedData1::GetPageFaultAllocationOutput1` to include object pointers in `crates/xcl/src/hle/d3d12x/real.rs` - Name internal XCL D3D12 buffers and heaps when `XCL_DRED=1` across `crates/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`, and `crates/xcl/src/hle/d3d12x/title_textures.rs` - Unit test verifying wide `ObjectNameW` preference and `ObjectNameA` fallback in `crates/xcl/src/hle/d3d12x/real.rs` (`dred_tests`) **Tested** - Hardware & OS: AMD Radeon RX 9070 XT (driver 32.0.32015.7029), AMD Ryzen 7 5800X, Windows 10 Pro 26H2 (Build 26300.9974), `rustc 1.100.0 (0ef1bc386 2026-11-09)` - `cargo test -p xcl --lib dred -- --nocapture`: 2 passed, 0 failed - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1153 passed, 2 failed (only pre-existing `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599 per #2115 / #1679 on RDNA4), 46 ignored across 21 test targets (debug build) - `SKIPPED` tests: 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) - Release build (`cargo build --release -p xcl`) and 60 s retail title run (`5ec87c56`) completed cleanly with 0 device removals and 0 crashes **Regression run** ``` xcl-smoke v1 commit: 6020a33b16ba2de25b3aef5947552f2dc1831f09 gpu: AMD Radeon RX 9070 XT title: 5ec87c56 seconds: 60 exit: 0x0 frames shown: 1483 (PresentX 1483) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19090 MB ``` ``` xcl-smoke v1 commit: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022 gpu: AMD Radeon RX 9070 XT title: 5ec87c56 seconds: 60 exit: 0x0 frames shown: 1564 (PresentX 1564) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16295 MB ``` **Not tested** - Live device-removal DRED log output with `XCL_DRED=1` on a crashing title, NVIDIA GPUs, Intel Arc GPUs, wave32-only GPUs, and Linux/Wine **AI use** - Antigravity (frontier model; exact model identifier not exposed to agent) assisted with writing the adaptation against `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 commented 2026-11-25 07:05:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T06:11:25Z.


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.

  • Exact head 31d8f4b (base 6020a33; it merges into current main 6e1e2be without conflicts, and hle/d3d12x has not changed on main since 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 on main (no wave64, the per-lane refusals, no heap windows). format_dred_allocation_name_prefers_wide_and_falls_back_to_ansi passed.
  • XCL_DRED=1 cargo test -p xcl --test e2e: test_title_runs_and_game_folder_is_untouched passes, so the test title runs to the end with the new SetName calls on. test_title_draws_with_a_root_signature_under_the_debug_layer fails (e2e.rs:268, the title does not reach done). Not this PR: main 6e1e2be fails the same way, 3 of 3, when XCL_DRED=1 is 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 GetPageFaultAllocationOutput1 path 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.

<!-- greyfinch-sync:ivall/xcl:comment:7154534430 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7154534430). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-25T06:11:25Z. --- 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. - Exact head `31d8f4b` (base `6020a33`; it merges into current main `6e1e2be` without conflicts, and `hle/d3d12x` has not changed on `main` since 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 on `main` (no wave64, the per-lane refusals, no heap windows). `format_dred_allocation_name_prefers_wide_and_falls_back_to_ansi` passed. - `XCL_DRED=1 cargo test -p xcl --test e2e`: `test_title_runs_and_game_folder_is_untouched` passes, so the test title runs to the end with the new `SetName` calls on. `test_title_draws_with_a_root_signature_under_the_debug_layer` fails (`e2e.rs:268`, the title does not reach `done`). **Not this PR:** main `6e1e2be` fails the same way, 3 of 3, when `XCL_DRED=1` is 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 `GetPageFaultAllocationOutput1` path 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 commented 2026-11-25 07:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T06:32:37Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7154899265 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7154899265). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T06:32:37Z. --- 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 commented 2026-11-25 11:09:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:48:56Z.


Code review on 31d8f4b:

  • Reading ID3D12DeviceRemovedExtendedData1 (ObjectNameW with ObjectNameA fallback via format_dred_allocation_name) and gating SetName calls behind dred_on() (XCL_DRED=1) cleanly identifies XCL internal allocations in DRED page-fault logs with zero overhead when DRED is off.
  • Diff audited and CI workflow approved (running).

Remaining before merge: Build and test finishing green plus dual-vendor (AMD + NVIDIA) verification on 31d8f4b.

<!-- greyfinch-sync:ivall/xcl:comment:7160209458 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7160209458). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:48:56Z. --- Code review on `31d8f4b`: - Reading `ID3D12DeviceRemovedExtendedData1` (ObjectNameW with ObjectNameA fallback via `format_dred_allocation_name`) and gating `SetName` calls behind `dred_on()` (XCL_DRED=1) cleanly identifies XCL internal allocations in DRED page-fault logs with zero overhead when DRED is off. - Diff audited and CI workflow approved (running). **Remaining before merge:** `Build and test` finishing green plus dual-vendor (**AMD** + **NVIDIA**) verification on `31d8f4b`.
Royalflamejlh commented 2026-11-25 12:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-25T12:03:59Z.


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: no DRED requested but unavailable warning 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: main f087b99 + #684 e56dbc3 + #2131 31d8f4b (local merge b1d4ab7), against main f087b99 + #684 (local merge 2f6a4ae). 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=1 main + #684 #2131
frames 1,326 1,399
last 2 s with a present 76.6 s 82.2 s
DRED requested but unavailable no no
device removed no no

Read

  • XCL found no Agility SDK here, so the request at real.rs:502 goes through D3D12GetDebugInterface (gpu/agility.rs:353), and vkd3d-proton hands out an ID3D12DeviceRemovedExtendedDataSettings (libs/d3d12core/main.c:796). The request succeeds and logs nothing, but both setters are stubs that only print a FIXME (libs/d3d12core/debug.c:88 and :94).
  • Its device does not answer for ID3D12DeviceRemovedExtendedData or ID3D12DeviceRemovedExtendedData1 (its QueryInterface, libs/vkd3d/device.c:3709). So on a device removal under Wine, log_device_removed skips the new block at real.rs:6409 and returns at real.rs:6428, with or without this change. Here only the new SetName calls 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.

<!-- greyfinch-sync:ivall/xcl:comment:7161873130 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7161873130). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-25T12:03:59Z. --- 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: no `DRED requested but unavailable` warning 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:** `main` `f087b99` + #684 `e56dbc3` + #2131 `31d8f4b` (local merge `b1d4ab7`), against `main` `f087b99` + #684 (local merge `2f6a4ae`). 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=1` | `main` + #684 | #2131 | |---|---|---| | frames | 1,326 | 1,399 | | last 2 s with a present | 76.6 s | 82.2 s | | `DRED requested but unavailable` | no | no | | device removed | no | no | **Read** - XCL found no Agility SDK here, so the request at `real.rs:502` goes through `D3D12GetDebugInterface` (`gpu/agility.rs:353`), and vkd3d-proton hands out an `ID3D12DeviceRemovedExtendedDataSettings` (`libs/d3d12core/main.c:796`). The request succeeds and logs nothing, but both setters are stubs that only print a `FIXME` (`libs/d3d12core/debug.c:88` and `:94`). - Its device does not answer for `ID3D12DeviceRemovedExtendedData` or `ID3D12DeviceRemovedExtendedData1` (its `QueryInterface`, `libs/vkd3d/device.c:3709`). So on a device removal under Wine, `log_device_removed` skips the new block at `real.rs:6409` and returns at `real.rs:6428`, with or without this change. Here only the new `SetName` calls 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 commented 2026-11-25 13:05:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T12:25:01Z.


NVIDIA half of the dual-vendor check, exact head 31d8f4b (as-is, on its base 6020a33b): 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 the SetName calls behind dred_on() never ran. The PR's unit test dred_tests::format_dred_allocation_name_prefers_wide_and_falls_back_to_ansi did run, and it passed. Otherwise, this only shows that the default, DRED-off path is unchanged on this card. (Edited: I first wrote that format_dred_allocation_name never ran, which was wrong.)

run result
cargo test -p xcl --lib -- --test-threads=4 1099 passed, 0 failed, 26 ignored
gpu_ with XCL_DIRECT_DXIL=1, single-threaded 134 passed, 1 failed: gpu_image_get_resinfo_1d_array
cargo test -p xcl --test e2e 3 passed, 0 failed
System log nvlddmkm 153 events during the runs 0

gpu_image_get_resinfo_1d_array comes from the base: #2046 fixed it in main (5ebaf3eb), and 6020a33b is older. main 1a0bbe3a passes the same gpu_ 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.

<!-- greyfinch-sync:ivall/xcl:comment:7162343058 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7162343058). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T12:25:01Z. --- NVIDIA half of the dual-vendor check, exact head `31d8f4b` (as-is, on its base `6020a33b`): 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 the `SetName` calls behind `dred_on()` never ran. The PR's unit test `dred_tests::format_dred_allocation_name_prefers_wide_and_falls_back_to_ansi` did run, and it passed. Otherwise, this only shows that the default, DRED-off path is unchanged on this card. (Edited: I first wrote that `format_dred_allocation_name` never ran, which was wrong.) | run | result | |---|---| | `cargo test -p xcl --lib -- --test-threads=4` | 1099 passed, 0 failed, 26 ignored | | `gpu_` with `XCL_DIRECT_DXIL=1`, single-threaded | 134 passed, 1 failed: `gpu_image_get_resinfo_1d_array` | | `cargo test -p xcl --test e2e` | 3 passed, 0 failed | | System log `nvlddmkm` 153 events during the runs | 0 | `gpu_image_get_resinfo_1d_array` comes from the base: #2046 fixed it in `main` (`5ebaf3eb`), and `6020a33b` is older. `main` `1a0bbe3a` passes the same `gpu_` 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 commented 2026-11-25 19:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T18:33:53Z.


RX 7800 XT (RDNA3, wave32/wave64) report on exact head 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022 (as is, on its base 6020a33b; no merge with current main, which merges cleanly).

Tested

  • AMD Radeon RX 7800 XT, driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 build 26200; Rust 1.100.0 MSVC; debug profile; dxc.exe from Windows SDK 10.0.26100.0.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on this head: 1154 passed, 1 failed, 46 ignored (21 targets). The one failure is fuzz_validate_and_gpu_1, which fails the same way on main; nothing else failed.
  • Baseline, same machine and command, unmodified main at c9ee916a: 1330 passed, 2 failed, 46 ignored (24 targets). The 2 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722: CPU 0x7fffffff, GPU 0x1) and gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier.
  • Note: a_bridged_mask_write... does not exist on this older head, so only fuzz_validate_and_gpu_1 is comparable with main.
  • Relevant tests, all passing: hle::d3d12x::real::dred_tests::* (including format_dred_allocation_name_prefers_wide_and_falls_back_to_ansi). No device removal happened, so the new PageFault1 output itself was not exercised
  • SKIPPED (7 lines on the heads that have these tests, same as main): the f16 / f32-conversion per-lane programs, "refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...)", and heap_window_out_of_memory_falls_back_to_the_switch_form ("no heap windows").

Not tested

  • No title and no scripts/smoke.ps1 run (no xcl-smoke blocks): I did not run an untrusted retail executable. This is a test-suite report only, not the regression run the PR needs.
  • Release profile, NVIDIA, Intel, Wine, RDNA2/RDNA4.

AI use

  • This run and report were done by Claude Code (Claude Sonnet 5.5): it fetched the head, ran the commands above and wrote this comment. Nothing was reviewed line by line for correctness here.
<!-- greyfinch-sync:ivall/xcl:comment:7171081533 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7171081533). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T18:33:53Z. --- **RX 7800 XT (RDNA3, wave32/wave64) report on exact head `31d8f4bedf34742bcfcfc5787aa3ab01a4c65022`** (as is, on its base `6020a33b`; no merge with current `main`, which merges cleanly). **Tested** - AMD Radeon RX 7800 XT, driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 build 26200; Rust 1.100.0 MSVC; debug profile; `dxc.exe` from Windows SDK 10.0.26100.0. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on this head: 1154 passed, 1 failed, 46 ignored (21 targets). The one failure is `fuzz_validate_and_gpu_1`, which fails the same way on `main`; nothing else failed. - Baseline, same machine and command, unmodified `main` at `c9ee916a`: 1330 passed, 2 failed, 46 ignored (24 targets). The 2 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722: CPU `0x7fffffff`, GPU `0x1`) and `gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`. - Note: `a_bridged_mask_write...` does not exist on this older head, so only `fuzz_validate_and_gpu_1` is comparable with `main`. - Relevant tests, all passing: `hle::d3d12x::real::dred_tests::*` (including `format_dred_allocation_name_prefers_wide_and_falls_back_to_ansi`). No device removal happened, so the new PageFault1 output itself was not exercised - `SKIPPED` (7 lines on the heads that have these tests, same as `main`): the f16 / f32-conversion per-lane programs, "refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...)", and `heap_window_out_of_memory_falls_back_to_the_switch_form` ("no heap windows"). **Not tested** - No title and no `scripts/smoke.ps1` run (no `xcl-smoke` blocks): I did not run an untrusted retail executable. This is a test-suite report only, not the regression run the PR needs. - Release profile, NVIDIA, Intel, Wine, RDNA2/RDNA4. **AI use** - This run and report were done by Claude Code (Claude Sonnet 5.5): it fetched the head, ran the commands above and wrote this comment. Nothing was reviewed line by line for correctness here.
thiagocalile commented 2026-11-25 20:08:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thiagocalile on 2026-11-25T19:35:21Z.


Independent test and smoke report for head 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022 on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver 32.0.21045.29003, XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11.
  • XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- dred --test-threads=4: 2 passed, 0 failed, 0 ignored (0 skipped).

Regression run (scripts/smoke.ps1, release builds, XCL_ADAPTER=radeon)

main (2898511):

xcl-smoke v1
commit: 2898511af1c038a2ef809719e9b6f89e5675c422
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1488 (PresentX 1489)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 11934 MB

PR #2131 (31d8f4b):

xcl-smoke v1
commit: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1500 (PresentX 1500)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16084 MB

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.

<!-- greyfinch-sync:ivall/xcl:comment:7172504647 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7172504647). Originally posted by [thiagocalile](https://github.com/thiagocalile) on 2026-11-25T19:35:21Z. --- Independent test and smoke report for head `31d8f4bedf34742bcfcfc5787aa3ab01a4c65022` on an **AMD Radeon RX 6600** (8 GB VRAM, RDNA2, native wave64). **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver `32.0.21045.29003`, `XCL_ADAPTER=radeon`), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (`10.0.26200.0`), Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.8.2502.11`. - `XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- dred --test-threads=4`: **2 passed, 0 failed, 0 ignored** (`0` skipped). **Regression run** (`scripts/smoke.ps1`, release builds, `XCL_ADAPTER=radeon`) `main` (`2898511`): ``` xcl-smoke v1 commit: 2898511af1c038a2ef809719e9b6f89e5675c422 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1488 (PresentX 1489) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 11934 MB ``` PR `#2131` (`31d8f4b`): ``` xcl-smoke v1 commit: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1500 (PresentX 1500) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16084 MB ``` **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.
bmjask commented 2026-11-25 21:42:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:42:05Z.

Review: COMMENTED


P1 DRED diagnostic crash: PageFault1 formatter evaluates &*a.pObject before calling as_ref(). A DRED allocation node may have null pObject, so device-removal logging can hit UB/access violation. Use a.pObject.as_ref() or explicit null check and add null-object node test. Wide-name fallback/internal naming otherwise look sound; live DRED output remains untested.

<!-- greyfinch-sync:ivall/xcl:review:6065370325 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#pullrequestreview-6065370325). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:42:05Z. **Review:** COMMENTED --- P1 DRED diagnostic crash: PageFault1 formatter evaluates &*a.pObject before calling as_ref(). A DRED allocation node may have null pObject, so device-removal logging can hit UB/access violation. Use a.pObject.as_ref() or explicit null check and add null-object node test. Wide-name fallback/internal naming otherwise look sound; live DRED output remains untested.
throny commented 2026-11-27 19:13:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T19:13:13Z.


merge-check claim
head: 31d8f4bedf

<!-- greyfinch-sync:ivall/xcl:comment:7226309126 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7226309126). Originally posted by [throny](https://github.com/throny) on 2026-11-27T19:13:13Z. --- merge-check claim head: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022
throny commented 2026-11-27 19:24:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T19:24:13Z.


merge-check
base: 6089122a
head: 31d8f4bedf
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: none blocking. On the earlier "null pObject" point: in the windows crate used here that field is an Option of an interface, not a raw pointer, so a node without an object reads as None. Minor: the fallback block repeats the PageFault1 logging; dred_on() is checked by the callers and again inside name_resource; name_resource treats the returned pointer as a resource whatever interface the title asked for (same COM object in practice, not verified). The unit test covers the name helper only; the PageFault1 path has not run anywhere (no report had a device removal).
performance: with XCL_DRED unset, one OnceLock read and a branch per created resource or heap; with XCL_DRED=1 one format and SetName per created resource. Nothing per frame (reasoned).
verdict: safe to merge
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).

<!-- greyfinch-sync:ivall/xcl:comment:7226492329 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7226492329). Originally posted by [throny](https://github.com/throny) on 2026-11-27T19:24:13Z. --- merge-check base: 6089122a head: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored review: none blocking. On the earlier "null pObject" point: in the windows crate used here that field is an Option of an interface, not a raw pointer, so a node without an object reads as None. Minor: the fallback block repeats the PageFault1 logging; dred_on() is checked by the callers and again inside name_resource; name_resource treats the returned pointer as a resource whatever interface the title asked for (same COM object in practice, not verified). The unit test covers the name helper only; the PageFault1 path has not run anywhere (no report had a device removal). performance: with XCL_DRED unset, one OnceLock read and a branch per created resource or heap; with XCL_DRED=1 one format and SetName per created resource. Nothing per frame (reasoned). verdict: safe to merge 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).
KOLESNiii commented 2026-11-27 23:29:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T23:29:26Z.


merge-check claim
head: 31d8f4bedf

<!-- greyfinch-sync:ivall/xcl:comment:7230180602 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7230180602). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T23:29:26Z. --- merge-check claim head: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022
KOLESNiii commented 2026-11-28 00:16:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:16:01Z.


merge-check
base: 2c717a043c
head: 31d8f4bedf
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1467 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as six other PRs' suites, in one queued job.
review: none. Whole diff read (bind.rs, list_x.rs x3, real.rs x8, sparse.rs x4, title_textures.rs, vram.rs x2). All naming is behind dred_on() (XCL_DRED, cached in a OnceLock); the DRED1 page-fault path reads pObject only as a raw pointer value (no deref of freed objects) and falls back to DRED 1.0.
performance: reasoned, not measured: default (XCL_DRED unset) adds one OnceLock load per internal resource/heap creation; no per-frame work.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge c26be982f88f16fa9d326a01a3784372a3a8708c (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7230778119 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7230778119). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T00:16:01Z. --- merge-check base: 2c717a043c8488938179fca81da4bb9e7913a358 head: 31d8f4bedf34742bcfcfc5787aa3ab01a4c65022 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1467 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as six other PRs' suites, in one queued job. review: none. Whole diff read (bind.rs, list_x.rs x3, real.rs x8, sparse.rs x4, title_textures.rs, vram.rs x2). All naming is behind dred_on() (XCL_DRED, cached in a OnceLock); the DRED1 page-fault path reads pObject only as a raw pointer value (no deref of freed objects) and falls back to DRED 1.0. performance: reasoned, not measured: default (XCL_DRED unset) adds one OnceLock load per internal resource/heap creation; no per-frame work. verdict: safe to merge hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge c26be982f88f16fa9d326a01a3784372a3a8708c (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
Foniass commented 2026-12-01 07:26:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:26:39Z.


Triage (#1607) – head 31d8f4b

No open PR reads DRED ObjectNameW / GetPageFaultAllocationOutput1. Main's log_device_removed still reads only ObjectNameA, so this part is not on main.
Since this PR's base, main gained 73f8798 (name_for_report: with XCL_DRED, every adopted resource, heap and pipeline gets a name) and a private real::dred_on. This PR adds a second dred_on, which is part of why it conflicts. A rebase should reuse main's helper and keep only the names main does not already give.
Minor: name_resource / name_heap already check dred_on(), so the if dred_on() at every call site is redundant. The fallback GetPageFaultAllocationOutput closure duplicates the new one.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304063224 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2131#issuecomment-7304063224). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:26:39Z. --- **Triage (#1607)** – head 31d8f4b No open PR reads DRED `ObjectNameW` / `GetPageFaultAllocationOutput1`. Main's `log_device_removed` still reads only `ObjectNameA`, so this part is not on main. Since this PR's base, main gained 73f8798 (`name_for_report`: with `XCL_DRED`, every adopted resource, heap and pipeline gets a name) and a private `real::dred_on`. This PR adds a second `dred_on`, which is part of why it conflicts. A rebase should reuse main's helper and keep only the names main does not already give. Minor: `name_resource` / `name_heap` already check `dred_on()`, so the `if dred_on()` at every call site is redundant. The fallback `GetPageFaultAllocationOutput` closure duplicates the new one. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2131:upstream-pr/2131'
git switch 'upstream-pr/2131'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2131'
git switch 'upstream-pr/2131'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2131'
git switch 'upstream-pr/2131'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2131'
git switch 'main'
git merge --squash 'upstream-pr/2131'
git switch 'main'
git merge --ff-only 'upstream-pr/2131'
git switch 'main'
git merge 'upstream-pr/2131'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2121
No description provided.