D3D12.X: IDXGIDevice2::EnqueueSetEvent sets the event when the GPU is there #870

Open
mastrr9 wants to merge 1 commit from upstream-pr/876 into main
mastrr9 commented 2026-11-24 07:12:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T07:12:18Z.


Implements IDXGIDevice2::EnqueueSetEvent in crates/xcl/src/hle/d3d12x/dxgi_device.rs (previously returning E_NOTIMPL):

  • Signals a dedicated monotonically increasing fence on each known title command queue for the device (present::known_queues) and registers the caller's Win32 event via ID3D12Device1::SetEventOnMultipleFenceCompletion (D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL).
  • Signals the event immediately when no queues have submitted work yet, and returns E_INVALIDARG on a null event handle.
  • Adds hardware/WARP test hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queues verifying that a blocked queue holds the event unsignaled for 200 ms, signals it promptly once released, and an idle queue signals immediately.

Tested

  • Hardware/OS: NVIDIA RTX 5080 (driver 617.42 / 32.0.16.1742), Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC debug, DXC Windows SDK 10.0.26100.0, d3d12SDKLayers.dll installed
  • Commit tested: e000303abf7b6c6afa519bd8ae9d911b3322c161
  • cargo build --workspace: clean (no new warnings; only pre-existing fetch_update deprecation warning)
  • cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored (hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queues ok)
  • SKIPPED GPU tests: gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64

Regression run
Smoke run by @Toons29 in comment below: https://github.com/xcl-dev/xcl/pull/876#issuecomment-7151568254
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.

main:

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB

PR:

xcl-smoke v1
commit: acb4c2e93bd5344bc7546220bdae784da4624334
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1622 (PresentX 1622)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14813 MB

Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; the tester checked the blocks before posting.

Not tested

  • No retail title was available to the author; whether the community regression run above reaches the code this PR changes is not known.

AI use

  • Authored with Claude Code (Claude Opus 5.5); reviewed, audited, and verified on native Windows/RTX 5080 hardware with Antigravity (Gemini 4 Neon + Claude Sonnet 5.5).
  • Claude Code (Claude Sonnet 5.5) added the community regression run to this description and updated the lines that it made out of date or that the PR check requires.
<!-- greyfinch-sync:ivall/xcl:issue:5467775075 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/876). Originally posted by [mastrr9](https://github.com/mastrr9) on 2026-11-24T07:12:18Z. --- Implements `IDXGIDevice2::EnqueueSetEvent` in `crates/xcl/src/hle/d3d12x/dxgi_device.rs` (previously returning `E_NOTIMPL`): - Signals a dedicated monotonically increasing fence on each known title command queue for the device (`present::known_queues`) and registers the caller's Win32 event via `ID3D12Device1::SetEventOnMultipleFenceCompletion` (`D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL`). - Signals the event immediately when no queues have submitted work yet, and returns `E_INVALIDARG` on a null event handle. - Adds hardware/WARP test `hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queues` verifying that a blocked queue holds the event unsignaled for 200 ms, signals it promptly once released, and an idle queue signals immediately. **Tested** - Hardware/OS: NVIDIA RTX 5080 (driver `617.42` / `32.0.16.1742`), Windows 11 Pro 25H2 (`26200.9974`), `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC debug, DXC Windows SDK `10.0.26100.0`, `d3d12SDKLayers.dll` installed - Commit tested: `e000303abf7b6c6afa519bd8ae9d911b3322c161` - `cargo build --workspace`: clean (no new warnings; only pre-existing `fetch_update` deprecation warning) - `cargo test --workspace -- --test-threads=4`: **714 passed, 0 failed, 41 ignored** (`hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queues` ok) - `SKIPPED` GPU tests: `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64` **Regression run** Smoke run by @Toons29 in comment below: https://github.com/xcl-dev/xcl/pull/876#issuecomment-7151568254 Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted. main: ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` PR: ``` xcl-smoke v1 commit: acb4c2e93bd5344bc7546220bdae784da4624334 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1622 (PresentX 1622) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14813 MB ``` Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; the tester checked the blocks before posting. **Not tested** - No retail title was available to the author; whether the community regression run above reaches the code this PR changes is not known. **AI use** - Authored with Claude Code (Claude Opus 5.5); reviewed, audited, and verified on native Windows/RTX 5080 hardware with Antigravity (Gemini 4 Neon + Claude Sonnet 5.5). - Claude Code (Claude Sonnet 5.5) added the community regression run to this description and updated the lines that it made out of date or that the PR check requires.
SlopTart commented 2026-11-24 09:07:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T08:09:09Z.


Linux / AMD RDNA3 datapoint.

Merged state: head e000303 onto main 1ec4c98, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 706 passed, 10 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit of gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes (new flake, see #718 addendum). EnqueueSetEvent tests green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7125786920 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/876#issuecomment-7125786920). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-24T08:09:09Z. --- Linux / AMD RDNA3 datapoint. **Merged state:** head `e000303` onto main `1ec4c98`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **706 passed, 10 failed, 41 ignored**. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit of `gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes` (new flake, see #718 addendum). `EnqueueSetEvent` tests green. **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Toons29 commented 2026-11-25 03:06:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:04:45Z.


Regression run of acb4c2e9 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: acb4c2e93bd5344bc7546220bdae784da4624334
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1622 (PresentX 1622)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14813 MB

Against the limits in CONTRIBUTING.md: 100 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7151568254 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/876#issuecomment-7151568254). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T03:04:45Z. --- Regression run of `acb4c2e9` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: acb4c2e93bd5344bc7546220bdae784da4624334 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1622 (PresentX 1622) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14813 MB ``` Against the limits in CONTRIBUTING.md: 100 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
JJAutoCompare commented 2026-11-25 06:05:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:45:20Z.


Empirical test report (acb4c2e9)

Verified xcl-dev/xcl PR #876 at commit acb4c2e93bd5344bc7546220bdae784da4624334.

Hardware / environment

Windows x64, build 26200, on an AMD64 Family 23 Model 113 host. The run held the Intel Arc A770 test lock and set XCL_ADAPTER=A770. The fixture requests the default D3D12 device and falls back to WARP if device creation fails. It does not identify the selected device or driver.

  • Rust rustc 1.100.0 (0ef1bc386 2026-11-09), host x86_64-pc-windows-msvc.
  • DXC dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).
  • Unoptimized Cargo test profile with incremental compilation and debug info disabled.

Commands and results

  • cargo test --workspace --no-run outside the Arc lock completed with exit code 0.
  • xcl-77aca8ccb20e299f.exe --exact hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queues ran directly from the workspace build under Invoke-ArcTest.ps1 with RUST_TEST_NOCAPTURE=1. The wrapper exited 0. The harness reported 1 passed, 0 failed, 0 ignored, and 693 filtered out in 0.50 s. The log contained 0 SKIPPED lines.

Observed behavior

The test rejected a null event handle with E_INVALIDARG. With the direct queue held behind a fence, the event stayed unsignaled through the 200 ms check. After the CPU released the fence, the event signaled within the test's 10 s wait. A repeat enqueue on the idle queue also signaled within its 10 s wait.

Not tested

The full GPU workspace suite and game smoke runs were omitted. The fixture exercised one direct queue. Multiple queues and the no-submission path were outside its coverage.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr876-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154107437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/876#issuecomment-7154107437). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:45:20Z. --- ### Empirical test report (acb4c2e9) Verified xcl-dev/xcl PR #876 at commit `acb4c2e93bd5344bc7546220bdae784da4624334`. **Hardware / environment** Windows x64, build 26200, on an AMD64 Family 23 Model 113 host. The run held the Intel Arc A770 test lock and set `XCL_ADAPTER=A770`. The fixture requests the default D3D12 device and falls back to WARP if device creation fails. It does not identify the selected device or driver. - Rust `rustc 1.100.0 (0ef1bc386 2026-11-09)`, host `x86_64-pc-windows-msvc`. - DXC `dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47)`. - Unoptimized Cargo test profile with incremental compilation and debug info disabled. **Commands and results** - `cargo test --workspace --no-run` outside the Arc lock completed with exit code 0. - `xcl-77aca8ccb20e299f.exe --exact hle::d3d12x::dxgi_device::tests::enqueue_set_event_waits_for_the_queues` ran directly from the workspace build under `Invoke-ArcTest.ps1` with `RUST_TEST_NOCAPTURE=1`. The wrapper exited 0. The harness reported 1 passed, 0 failed, 0 ignored, and 693 filtered out in 0.50 s. The log contained 0 `SKIPPED` lines. **Observed behavior** The test rejected a null event handle with `E_INVALIDARG`. With the direct queue held behind a fence, the event stayed unsignaled through the 200 ms check. After the CPU released the fence, the event signaled within the test's 10 s wait. A repeat enqueue on the idle queue also signaled within its 10 s wait. **Not tested** The full GPU workspace suite and game smoke runs were omitted. The fixture exercised one direct queue. Multiple queues and the no-submission path were outside its coverage. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr876-focused.log` and published.
DavidM1911 commented 2026-11-25 10:10:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:52:29Z.


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:7158916505 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/876#issuecomment-7158916505). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T09:52:29Z. --- 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!
gut0to commented 2026-11-26 17:02:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gut0to on 2026-11-26T17:02:51Z.

Code review location: crates/xcl/src/hle/d3d12x/dxgi_device.rs; line 234

@@ -199,11 +201,107 @@ unsafe extern "system" fn reclaim_resources(_p: *mut c_void, n: u32, _resources:
     S_OK
 }
 
-/// signalling when the GPU work submitted so far is done needs the title's queues: not done
-unsafe extern "system" fn enqueue_set_event(_p: *mut c_void, _event: *mut c_void) -> HRESULT {
-    static N: AtomicU64 = AtomicU64::new(0);
-    if N.fetch_add(1, Ordering::Relaxed) == 0 {
-        crate::xlog_warn!("D3D12.X: IDXGIDevice2::EnqueueSetEvent – not supported");
+/// Sets `event` once the GPU has done the work submitted so far, on every queue the title has
+/// given work to on this device. A title waits on it to keep the CPU a frame or so ahead of the
+/// GPU; refused, it waited on an event never set, or skipped the wait and ran ahead without
+/// bound.
+unsafe extern "system" fn enqueue_set_event(p: *mut c_void, event: *mut c_void) -> HRESULT {
+    if event.is_null() {
+        return windows::Win32::Foundation::E_INVALIDARG.0;
+    }
+    match enqueue(device(p), HANDLE(event)) {
+        Ok(()) => S_OK,
+        Err(e) => {
+            static N: AtomicU64 = AtomicU64::new(0);
+            if N.fetch_add(1, Ordering::Relaxed) < 4 {
+                crate::xlog_warn!("D3D12.X: IDXGIDevice2::EnqueueSetEvent: {e}");
+            }
+            e.code().0
+        }
+    }
+}
+
+/// queue → a fence of ours on it and the last value it was told to signal
+static QUEUE_FENCES: Mutex<Vec<(usize, ID3D12Fence, u64)>> = Mutex::new(Vec::new());
+
+/// Each of `dev`'s queues signals its fence of ours after what it has been given so far; `event`
+/// is set when all of them have.
+unsafe fn enqueue(dev: &ID3D12Device, event: HANDLE) -> windows::core::Result<()> {
+    let mut fences = Vec::new();
+    let mut values = Vec::new();
+    {
+        let mut g = QUEUE_FENCES.lock().unwrap_or_else(|e| e.into_inner());
+        for q in super::present::known_queues() {

AI-assisted review (OpenAI GPT-6); I inspected the diff and test, but did not run tests.

The new contract says this event waits for every queue used by the title on this device, but the added test registers only one DIRECT queue. Could you extend it with two independently gated queues and verify that releasing just one leaves the event unsignaled? That would exercise the ALL multi-fence path and catch a regression that waits for only one queue.

<!-- greyfinch-sync:ivall/xcl:review-comment:4711449350 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/876#discussion_r4711449350). Originally posted by [gut0to](https://github.com/gut0to) on 2026-11-26T17:02:51Z. **Code review location:** `crates/xcl/src/hle/d3d12x/dxgi_device.rs`; line 234 ~~~~diff @@ -199,11 +201,107 @@ unsafe extern "system" fn reclaim_resources(_p: *mut c_void, n: u32, _resources: S_OK } -/// signalling when the GPU work submitted so far is done needs the title's queues: not done -unsafe extern "system" fn enqueue_set_event(_p: *mut c_void, _event: *mut c_void) -> HRESULT { - static N: AtomicU64 = AtomicU64::new(0); - if N.fetch_add(1, Ordering::Relaxed) == 0 { - crate::xlog_warn!("D3D12.X: IDXGIDevice2::EnqueueSetEvent – not supported"); +/// Sets `event` once the GPU has done the work submitted so far, on every queue the title has +/// given work to on this device. A title waits on it to keep the CPU a frame or so ahead of the +/// GPU; refused, it waited on an event never set, or skipped the wait and ran ahead without +/// bound. +unsafe extern "system" fn enqueue_set_event(p: *mut c_void, event: *mut c_void) -> HRESULT { + if event.is_null() { + return windows::Win32::Foundation::E_INVALIDARG.0; + } + match enqueue(device(p), HANDLE(event)) { + Ok(()) => S_OK, + Err(e) => { + static N: AtomicU64 = AtomicU64::new(0); + if N.fetch_add(1, Ordering::Relaxed) < 4 { + crate::xlog_warn!("D3D12.X: IDXGIDevice2::EnqueueSetEvent: {e}"); + } + e.code().0 + } + } +} + +/// queue → a fence of ours on it and the last value it was told to signal +static QUEUE_FENCES: Mutex<Vec<(usize, ID3D12Fence, u64)>> = Mutex::new(Vec::new()); + +/// Each of `dev`'s queues signals its fence of ours after what it has been given so far; `event` +/// is set when all of them have. +unsafe fn enqueue(dev: &ID3D12Device, event: HANDLE) -> windows::core::Result<()> { + let mut fences = Vec::new(); + let mut values = Vec::new(); + { + let mut g = QUEUE_FENCES.lock().unwrap_or_else(|e| e.into_inner()); + for q in super::present::known_queues() { ~~~~ --- AI-assisted review (OpenAI GPT-6); I inspected the diff and test, but did not run tests. The new contract says this event waits for every queue used by the title on this device, but the added test registers only one DIRECT queue. Could you extend it with two independently gated queues and verify that releasing just one leaves the event unsignaled? That would exercise the `ALL` multi-fence path and catch a regression that waits for only one queue.
Foniass commented 2026-12-01 04:23:08 +00:00 (Migrated from github.com)

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


Triage (#1607) – head acb4c2e

No open or merged PR implements IDXGIDevice2::EnqueueSetEvent. Although GitHub reports it mergeable, it will not build on current main: enqueue() calls present::known_queues(), which 6dacfa4b replaced with known_queues_held() / active_queues_held() (queues can now be retiring, and active_queues_held is the snapshot for internal signals), and the test registers its queue through note_execute instead of track_queue. QUEUE_FENCES is keyed by the raw queue pointer and never pruned, so a stored fence can outlive its queue. #1820's parity test asserts EnqueueSetEvent returns E_NOTIMPL and would conflict with this.
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:7300680329 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/876#issuecomment-7300680329). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:23:08Z. --- **Triage (#1607)** – head acb4c2e No open or merged PR implements IDXGIDevice2::EnqueueSetEvent. Although GitHub reports it mergeable, it will not build on current main: enqueue() calls present::known_queues(), which 6dacfa4b replaced with known_queues_held() / active_queues_held() (queues can now be retiring, and active_queues_held is the snapshot for internal signals), and the test registers its queue through note_execute instead of track_queue. QUEUE_FENCES is keyed by the raw queue pointer and never pruned, so a stored fence can outlive its queue. #1820's parity test asserts EnqueueSetEvent returns E_NOTIMPL and would conflict with this. 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/876:upstream-pr/876'
git switch 'upstream-pr/876'

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