D3D12.X: debug layer messages reach the log without ID3D12InfoQueue1 #1001

Open
madaraXor wants to merge 1 commit from upstream-pr/1008 into main
madaraXor commented 2026-11-24 10:20:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by madaraXor on 2026-11-24T10:20:23Z.


With XCL_D3D12_DEBUG=1, the debug layer's messages reached xcl.log only through an ID3D12InfoQueue1 message callback. Windows 10 has no ID3D12InfoQueue1: the cast fails with E_NOINTERFACE (measured on 19045 with the Agility SDK 1.620.2), the failure was ignored, and the log got no message at all. The debug layer was on but silent there, and test_title_draws_with_a_root_signature_under_the_debug_layer passed without seeing a single message.

Without ID3D12InfoQueue1, XCL now keeps the device's ID3D12InfoQueue, logs its stored messages with the same caps (8 per id, 3 000 in all) and clears it, at every submission and present (stop_if_device_removed). The messages that led to a device removal are logged before the removal. With ID3D12InfoQueue1 nothing changes.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: the fallback to ID3D12InfoQueue (poll_debug_messages, called first in stop_if_device_removed). The callback and the poll share log_debug_message.
  • crates/xcl/tests/debug_layer_log.rs (its own process): adds an application message to the debug layer's queue and expects it in the log after stop_if_device_removed. Skipped without the debug layer.

Tested

  • AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003; Ryzen 5 5600X; Windows 10 Pro 22H2 (19045.6466) with the D3D12 Agility SDK 1.620.2; Rust 1.90.0 stable-x86_64-pc-windows-msvc; DXC 1.8.2502.11; tests in debug, runs in release.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 8dde8ff: 713 passed, 4 failed, 41 ignored, no SKIPPED. The same 4 fail on main 09940bb (712 passed, 4 failed, 41 ignored): xmem_virtual_query_marks_cpu_readable_memory (misaligned output buffer, #650 / #656) and placed_title_textures_share_vram_and_preserve_pixels with the two tests on its poisoned lock (#718, #447).
  • cargo test -p xcl --test debug_layer_log: fails on main (the message is not in the log), passes here.
  • test_title_draws_with_a_root_signature_under_the_debug_layer: passes on both. On main the test title's log has 0 debug layer messages, here 22 (none about a missing root signature).
  • Retail title with XCL_D3D12_DEBUG=1 and XCL_NETWORK=0: 53 debug layer messages in 30 s here (20 errors, ids 538, 1047, 824, 723, 1422); none in a 35 s run on main.

Regression run
main:

xcl-smoke v1
commit: 09940bb87fa11bc394fd9e5de570c2b7cfd16323
gpu: AMD Radeon RX 6700 XT
title: retail
seconds: 60
exit: 0x0
frames shown: 1203 (PresentX 1204)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 11659 MB

This PR:

xcl-smoke v1
commit: 8dde8ff7ee96fa78068191a384f5467fe2108ca2
gpu: AMD Radeon RX 6700 XT
title: retail
seconds: 60
exit: 0x0
frames shown: 1116 (PresentX 1117)
presents per 2 s (last 3): 60 60 34
device removals: 0
crashes: 0
peak commit: 13738 MB

The smoke runs do not turn the debug layer on: without it the new code is a lock on an empty slot.

Not tested

  • A system with ID3D12InfoQueue1 (Windows 11): the callback path is unchanged, but the new test was not run there (it should pass through the callback).
  • NVIDIA, Intel, Linux / Wine.
  • Messages added while the stored ones are read are cleared with them (the queue only empties as a whole); not measured how often that happens.

AI use

  • Claude Code, Claude Opus 5.5: found the missing messages while tracing the retail title on Windows 10, wrote the fix, the test and this description, and ran the tests and the runs above on my PC.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5470287543 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1008). Originally posted by [madaraXor](https://github.com/madaraXor) on 2026-11-24T10:20:23Z. --- With `XCL_D3D12_DEBUG=1`, the debug layer's messages reached `xcl.log` only through an `ID3D12InfoQueue1` message callback. Windows 10 has no `ID3D12InfoQueue1`: the cast fails with `E_NOINTERFACE` (measured on 19045 with the Agility SDK 1.620.2), the failure was ignored, and the log got no message at all. The debug layer was on but silent there, and `test_title_draws_with_a_root_signature_under_the_debug_layer` passed without seeing a single message. Without `ID3D12InfoQueue1`, XCL now keeps the device's `ID3D12InfoQueue`, logs its stored messages with the same caps (8 per id, 3 000 in all) and clears it, at every submission and present (`stop_if_device_removed`). The messages that led to a device removal are logged before the removal. With `ID3D12InfoQueue1` nothing changes. **What is in it** - `crates/xcl/src/hle/d3d12x/real.rs`: the fallback to `ID3D12InfoQueue` (`poll_debug_messages`, called first in `stop_if_device_removed`). The callback and the poll share `log_debug_message`. - `crates/xcl/tests/debug_layer_log.rs` (its own process): adds an application message to the debug layer's queue and expects it in the log after `stop_if_device_removed`. Skipped without the debug layer. **Tested** - AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003; Ryzen 5 5600X; Windows 10 Pro 22H2 (19045.6466) with the D3D12 Agility SDK 1.620.2; Rust 1.90.0 `stable-x86_64-pc-windows-msvc`; DXC 1.8.2502.11; tests in debug, runs in release. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `8dde8ff`: 713 passed, 4 failed, 41 ignored, no `SKIPPED`. The same 4 fail on `main` `09940bb` (712 passed, 4 failed, 41 ignored): `xmem_virtual_query_marks_cpu_readable_memory` (misaligned output buffer, #650 / #656) and `placed_title_textures_share_vram_and_preserve_pixels` with the two tests on its poisoned lock (#718, #447). - `cargo test -p xcl --test debug_layer_log`: fails on `main` (the message is not in the log), passes here. - `test_title_draws_with_a_root_signature_under_the_debug_layer`: passes on both. On `main` the test title's log has 0 debug layer messages, here 22 (none about a missing root signature). - Retail title with `XCL_D3D12_DEBUG=1` and `XCL_NETWORK=0`: 53 debug layer messages in 30 s here (20 errors, ids 538, 1047, 824, 723, 1422); none in a 35 s run on `main`. **Regression run** `main`: ``` xcl-smoke v1 commit: 09940bb87fa11bc394fd9e5de570c2b7cfd16323 gpu: AMD Radeon RX 6700 XT title: retail seconds: 60 exit: 0x0 frames shown: 1203 (PresentX 1204) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 11659 MB ``` This PR: ``` xcl-smoke v1 commit: 8dde8ff7ee96fa78068191a384f5467fe2108ca2 gpu: AMD Radeon RX 6700 XT title: retail seconds: 60 exit: 0x0 frames shown: 1116 (PresentX 1117) presents per 2 s (last 3): 60 60 34 device removals: 0 crashes: 0 peak commit: 13738 MB ``` The smoke runs do not turn the debug layer on: without it the new code is a lock on an empty slot. **Not tested** - A system with `ID3D12InfoQueue1` (Windows 11): the callback path is unchanged, but the new test was not run there (it should pass through the callback). - NVIDIA, Intel, Linux / Wine. - Messages added while the stored ones are read are cleared with them (the queue only empties as a whole); not measured how often that happens. **AI use** - Claude Code, Claude Opus 5.5: found the missing messages while tracing the retail title on Windows 10, wrote the fix, the test and this description, and ran the tests and the runs above on my PC. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DavidM1911 commented 2026-11-24 12:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T11:22:45Z.


Independent verification, merged onto current main 384f7f7 locally (clean merge).

Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti + Radeon iGPU; Rust stable MSVC, debug.

  • cargo test -p xcl --test debug_layer_log: 1 passed — debug_layer_messages_reach_the_log (the new integration test).

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

<!-- greyfinch-sync:ivall/xcl:comment:7130019778 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1008#issuecomment-7130019778). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T11:22:45Z. --- Independent verification, merged onto current `main` `384f7f7` locally (clean merge). **Machine:** Windows 11, Ryzen 9 7900X + RTX 3060 Ti + Radeon iGPU; Rust stable MSVC, debug. - `cargo test -p xcl --test debug_layer_log`: **1 passed** — `debug_layer_messages_reach_the_log` (the new integration test). AI use: test runs by Devin (Cognition, SWE-2); no code changes.
jmal423 commented 2026-11-24 12:05:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jmal423 on 2026-11-24T11:31:52Z.


Windows 11 callback timing and per-ID cap on head 8dde8ff, RX 9070 XT (32.0.32029.2010), Windows Graphics Tools installed. I extended the integration test locally: required ID3D12InfoQueue1 on the real device, added the same application error 12 times, flushed the XCL log before the first stop_if_device_removed call, then called it twice and flushed again. Matching log lines: 8 before either call, 8 after both. This verifies immediate callback delivery and the 8-per-ID cap on this setup. The cap could also suppress duplicates, so the final count alone cannot establish whether polling was internally attempted. The Windows 10 fallback and concurrent writers were outside this test. AI use: Codex wrote and ran the scratch test and prepared this report.

Follow-up below the per-ID cap: I injected three identical application errors in fresh processes using the same scratch binary. Matching log lines before polling / after one poll / after a second poll: native callback 3/3/3; forced fallback 0/3/3. The only runtime instrumentation was a short-circuit around callback registration; the device, queue and polling implementation were real. This verifies deferred delivery and no duplicate on a second empty poll in this single-writer Windows 11 test. It does not simulate concurrent insertion or Windows 10 interface discovery.

Concurrent-writer measurement on the forced polling path (same Windows 11 setup): seven distinct text markers sharing one application message ID, below the cap of eight. Each AddApplicationMessage succeeded. In 12 fresh processes where the poller waited for the writer to finish, the log retained 84/84 markers. In 12 fresh processes where the poller called stop_if_device_removed in a tight loop alongside the writer, followed by a final poll after join, it retained 35/84 (per trial: 1,1,1,1,1,7,5,4,1,7,5,1). This measures the snapshot/clear limitation already disclosed in the PR under synthetic contention; it is not an estimate of retail message loss. No game files or device removal involved.

Reproducer patch for 8dde8ff (test instrumentation only)

Save the diff as queue.patch and run the following in PowerShell from the repository root. Change the adapter selector for other hardware. Run each mode in fresh processes several times because the concurrent case can pass. Count a run only if it prints observed=N/7. Without a real GPU backend or debug queue this integration test can return early and Cargo can still report success. The sequential control should print observed=7/7.

git apply queue.patch
$env:XCL_ADAPTER = '9070'
$env:XCL_LOCAL_TEST_POLL = '1'
Remove-Item Env:XCL_LOCAL_RACE -ErrorAction SilentlyContinue
cargo test --locked -p xcl --test debug_layer_log -- --nocapture
$env:XCL_LOCAL_RACE = '1'
cargo test --locked -p xcl --test debug_layer_log -- --nocapture
--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -529,7 +529,7 @@
             // through a callback where the system has ID3D12InfoQueue1; Windows 10 does not, and
             // there they are read from the device's message queue (`poll_debug_messages`)
             let mut cookie = 0u32;
-            let callback = device
+            let callback = std::env::var_os("XCL_LOCAL_TEST_POLL").is_none() && device
                 .cast::<ID3D12InfoQueue1>()
                 .is_ok_and(|q| q.RegisterMessageCallback(Some(debug_message), D3D12_MESSAGE_CALLBACK_FLAG_NONE, std::ptr::null_mut(), &mut cookie).is_ok());
             if !callback {
--- a/crates/xcl/tests/debug_layer_log.rs
+++ b/crates/xcl/tests/debug_layer_log.rs
@@ -26,13 +26,30 @@
         println!("SKIPPED debug_layer_messages_reach_the_log: no D3D12 debug layer");
         return;
     };
-    let text = "xcl test: a debug layer message";
-    let c = std::ffi::CString::new(text).unwrap();
-    unsafe { queue.AddApplicationMessage(D3D12_MESSAGE_SEVERITY_ERROR, PCSTR(c.as_ptr() as *const u8)) }.expect("AddApplicationMessage");
+    let racing = std::env::var_os("XCL_LOCAL_RACE").is_some();
+    let gate = std::sync::Arc::new(std::sync::Barrier::new(2));
+    let writer_gate = gate.clone();
+    let writer = std::thread::spawn(move || {
+        writer_gate.wait();
+        for i in 0..7 {
+            let text = std::ffi::CString::new(format!("xcl-local-race-{i}-end")).unwrap();
+            unsafe { queue.AddApplicationMessage(D3D12_MESSAGE_SEVERITY_ERROR, PCSTR(text.as_ptr().cast())) }.unwrap();
+            std::thread::yield_now();
+        }
+    });
+    gate.wait();
+    if racing {
+        while !writer.is_finished() {
+            real::stop_if_device_removed();
+        }
+    }
+    writer.join().unwrap();
     real::stop_if_device_removed();
     xcl::log::flush();
-    let log = std::fs::read_to_string(&path).unwrap_or_default();
+    let log = std::fs::read_to_string(&path).unwrap();
+    let observed = (0..7).filter(|i| log.contains(&format!("xcl-local-race-{i}-end"))).count();
+    println!("observed={observed}/7");
+    assert!(log.contains("D3D12: debug layer enabled"));
     let _ = std::fs::remove_dir_all(&dir);
-    assert!(log.contains("D3D12: debug layer enabled"), "the debug layer did not come up:\n{log}");
-    assert!(log.lines().any(|l| l.contains("D3D12 debug layer (error") && l.contains(text)), "the debug layer's message is not in the log:\n{log}");
+    assert_eq!(observed, 7, "messages lost before final poll");
 }
<!-- greyfinch-sync:ivall/xcl:comment:7130216004 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1008#issuecomment-7130216004). Originally posted by [jmal423](https://github.com/jmal423) on 2026-11-24T11:31:52Z. --- Windows 11 callback timing and per-ID cap on head 8dde8ff, RX 9070 XT (32.0.32029.2010), Windows Graphics Tools installed. I extended the integration test locally: required ID3D12InfoQueue1 on the real device, added the same application error 12 times, flushed the XCL log before the first stop_if_device_removed call, then called it twice and flushed again. Matching log lines: 8 before either call, 8 after both. This verifies immediate callback delivery and the 8-per-ID cap on this setup. The cap could also suppress duplicates, so the final count alone cannot establish whether polling was internally attempted. The Windows 10 fallback and concurrent writers were outside this test. AI use: Codex wrote and ran the scratch test and prepared this report. Follow-up below the per-ID cap: I injected three identical application errors in fresh processes using the same scratch binary. Matching log lines before polling / after one poll / after a second poll: native callback 3/3/3; forced fallback 0/3/3. The only runtime instrumentation was a short-circuit around callback registration; the device, queue and polling implementation were real. This verifies deferred delivery and no duplicate on a second empty poll in this single-writer Windows 11 test. It does not simulate concurrent insertion or Windows 10 interface discovery. Concurrent-writer measurement on the forced polling path (same Windows 11 setup): seven distinct text markers sharing one application message ID, below the cap of eight. Each AddApplicationMessage succeeded. In 12 fresh processes where the poller waited for the writer to finish, the log retained 84/84 markers. In 12 fresh processes where the poller called stop_if_device_removed in a tight loop alongside the writer, followed by a final poll after join, it retained 35/84 (per trial: 1,1,1,1,1,7,5,4,1,7,5,1). This measures the snapshot/clear limitation already disclosed in the PR under synthetic contention; it is not an estimate of retail message loss. No game files or device removal involved. <details><summary>Reproducer patch for 8dde8ff (test instrumentation only)</summary> Save the diff as queue.patch and run the following in PowerShell from the repository root. Change the adapter selector for other hardware. Run each mode in fresh processes several times because the concurrent case can pass. Count a run only if it prints observed=N/7. Without a real GPU backend or debug queue this integration test can return early and Cargo can still report success. The sequential control should print observed=7/7. ```powershell git apply queue.patch $env:XCL_ADAPTER = '9070' $env:XCL_LOCAL_TEST_POLL = '1' Remove-Item Env:XCL_LOCAL_RACE -ErrorAction SilentlyContinue cargo test --locked -p xcl --test debug_layer_log -- --nocapture $env:XCL_LOCAL_RACE = '1' cargo test --locked -p xcl --test debug_layer_log -- --nocapture ``` ```diff --- a/crates/xcl/src/hle/d3d12x/real.rs +++ b/crates/xcl/src/hle/d3d12x/real.rs @@ -529,7 +529,7 @@ // through a callback where the system has ID3D12InfoQueue1; Windows 10 does not, and // there they are read from the device's message queue (`poll_debug_messages`) let mut cookie = 0u32; - let callback = device + let callback = std::env::var_os("XCL_LOCAL_TEST_POLL").is_none() && device .cast::<ID3D12InfoQueue1>() .is_ok_and(|q| q.RegisterMessageCallback(Some(debug_message), D3D12_MESSAGE_CALLBACK_FLAG_NONE, std::ptr::null_mut(), &mut cookie).is_ok()); if !callback { --- a/crates/xcl/tests/debug_layer_log.rs +++ b/crates/xcl/tests/debug_layer_log.rs @@ -26,13 +26,30 @@ println!("SKIPPED debug_layer_messages_reach_the_log: no D3D12 debug layer"); return; }; - let text = "xcl test: a debug layer message"; - let c = std::ffi::CString::new(text).unwrap(); - unsafe { queue.AddApplicationMessage(D3D12_MESSAGE_SEVERITY_ERROR, PCSTR(c.as_ptr() as *const u8)) }.expect("AddApplicationMessage"); + let racing = std::env::var_os("XCL_LOCAL_RACE").is_some(); + let gate = std::sync::Arc::new(std::sync::Barrier::new(2)); + let writer_gate = gate.clone(); + let writer = std::thread::spawn(move || { + writer_gate.wait(); + for i in 0..7 { + let text = std::ffi::CString::new(format!("xcl-local-race-{i}-end")).unwrap(); + unsafe { queue.AddApplicationMessage(D3D12_MESSAGE_SEVERITY_ERROR, PCSTR(text.as_ptr().cast())) }.unwrap(); + std::thread::yield_now(); + } + }); + gate.wait(); + if racing { + while !writer.is_finished() { + real::stop_if_device_removed(); + } + } + writer.join().unwrap(); real::stop_if_device_removed(); xcl::log::flush(); - let log = std::fs::read_to_string(&path).unwrap_or_default(); + let log = std::fs::read_to_string(&path).unwrap(); + let observed = (0..7).filter(|i| log.contains(&format!("xcl-local-race-{i}-end"))).count(); + println!("observed={observed}/7"); + assert!(log.contains("D3D12: debug layer enabled")); let _ = std::fs::remove_dir_all(&dir); - assert!(log.contains("D3D12: debug layer enabled"), "the debug layer did not come up:\n{log}"); - assert!(log.lines().any(|l| l.contains("D3D12 debug layer (error") && l.contains(text)), "the debug layer's message is not in the log:\n{log}"); + assert_eq!(observed, 7, "messages lost before final poll"); } ``` </details>
SergeAx commented 2026-11-26 16:00:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SergeAx on 2026-11-26T16:00:30Z.


Test report on NVIDIA / Windows 10: this works. The test fails without it and passes with it, and a retail run logs 80 debug layer messages where the same build without it logs none. Tested commit: this PR's head 8dde8ff, merged onto main b49be18 + #1435 (14c8a2d; the title needs it to get past 98 s, #662). Merge 07380b8, no conflicts.

Setup:

  • RTX 5080 16 GB (driver 621.14), Ryzen 5 3500X, 64 GB RAM, Windows 10 Pro 22H2 (19045.6466).
  • Agility SDK 1.620.2 with its d3d12SDKLayers.dll; tests in debug, the title in release.

Tested:

  • cargo test -p xcl --test debug_layer_log: 1 passed on the merge. On main b49be18 + #1435 with only this test file added, it fails at the assertion that the message is in the log.
  • Same cause here: a probe on this machine got E_NOINTERFACE for ID3D12InfoQueue1 from the Agility SDK device, while ID3D12InfoQueue stored the messages.
  • Retail title (1.0.2.1, Series X), XCL_D3D12_DEBUG=1 XCL_DRED=1 XCL_NETWORK=0, presses scripted with XCL_PRESS_A_AT:
    • The log says D3D12: no ID3D12InfoQueue1 – the debug layer's messages are read at every submission and present.
    • 80 debug layer lines (27 errors, 53 warnings, 11 ids), among them 553 (resubmit), 1047 (UpdateTileMappings / ExecuteCommandLists on a resource another queue still writes) and 1422.
    • In 3 earlier runs with XCL_D3D12_DEBUG=1 on the same build without this PR, xcl.log said D3D12: debug layer enabled and then had none of the layer's messages. A DBWIN (OutputDebugString) listener showed the layer was producing them (#1452).

One thing to know for device removals: this run ended in #1452's removal at 138.0 s, but the last debug layer line in the log is from 126.7 s.

  • Every id it repeats had used up its 8 lines earlier.
  • The removal's own message (#234 DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT) has the severity MESSAGE, which log_debug_message drops (as debug_message did before).
  • So the log does not show what came right before the removal. A listener did, in the run linked above.

Not tested:

  • Windows 11 here.
  • The whole test suite on this merge.
  • The smoke pair.

AI use: Claude Code (Claude Opus 5.5) ran the tests and the unattended title run, read the logs and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7197053967 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1008#issuecomment-7197053967). Originally posted by [SergeAx](https://github.com/SergeAx) on 2026-11-26T16:00:30Z. --- **Test report on NVIDIA / Windows 10: this works. The test fails without it and passes with it, and a retail run logs 80 debug layer messages where the same build without it logs none.** Tested commit: this PR's head `8dde8ff`, merged onto `main` `b49be18` + #1435 (`14c8a2d`; the title needs it to get past 98 s, #662). Merge `07380b8`, no conflicts. **Setup:** - RTX 5080 16 GB (driver 621.14), Ryzen 5 3500X, 64 GB RAM, Windows 10 Pro 22H2 (19045.6466). - Agility SDK 1.620.2 with its `d3d12SDKLayers.dll`; tests in debug, the title in release. **Tested:** - `cargo test -p xcl --test debug_layer_log`: 1 passed on the merge. On `main` `b49be18` + #1435 with only this test file added, it fails at the assertion that the message is in the log. - Same cause here: a probe on this machine got `E_NOINTERFACE` for `ID3D12InfoQueue1` from the Agility SDK device, while `ID3D12InfoQueue` stored the messages. - **Retail title** (1.0.2.1, Series X), `XCL_D3D12_DEBUG=1 XCL_DRED=1 XCL_NETWORK=0`, presses scripted with `XCL_PRESS_A_AT`: - The log says `D3D12: no ID3D12InfoQueue1 – the debug layer's messages are read at every submission and present`. - 80 debug layer lines (27 errors, 53 warnings, 11 ids), among them 553 (resubmit), 1047 (`UpdateTileMappings` / `ExecuteCommandLists` on a resource another queue still writes) and 1422. - In 3 earlier runs with `XCL_D3D12_DEBUG=1` on the same build without this PR, `xcl.log` said `D3D12: debug layer enabled` and then had none of the layer's messages. A DBWIN (OutputDebugString) listener showed the layer was producing them ([#1452](https://github.com/xcl-dev/xcl/issues/1452#issuecomment-7194789593)). **One thing to know for device removals:** this run ended in #1452's removal at 138.0 s, but the last debug layer line in the log is from 126.7 s. - Every id it repeats had used up its 8 lines earlier. - The removal's own message (`#234 DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT`) has the severity MESSAGE, which `log_debug_message` drops (as `debug_message` did before). - So the log does not show what came right before the removal. A listener did, in the run linked above. **Not tested:** - Windows 11 here. - The whole test suite on this merge. - The smoke pair. AI use: Claude Code (Claude Opus 5.5) ran the tests and the unattended title run, read the logs and wrote this report.
github-actions[bot] commented 2026-11-30 08:39:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:39:04Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273171909 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1008#issuecomment-7273171909). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:39:04Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:37:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:37:35Z.


Triage (#1607) – head 8dde8ff

No open or merged PR adds the ID3D12InfoQueue polling fallback; main still registers the debug-layer callback through ID3D12InfoQueue1 only.
tests/debug_layer_log.rs: on a system that has ID3D12InfoQueue1 (Windows 11) the message reaches the log through the callback, so the test passes without the new poll_debug_messages path. Only a Windows 10 run exercises the fix, so please say in the PR which one you ran it on.
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:7300925804 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1008#issuecomment-7300925804). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:37:35Z. --- **Triage (#1607)** – head 8dde8ff No open or merged PR adds the `ID3D12InfoQueue` polling fallback; main still registers the debug-layer callback through `ID3D12InfoQueue1` only. `tests/debug_layer_log.rs`: on a system that has `ID3D12InfoQueue1` (Windows 11) the message reaches the log through the callback, so the test passes without the new `poll_debug_messages` path. Only a Windows 10 run exercises the fix, so please say in the PR which one you ran it on. 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/1008:upstream-pr/1008'
git switch 'upstream-pr/1008'

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/1008'
git switch 'upstream-pr/1008'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1008'
git switch 'upstream-pr/1008'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1008'
git switch 'main'
git merge --squash 'upstream-pr/1008'
git switch 'main'
git merge --ff-only 'upstream-pr/1008'
git switch 'main'
git merge 'upstream-pr/1008'
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!1001
No description provided.