D3D12.X: strip console-only fence flags on CreateFence #3386

Merged
Kalmarv merged 1 commit from upstream-pr/3386 into main 2026-12-01 07:00:14 +00:00
Kalmarv commented 2026-11-29 12:14:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T12:14:46Z.


What is in it

  • Sanitize D3D12_FENCE_FLAGS in dev_create_fence (crates/xcl/src/hle/d3d12x/real.rs) via pc_fence_flags(flags) before calling PC CreateFence:
    • Strip console-only flag bits outside the valid PC mask 0x7 (D3D12_FENCE_FLAG_SHARED | D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER | D3D12_FENCE_FLAG_NON_MONITORED) and any upper-32-bit caller garbage, preventing PC CreateFence from rejecting console fence flags with E_INVALIDARG (0x80070057).
    • Log once when console-only fence flag bits are dropped.
  • Add unit and WARP integration tests in hle::d3d12x::real::fence_flags_tests (pc_fence_flags_strips_console_and_upper_bits and dev_create_fence_sanitizes_console_flags).

Tested

  • Verified dev_create_fence_sanitizes_console_flags fails before the fix on WARP with 0x80070057 (E_INVALIDARG) when passed console flag bit 0x10000.
  • Targeted tests after the fix (cargo test -p xcl --lib -j 4 -- hle::d3d12x::real::fence_flags_tests:: --nocapture): 2 passed, 0 failed, 0 ignored.
  • Full workspace suite (cargo test --workspace -j 2 -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests:: with XCL_DXC_DIR set to DXC 1.9 on RTX 5070 Ti): 41 test binaries, 2611 passed, 0 failed, 49 ignored, 9 filtered out.
  • SKIPPED breakdown (26 total): 21 no wave64 (RTX 5070 Ti is wave32), 3 refused (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32 #1426 semantics), 2 no heap windows (XCL_HEAP_WINDOWS=1 opt-in).

Regression run

xcl-smoke v1
commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1695 (PresentX 1695)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 31546 MB
xcl-smoke v1
commit: 2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1612 (PresentX 1612)
presents per 2 s (last 3): 54 11 0
device removals: 0
crashes: 0
peak commit: 33220 MB

Not tested

  • D3D12_FENCE_FLAG_NON_MONITORED was only checked in the pure bitmask unit test because the WARP software adapter does not support non-monitored fences.
  • Retail titles that pass console-only fence flags on CreateFence were not run directly; those paths are covered by the synthetic unit and WARP tests.
  • test_title_runs_and_game_folder_is_untouched, uma_driver::tests::, wave64 GPU tests, and XCL_HEAP_WINDOWS=1 opt-in unit tests were not run in the workspace suite.

AI use

  • Authored, verified, and tested with an AI coding agent; all changes and test results were verified directly against the local repository, compiler, test suite, and 150 s smoke run.
<!-- greyfinch-sync:ivall/xcl:issue:5550601089 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T12:14:46Z. --- **What is in it** - Sanitize `D3D12_FENCE_FLAGS` in `dev_create_fence` (`crates/xcl/src/hle/d3d12x/real.rs`) via `pc_fence_flags(flags)` before calling PC `CreateFence`: - Strip console-only flag bits outside the valid PC mask `0x7` (`D3D12_FENCE_FLAG_SHARED | D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER | D3D12_FENCE_FLAG_NON_MONITORED`) and any upper-32-bit caller garbage, preventing PC `CreateFence` from rejecting console fence flags with `E_INVALIDARG` (`0x80070057`). - Log once when console-only fence flag bits are dropped. - Add unit and WARP integration tests in `hle::d3d12x::real::fence_flags_tests` (`pc_fence_flags_strips_console_and_upper_bits` and `dev_create_fence_sanitizes_console_flags`). **Tested** - Verified `dev_create_fence_sanitizes_console_flags` fails before the fix on WARP with `0x80070057` (`E_INVALIDARG`) when passed console flag bit `0x10000`. - Targeted tests after the fix (`cargo test -p xcl --lib -j 4 -- hle::d3d12x::real::fence_flags_tests:: --nocapture`): 2 passed, 0 failed, 0 ignored. - Full workspace suite (`cargo test --workspace -j 2 -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests::` with `XCL_DXC_DIR` set to DXC 1.9 on RTX 5070 Ti): 41 test binaries, 2611 passed, 0 failed, 49 ignored, 9 filtered out. - `SKIPPED` breakdown (26 total): 21 `no wave64` (RTX 5070 Ti is wave32), 3 `refused` (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32` `#1426` semantics), 2 `no heap windows` (`XCL_HEAP_WINDOWS=1` opt-in). **Regression run** ``` xcl-smoke v1 commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1695 (PresentX 1695) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 31546 MB ``` ``` xcl-smoke v1 commit: 2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1612 (PresentX 1612) presents per 2 s (last 3): 54 11 0 device removals: 0 crashes: 0 peak commit: 33220 MB ``` **Not tested** - `D3D12_FENCE_FLAG_NON_MONITORED` was only checked in the pure bitmask unit test because the WARP software adapter does not support non-monitored fences. - Retail titles that pass console-only fence flags on `CreateFence` were not run directly; those paths are covered by the synthetic unit and WARP tests. - `test_title_runs_and_game_folder_is_untouched`, `uma_driver::tests::`, wave64 GPU tests, and `XCL_HEAP_WINDOWS=1` opt-in unit tests were not run in the workspace suite. **AI use** - Authored, verified, and tested with an AI coding agent; all changes and test results were verified directly against the local repository, compiler, test suite, and 150 s smoke run.
saintwolf commented 2026-11-29 14:20:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-29T14:20:58Z.


Reviewed and tested at 2e09e72f.

Looks clean and minimal — pc_fence_flags masks to the valid PC D3D12_FENCE_FLAGS bits and drops upper-32-bit garbage, logs once on console-only bits, and the isolated WARP child test covers all cases.

Tested locally

  • Windows 11 (build 26300), NVIDIA GeForce RTX 4070 SUPER (driver 32.0.16.2140), AMD Ryzen 7 7800X3D, rustc 1.100.0.
  • cargo test -p xcl --lib hle::d3d12x::real::fence_flags_tests:: -- --test-threads=1: 2 passed, 0 failed.

AI use

  • Antigravity (Gemini 4 Neon) assisted with code review and drafting; all builds and tests were executed locally on the hardware above.
<!-- greyfinch-sync:ivall/xcl:comment:7257233550 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386#issuecomment-7257233550). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-29T14:20:58Z. --- Reviewed and tested at `2e09e72f`. Looks clean and minimal — `pc_fence_flags` masks to the valid PC `D3D12_FENCE_FLAGS` bits and drops upper-32-bit garbage, logs once on console-only bits, and the isolated WARP child test covers all cases. ### Tested locally - Windows 11 (build 26300), NVIDIA GeForce RTX 4070 SUPER (driver `32.0.16.2140`), AMD Ryzen 7 7800X3D, `rustc 1.100.0`. - `cargo test -p xcl --lib hle::d3d12x::real::fence_flags_tests:: -- --test-threads=1`: **2 passed, 0 failed**. ### AI use - Antigravity (Gemini 4 Neon) assisted with code review and drafting; all builds and tests were executed locally on the hardware above.
ClosetPie107 commented 2026-11-30 16:03:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-30T16:03:06Z.


Test report for #3386 at 2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe, against its merge-base with main, d8bd9a38, under Wine on AMD.

Tested

  • RX 9070 16 GB (RDNA4), Mesa 26.3.1 RADV, Ryzen 5 9600X, CachyOS; Proton Experimental experimental-11.0-20261112, stock vkd3d-proton master 71cae091. Debug build, x86_64-pc-windows-gnu, under Wine. It wasn't run on Windows.
  • Command: cargo test --locked -p xcl --lib --target x86_64-pc-windows-gnu -- <filter>.
  • The PR's new tests, each alone (--test-threads=1 <name>): both pass: dev_create_fence_sanitizes_console_flags, pc_fence_flags_strips_console_and_upper_bits. 2 passed, 0 failed.
  • The lib suite at --test-threads=2, with --skip gpu:: and these six: failed_restore_stops_before_importing_an_unbacked_window, grooming_leaves_a_window_under_1_gib_only_its_hole (both run out of memory here), write_buffer_immediate_on_open_existing_heap_visible_to_cpu, coherent_buffer_sanitizes_console_flags_and_state, serialize_root_signature_strips_console_flags_and_preserves_pc_flags and execute_indirect_reads_the_arguments_written_before_it. Under Wine each of the last four ends the process or makes RADV reject later submissions (#3067), so without them the suite reaches its summary:
    • #3386 2e09e72f: 1511 passed, 113 failed, 5 ignored
    • base d8bd9a38: 1510 passed, 112 failed, 5 ignored
  • The only test failing on #3386 and not on the base is acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure (a memory counter, 8192 against 65536). #3386 doesn't touch that code; on this head the test passes 5 of 5 alone and in hle::acphal:: as a module, and it failed the same way once in the suite of #3305. So I take it for a flake of tests running side by side. Most of the base's failures under Wine are main's known ones on stock vkd3d-proton: list creation refused (E_INVALIDARG, #175 / #1701) and the tests after it (#3067).

Not tested

  • native Windows
  • NVIDIA
  • the gpu:: tests in the suite runs
  • the workspace's other crates and integration tests (only -p xcl --lib)
  • a game run (no regression block)

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7284034703 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386#issuecomment-7284034703). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-30T16:03:06Z. --- Test report for #3386 at `2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe`, against its merge-base with `main`, `d8bd9a38`, under Wine on AMD. **Tested** - RX 9070 16 GB (RDNA4), Mesa 26.3.1 RADV, Ryzen 5 9600X, CachyOS; Proton Experimental `experimental-11.0-20261112`, stock vkd3d-proton `master` `71cae091`. Debug build, `x86_64-pc-windows-gnu`, under Wine. It wasn't run on Windows. - Command: `cargo test --locked -p xcl --lib --target x86_64-pc-windows-gnu -- <filter>`. - The PR's new tests, each alone (`--test-threads=1 <name>`): both pass: `dev_create_fence_sanitizes_console_flags`, `pc_fence_flags_strips_console_and_upper_bits`. **2 passed, 0 failed.** - The lib suite at `--test-threads=2`, with `--skip gpu::` and these six: `failed_restore_stops_before_importing_an_unbacked_window`, `grooming_leaves_a_window_under_1_gib_only_its_hole` (both run out of memory here), `write_buffer_immediate_on_open_existing_heap_visible_to_cpu`, `coherent_buffer_sanitizes_console_flags_and_state`, `serialize_root_signature_strips_console_flags_and_preserves_pc_flags` and `execute_indirect_reads_the_arguments_written_before_it`. Under Wine each of the last four ends the process or makes RADV reject later submissions (#3067), so without them the suite reaches its summary: - #3386 `2e09e72f`: 1511 passed, 113 failed, 5 ignored - base `d8bd9a38`: 1510 passed, 112 failed, 5 ignored - The only test failing on #3386 and not on the base is `acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure` (a memory counter, 8192 against 65536). #3386 doesn't touch that code; on this head the test passes 5 of 5 alone and in `hle::acphal::` as a module, and it failed the same way once in the suite of #3305. So I take it for a flake of tests running side by side. Most of the base's failures under Wine are `main`'s known ones on stock vkd3d-proton: list creation refused (`E_INVALIDARG`, #175 / #1701) and the tests after it (#3067). **Not tested** - native Windows - NVIDIA - the `gpu::` tests in the suite runs - the workspace's other crates and integration tests (only `-p xcl --lib`) - a game run (no regression block) AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Foniass commented 2026-12-01 04:51:32 +00:00 (Migrated from github.com)

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


merge-check
base: d0832e614f
head: 2e09e72ff5
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (real.rs, +85/-2). Every CreateFence now has its flags masked to the PC's valid ones (SHARED, SHARED_CROSS_ADAPTER, NON_MONITORED); XCL's own NONE calls are unchanged. Findings: (1) the description doesn't say which console fence bits these are, what they mean on the console, or which title sends them, and Not tested says no such title was run, so the need isn't shown. (2) The log fires once per process (~4807-4811), so later, different console bits are dropped silently; logging each new combination once would keep that visible. (3) dev_create_fence_sanitizes_console_flags runs in a child process whose output is dropped on success, so a skip_test there shows as a plain pass (same pattern as console_heap.rs). (4) AI use names no tool or model; no what-and-why paragraph or issue link. Fine: dropping the upper 32 bits is right for a 32-bit enum, fence tracking and the extra reference are unchanged, the child process keeps adopt's vtable patch out of other tests, and the bitmask unit test checks the mask.
performance: 60 s smoke of a retail title, main d0832e61 vs this merge (7fd32a77): 1516 -> 1667 frames shown (109 %; last presents per 2 s: 60 61 60), peak commit 18133 -> 17027 MB, 0 device removals, 0 crashes. git diff --check flags a new blank line at the end of real.rs.
verdict: safe to merge (say which title sends the console fence bits, and log each new combination rather than once per process)
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7301174471 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386#issuecomment-7301174471). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:51:32Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: 2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff (real.rs, +85/-2). Every CreateFence now has its flags masked to the PC's valid ones (SHARED, SHARED_CROSS_ADAPTER, NON_MONITORED); XCL's own NONE calls are unchanged. Findings: (1) the description doesn't say which console fence bits these are, what they mean on the console, or which title sends them, and **Not tested** says no such title was run, so the need isn't shown. (2) The log fires once per process (~4807-4811), so later, different console bits are dropped silently; logging each new combination once would keep that visible. (3) `dev_create_fence_sanitizes_console_flags` runs in a child process whose output is dropped on success, so a `skip_test` there shows as a plain pass (same pattern as console_heap.rs). (4) AI use names no tool or model; no what-and-why paragraph or issue link. Fine: dropping the upper 32 bits is right for a 32-bit enum, fence tracking and the extra reference are unchanged, the child process keeps `adopt`'s vtable patch out of other tests, and the bitmask unit test checks the mask. performance: 60 s smoke of a retail title, main d0832e61 vs this merge (7fd32a77): 1516 -> 1667 frames shown (109 %; last presents per 2 s: 60 61 60), peak commit 18133 -> 17027 MB, 0 device removals, 0 crashes. git diff --check flags a new blank line at the end of real.rs. verdict: safe to merge (say which title sends the console fence bits, and log each new combination rather than once per process) hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
thehollowedone commented 2026-12-01 05:08:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-12-01T05:08:55Z.


Source review of head 2e09e72f: pc_fence_flags keeps only bits 0x1|0x2|0x4. Microsoft's current D3D12 header also defines D3D12_FENCE_FLAG_ALLOW_COMMAND_LIST_BARRIERS (0x8) and D3D12_FENCE_FLAG_ALLOW_QUEUE_AND_CPU_SYNC (0x10). Agility SDK 1.620 retail includes Fence Barriers Tier 1. The PR's test treats 0x8 as console-only.

On a runtime and device supporting fence barriers, CreateFence(value, 0x18) therefore reaches native D3D12 as CreateFence(value, 0). That changes the fence contract: Microsoft specifies these flags for command-list barriers and queue/CPU synchronization. This is a source-level compatibility concern; I have not measured a title or GPU failure from it.

Please preserve the two defined PC bits while stripping confirmed console-only bits and upper-32-bit garbage. Let native D3D12 validate feature support and flag combinations rather than silently changing valid requested flags. Replace the 0x8-is-console-only test and add a regression such as pc_fence_flags(0x10018) == 0x18. On a fence-barrier-capable adapter, check that ID3D12Fence1::GetCreationFlags retains the requested bits; keep a separate test for the confirmed console-only bit.

Minimal mask and unit-test candidate
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
@@
 const PC_FENCE_FLAGS_MASK: u32 = (D3D12_FENCE_FLAG_SHARED.0
     | D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER.0
-    | D3D12_FENCE_FLAG_NON_MONITORED.0) as u32;
+    | D3D12_FENCE_FLAG_NON_MONITORED.0
+    | 0x8  // D3D12_FENCE_FLAG_ALLOW_COMMAND_LIST_BARRIERS
+    | 0x10) as u32; // D3D12_FENCE_FLAG_ALLOW_QUEUE_AND_CPU_SYNC
@@
-        assert_eq!(pc_fence_flags(0x8 | non_mon), non_mon);
+        assert_eq!(pc_fence_flags(0x8 | non_mon), 0x8 | non_mon);
+        assert_eq!(pc_fence_flags(0x10018), 0x18);

The candidate above illustrates the mask change; use the SDK's named constants if available in the binding. This review did not run builds, tests, or a title. AI use: OpenAI Codex (GPT-6.2 Sol) traced the PR and current D3D12 definitions; OpenAI Codex (GPT-6.2 Astra) independently checked the fence-barrier contract.

<!-- greyfinch-sync:ivall/xcl:comment:7301469520 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386#issuecomment-7301469520). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-12-01T05:08:55Z. --- Source review of [head `2e09e72f`](https://github.com/xcl-dev/xcl/commit/2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe): [`pc_fence_flags`](https://github.com/xcl-dev/xcl/blob/2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe/crates/xcl/src/hle/d3d12x/real.rs#L4794-L4803) keeps only bits `0x1|0x2|0x4`. Microsoft's current [D3D12 header](https://github.com/microsoft/DirectX-Headers/blob/main/include/directx/d3d12.h#L4292-L4300) also defines `D3D12_FENCE_FLAG_ALLOW_COMMAND_LIST_BARRIERS` (`0x8`) and `D3D12_FENCE_FLAG_ALLOW_QUEUE_AND_CPU_SYNC` (`0x10`). [Agility SDK 1.620 retail](https://devblogs.microsoft.com/directx/agilitysdk-1-620-retail-and-1-722-preview/) includes Fence Barriers Tier 1. The PR's test treats `0x8` as console-only. On a runtime and device supporting fence barriers, `CreateFence(value, 0x18)` therefore reaches native D3D12 as `CreateFence(value, 0)`. That changes the fence contract: [Microsoft specifies](https://microsoft.github.io/DirectX-Specs/d3d/D3D12EnhancedBarriers.html#fence-creation-flags-supporting-fence-barriers) these flags for command-list barriers and queue/CPU synchronization. This is a source-level compatibility concern; I have not measured a title or GPU failure from it. Please preserve the two defined PC bits while stripping confirmed console-only bits and upper-32-bit garbage. Let native D3D12 validate feature support and flag combinations rather than silently changing valid requested flags. Replace the `0x8`-is-console-only test and add a regression such as `pc_fence_flags(0x10018) == 0x18`. On a fence-barrier-capable adapter, check that `ID3D12Fence1::GetCreationFlags` retains the requested bits; keep a separate test for the confirmed console-only bit. <details> <summary>Minimal mask and unit-test candidate</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs @@ const PC_FENCE_FLAGS_MASK: u32 = (D3D12_FENCE_FLAG_SHARED.0 | D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER.0 - | D3D12_FENCE_FLAG_NON_MONITORED.0) as u32; + | D3D12_FENCE_FLAG_NON_MONITORED.0 + | 0x8 // D3D12_FENCE_FLAG_ALLOW_COMMAND_LIST_BARRIERS + | 0x10) as u32; // D3D12_FENCE_FLAG_ALLOW_QUEUE_AND_CPU_SYNC @@ - assert_eq!(pc_fence_flags(0x8 | non_mon), non_mon); + assert_eq!(pc_fence_flags(0x8 | non_mon), 0x8 | non_mon); + assert_eq!(pc_fence_flags(0x10018), 0x18); ``` </details> The candidate above illustrates the mask change; use the SDK's named constants if available in the binding. This review did not run builds, tests, or a title. AI use: OpenAI Codex (GPT-6.2 Sol) traced the PR and current D3D12 definitions; OpenAI Codex (GPT-6.2 Astra) independently checked the fence-barrier contract.
throny commented 2026-12-01 06:55:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T06:55:35Z.


merge-check
base: d0832e614f
head: 2e09e72ff5
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; failing: none (25 SKIPPED lines, all GPU tests on this adapter, e.g. no wave64)
review: Read the whole diff (1 file, real.rs). CreateFence now masks the flags to the PC's valid set (SHARED, SHARED_CROSS_ADAPTER, NON_MONITORED) and drops upper-32-bit garbage, logging the first dropped value once. The tests cover the helper and a WARP-device run of dev_create_fence (child process of the test binary, the only process code) with console bits, checking creation, the completed value and tracking. The child returns silently when WARP is missing. Scope is one function; the stripped bits were invalid on the PC anyway.
performance: no cost: one mask per fence creation and one atomic load on the rare path; reasoned, not measured.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report (the diff review is Sonnet's)

<!-- greyfinch-sync:ivall/xcl:comment:7303442659 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386#issuecomment-7303442659). Originally posted by [throny](https://github.com/throny) on 2026-12-01T06:55:35Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: 2e09e72ff5b8f91736fdfaa46a5b1242e6edecbe merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; failing: none (25 SKIPPED lines, all GPU tests on this adapter, e.g. no wave64) review: Read the whole diff (1 file, real.rs). CreateFence now masks the flags to the PC's valid set (SHARED, SHARED_CROSS_ADAPTER, NON_MONITORED) and drops upper-32-bit garbage, logging the first dropped value once. The tests cover the helper and a WARP-device run of dev_create_fence (child process of the test binary, the only process code) with console bits, checking creation, the completed value and tracking. The child returns silently when WARP is missing. Scope is one function; the stripped bits were invalid on the PC anyway. performance: no cost: one mask per fence creation and one atomic load on the rare path; reasoned, not measured. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report (the diff review is Sonnet's)
throny commented 2026-12-01 07:00:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:00:32Z.


Merged at the checked head after a combined trial of #3400, #3386, #3393 and #3535 on main d0832e61 (RTX 4080 16 GB, cargo test --workspace --no-fail-fast -- --test-threads=4: 2896 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks: Foniass and ours.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7303536405 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3386#issuecomment-7303536405). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:00:32Z. --- Merged at the checked head after a combined trial of #3400, #3386, #3393 and #3535 on `main` `d0832e61` (RTX 4080 16 GB, `cargo test --workspace --no-fail-fast -- --test-threads=4`: 2896 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks: Foniass and ours. AI use: Claude Code (Claude Opus 5.5).
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!3386
No description provided.