D3D12.X: answer IDXGIDevice3 and IDXGIDevice4 on console device shim #3384

Closed
Kalmarv wants to merge 1 commit from upstream-pr/3384 into main
Kalmarv commented 2026-11-29 11:49:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T11:49:53Z.


What is in it

  • Extend the console D3D12 device's IDXGIDevice shim (crates/xcl/src/hle/d3d12x/dxgi_device.rs) to answer IDXGIDevice3 and IDXGIDevice4 in answers() and expose their COM vtable slots:
    • slot 17 IDXGIDevice3::Trim (no-op on the PC D3D12 device wrapper).
    • slot 18 IDXGIDevice4::OfferResources1 (validates n > 0 && resources.is_null() -> E_INVALIDARG, returns S_OK).
    • slot 19 IDXGIDevice4::ReclaimResources1 (returns S_OK when n == 0, validates resources / results pointers, fills results[..n] with DXGI_RECLAIM_RESOURCE_RESULT_OK (0), returns S_OK).
  • Harden COM pointer/zero-count edge cases in the existing dxgi_device.rs methods: clear *out when qi receives a null riid, clear *out in get_parent on null riid or adapter() failure, and guard zero-count slices in query_resource_residency and reclaim_resources.
  • Add unit and WARP COM tests in dxgi_device.rs (answers_dxgi_device_interfaces_up_to_4 and warp_dxgi_device3_and_4_com_methods) verifying failing-before/passing-after IDXGIDevice3/IDXGIDevice4 queries, Trim, OfferResources1, ReclaimResources1 (populated, empty, and invalid-pointer cases), null-riid *out clearing, and COM identity round-trip back to ID3D12Device.

Tested

  • Verified new tests fail before the fix (answers_dxgi_device_interfaces_up_to_4 panicked on IDXGIDevice3; warp_dxgi_device3_and_4_com_methods returned E_NOINTERFACE (0x80004002) on QueryInterface(IDXGIDevice3)).
  • Targeted tests after the fix (cargo test -p xcl --lib -j 4 -- hle::d3d12x::dxgi_device:: --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: ef25f34c224d579eca78cad660268d727bc97b4e
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1582 (PresentX 1582)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 33835 MB

Not tested

  • No retail title in our smoke setup queries IDXGIDevice3 or IDXGIDevice4 on the device; coverage of Trim, OfferResources1, and ReclaimResources1 comes from the synthetic WARP COM test.
  • 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:5550415568 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T11:49:53Z. --- **What is in it** - Extend the console D3D12 device's `IDXGIDevice` shim (`crates/xcl/src/hle/d3d12x/dxgi_device.rs`) to answer `IDXGIDevice3` and `IDXGIDevice4` in `answers()` and expose their COM vtable slots: - slot 17 `IDXGIDevice3::Trim` (no-op on the PC D3D12 device wrapper). - slot 18 `IDXGIDevice4::OfferResources1` (validates `n > 0 && resources.is_null() -> E_INVALIDARG`, returns `S_OK`). - slot 19 `IDXGIDevice4::ReclaimResources1` (returns `S_OK` when `n == 0`, validates `resources` / `results` pointers, fills `results[..n]` with `DXGI_RECLAIM_RESOURCE_RESULT_OK` (`0`), returns `S_OK`). - Harden COM pointer/zero-count edge cases in the existing `dxgi_device.rs` methods: clear `*out` when `qi` receives a null `riid`, clear `*out` in `get_parent` on null `riid` or `adapter()` failure, and guard zero-count slices in `query_resource_residency` and `reclaim_resources`. - Add unit and WARP COM tests in `dxgi_device.rs` (`answers_dxgi_device_interfaces_up_to_4` and `warp_dxgi_device3_and_4_com_methods`) verifying failing-before/passing-after `IDXGIDevice3`/`IDXGIDevice4` queries, `Trim`, `OfferResources1`, `ReclaimResources1` (populated, empty, and invalid-pointer cases), null-`riid` `*out` clearing, and COM identity round-trip back to `ID3D12Device`. **Tested** - Verified new tests fail before the fix (`answers_dxgi_device_interfaces_up_to_4` panicked on `IDXGIDevice3`; `warp_dxgi_device3_and_4_com_methods` returned `E_NOINTERFACE` (`0x80004002`) on `QueryInterface(IDXGIDevice3)`). - Targeted tests after the fix (`cargo test -p xcl --lib -j 4 -- hle::d3d12x::dxgi_device:: --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: ef25f34c224d579eca78cad660268d727bc97b4e gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1582 (PresentX 1582) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 33835 MB ``` **Not tested** - No retail title in our smoke setup queries `IDXGIDevice3` or `IDXGIDevice4` on the device; coverage of `Trim`, `OfferResources1`, and `ReclaimResources1` comes from the synthetic WARP COM test. - `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.
Foniass commented 2026-12-01 04:57:08 +00:00 (Migrated from github.com)

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


merge-check
base: d0832e614f
head: ef25f34c22
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 (dxgi_device.rs, +138/-12). A console title asking the device for IDXGIDevice3 or IDXGIDevice4 now gets the shim instead of E_NOINTERFACE. Findings: (1) Not tested says no title asks for these interfaces, and nothing shows the console device exposes them, so the need isn't shown. (2) Unrelated hardening is bundled in: clearing *out in qi / get_parent (~88-93, ~137-151) and zero-count guards (~182, ~222) that change nothing since the pointer was already checked for null; CONTRIBUTING puts that in its own PR. (3) OfferResources1 (~241-246) doesn't check its priority or flags, which real DXGI rejects. (4) AI use names no tool or model; no what-and-why paragraph or issue link. Fine: the vtable layout is right (Trim at slot 17, OfferResources1 at 18, ReclaimResources1 at 19, 20 slots in all, matching DXGI), reference counts and the QI path back to the device are correct, a no-op Trim is fine for D3D12, ReclaimResources1 reports every resource as kept, and the test calls each new slot through the windows crate's IDXGIDevice4 vtable with skip_test.
performance: 60 s smoke of a retail title, main d0832e61 vs this merge (8852640f): 1516 -> 1665 frames shown (109 %; last presents per 2 s: 60 60 60), peak commit 18133 -> 16915 MB, 0 device removals, 0 crashes.
verdict: safe to merge (the unrelated hardening should be its own PR, and the description should say which title asks for IDXGIDevice3/4)
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:7301269064 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384#issuecomment-7301269064). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:57:08Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: ef25f34c224d579eca78cad660268d727bc97b4e 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 (dxgi_device.rs, +138/-12). A console title asking the device for IDXGIDevice3 or IDXGIDevice4 now gets the shim instead of E_NOINTERFACE. Findings: (1) **Not tested** says no title asks for these interfaces, and nothing shows the console device exposes them, so the need isn't shown. (2) Unrelated hardening is bundled in: clearing `*out` in `qi` / `get_parent` (~88-93, ~137-151) and zero-count guards (~182, ~222) that change nothing since the pointer was already checked for null; CONTRIBUTING puts that in its own PR. (3) `OfferResources1` (~241-246) doesn't check its priority or flags, which real DXGI rejects. (4) AI use names no tool or model; no what-and-why paragraph or issue link. Fine: the vtable layout is right (Trim at slot 17, OfferResources1 at 18, ReclaimResources1 at 19, 20 slots in all, matching DXGI), reference counts and the QI path back to the device are correct, a no-op Trim is fine for D3D12, ReclaimResources1 reports every resource as kept, and the test calls each new slot through the `windows` crate's IDXGIDevice4 vtable with `skip_test`. performance: 60 s smoke of a retail title, main d0832e61 vs this merge (8852640f): 1516 -> 1665 frames shown (109 %; last presents per 2 s: 60 60 60), peak commit 18133 -> 16915 MB, 0 device removals, 0 crashes. verdict: safe to merge (the unrelated hardening should be its own PR, and the description should say which title asks for IDXGIDevice3/4) 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.
bmjask commented 2026-12-02 02:44:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T02:44:32Z.

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

@@ -207,3 +233,103 @@ unsafe extern "system" fn enqueue_set_event(_p: *mut c_void, _event: *mut c_void
     }
     E_NOTIMPL
 }
+
+/// IDXGIDevice3::Trim (no-op; D3D12 manages residency explicitly)
+unsafe extern "system" fn trim(_p: *mut c_void) {}
+
+/// IDXGIDevice4::OfferResources1
+unsafe extern "system" fn offer_resources1(_p: *mut c_void, n: u32, resources: *const *mut c_void, _priority: i32, _flags: u32) -> HRESULT {

offer_resources1 / reclaim_resources1 copy the IDXGIDevice2 versions with different validation, so the same input behaves differently by interface. OfferResources(1, NULL, prio) returns S_OK but OfferResources1(1, NULL, prio, 0) returns E_INVALIDARG, and ReclaimResources(1, NULL, out) returns S_OK but ReclaimResources1(1, NULL, out) returns E_INVALIDARG. OfferResources1 also accepts undefined flag bits (e.g. 0xFFFF). One shared helper per pair, with offer_resources1 checking flags & !DXGI_OFFER_RESOURCE_FLAG_ALLOW_DECOMMIT, would keep them consistent.

<!-- greyfinch-sync:ivall/xcl:review-comment:4764028643 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384#discussion_r4764028643). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T02:44:32Z. **Code review location:** `crates/xcl/src/hle/d3d12x/dxgi_device.rs`; line 241 ~~~~diff @@ -207,3 +233,103 @@ unsafe extern "system" fn enqueue_set_event(_p: *mut c_void, _event: *mut c_void } E_NOTIMPL } + +/// IDXGIDevice3::Trim (no-op; D3D12 manages residency explicitly) +unsafe extern "system" fn trim(_p: *mut c_void) {} + +/// IDXGIDevice4::OfferResources1 +unsafe extern "system" fn offer_resources1(_p: *mut c_void, n: u32, resources: *const *mut c_void, _priority: i32, _flags: u32) -> HRESULT { ~~~~ --- `offer_resources1` / `reclaim_resources1` copy the IDXGIDevice2 versions with different validation, so the same input behaves differently by interface. `OfferResources(1, NULL, prio)` returns S_OK but `OfferResources1(1, NULL, prio, 0)` returns E_INVALIDARG, and `ReclaimResources(1, NULL, out)` returns S_OK but `ReclaimResources1(1, NULL, out)` returns E_INVALIDARG. `OfferResources1` also accepts undefined flag bits (e.g. 0xFFFF). One shared helper per pair, with offer_resources1 checking `flags & !DXGI_OFFER_RESOURCE_FLAG_ALLOW_DECOMMIT`, would keep them consistent.
bmjask commented 2026-12-02 02:44:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T02:44:32Z.

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

@@ -207,3 +233,103 @@ unsafe extern "system" fn enqueue_set_event(_p: *mut c_void, _event: *mut c_void
     }
     E_NOTIMPL
 }
+
+/// IDXGIDevice3::Trim (no-op; D3D12 manages residency explicitly)
+unsafe extern "system" fn trim(_p: *mut c_void) {}
+
+/// IDXGIDevice4::OfferResources1
+unsafe extern "system" fn offer_resources1(_p: *mut c_void, n: u32, resources: *const *mut c_void, _priority: i32, _flags: u32) -> HRESULT {
+    if n > 0 && resources.is_null() {
+        return E_INVALIDARG;
+    }
+    S_OK
+}
+
+/// IDXGIDevice4::ReclaimResources1: nothing was discarded (`DXGI_RECLAIM_RESOURCE_RESULT_OK = 0`)
+unsafe extern "system" fn reclaim_resources1(_p: *mut c_void, n: u32, resources: *const *mut c_void, results: *mut i32) -> HRESULT {
+    if n == 0 {
+        return S_OK;
+    }
+    if resources.is_null() {
+        return E_INVALIDARG;
+    }
+    if results.is_null() {

Not certain about this one: reclaim_resources1 returns E_POINTER when pResults is null, but the IDXGIDevice2 reclaim_resources here accepts a null output, and as far as I know DXGI allows NULL when the caller will refill the resources anyway. A title calling ReclaimResources1(n, resources, NULL) gets 0x80004003 instead of S_OK, and a FAILED() check may skip or stop. The new test asserts E_POINTER, which locks this in.

<!-- greyfinch-sync:ivall/xcl:review-comment:4764028649 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384#discussion_r4764028649). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T02:44:32Z. **Code review location:** `crates/xcl/src/hle/d3d12x/dxgi_device.rs`; line 256 ~~~~diff @@ -207,3 +233,103 @@ unsafe extern "system" fn enqueue_set_event(_p: *mut c_void, _event: *mut c_void } E_NOTIMPL } + +/// IDXGIDevice3::Trim (no-op; D3D12 manages residency explicitly) +unsafe extern "system" fn trim(_p: *mut c_void) {} + +/// IDXGIDevice4::OfferResources1 +unsafe extern "system" fn offer_resources1(_p: *mut c_void, n: u32, resources: *const *mut c_void, _priority: i32, _flags: u32) -> HRESULT { + if n > 0 && resources.is_null() { + return E_INVALIDARG; + } + S_OK +} + +/// IDXGIDevice4::ReclaimResources1: nothing was discarded (`DXGI_RECLAIM_RESOURCE_RESULT_OK = 0`) +unsafe extern "system" fn reclaim_resources1(_p: *mut c_void, n: u32, resources: *const *mut c_void, results: *mut i32) -> HRESULT { + if n == 0 { + return S_OK; + } + if resources.is_null() { + return E_INVALIDARG; + } + if results.is_null() { ~~~~ --- Not certain about this one: `reclaim_resources1` returns E_POINTER when pResults is null, but the IDXGIDevice2 `reclaim_resources` here accepts a null output, and as far as I know DXGI allows NULL when the caller will refill the resources anyway. A title calling `ReclaimResources1(n, resources, NULL)` gets 0x80004003 instead of S_OK, and a FAILED() check may skip or stop. The new test asserts E_POINTER, which locks this in.
bmjask commented 2026-12-02 02:44:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T02:44:32Z.

Review: COMMENTED


Review of ef25f34c: 3 finding(s). 2 are inline. These are on lines outside the diff:

crates/xcl/src/hle/d3d12x/real.rs:4069: dev_qi_x calls dxgi_device::create on every QueryInterface, so each IDXGIDevice/1/2/3/4 query returns a separate DxgiDevice with its own priority and latency state. Answering two more versions makes this easier to hit. device->QI(IDXGIDevice1)->SetMaximumFrameLatency(1) followed by device->QI(IDXGIDevice4)->GetMaximumFrameLatency returns 3 (a fresh object's default), and SetGPUThreadPriority / GetGPUThreadPriority split the same way. Caching one DxgiDevice per console device would fix it.


These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.

<!-- greyfinch-sync:ivall/xcl:review:6143914078 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384#pullrequestreview-6143914078). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T02:44:32Z. **Review:** COMMENTED --- Review of `ef25f34c`: 3 finding(s). 2 are inline. These are on lines outside the diff: **`crates/xcl/src/hle/d3d12x/real.rs:4069`**: `dev_qi_x` calls `dxgi_device::create` on every QueryInterface, so each IDXGIDevice/1/2/3/4 query returns a separate DxgiDevice with its own priority and latency state. Answering two more versions makes this easier to hit. `device->QI(IDXGIDevice1)->SetMaximumFrameLatency(1)` followed by `device->QI(IDXGIDevice4)->GetMaximumFrameLatency` returns 3 (a fresh object's default), and SetGPUThreadPriority / GetGPUThreadPriority split the same way. Caching one DxgiDevice per console device would fix it. --- _These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it._
stijn-boer commented 2026-12-02 18:18:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:18:21Z.


merge-check
base: 817eb1fc9f
head: ef25f34c22
verdict: not yet: the focused WARP COM checks passed and the workspace and smoke exits reproduced on main. The AMD runtime path for the new DXGI interfaces was unverified.

Windows / AMD RDNA4 (native D3D12) — DXGI device interface checks on ef25f34

Clean merge onto main at 817eb1f (merge commit fc5fc9d2d99575fdb0c1b0638a3966bc8de5df1b). git diff --check was clean.

Setup

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332
  • Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching d3d12SDKLayers.dll, DXC 1.9.2609.5

Tested

cargo build --workspace passed. cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command.

Build Passed Failed Ignored SKIPPED notices
main 340 3 23 0
Merged PR 340 3 23 0

Counts are partial because two test processes aborted on each build.

  • Tests that failed on the PR and passed on main — none observed in the comparable results.
  • New focused tests — dxgi_device::tests:: yielded 2 passed, 0 failed, 0 ignored, 0 skip notices with --test-threads=1 --show-output --nocapture. The WARP test exercised interface queries through IDXGIDevice4, Trim, empty and populated resource arrays, and invalid reclaim and query pointers.
  • Debug-layer coverage — both debug-layer E2E tests, including DRED, and uploads_start_from_each_subresources_state passed.
Shared failures and process aborts
  • fuzz_validate_and_gpu_1, fuzz_validate_and_gpu_3, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs reported failures on both builds.
  • The library and gpu_compute_e2e test processes exited with 0xc0000409 on both builds.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary> with XCL_UMA_DRIVER=mixed for title hash 2c508222.

Build Exit Frames logged Device removals logged Peak commit
main 0xc0000409 None 0 1321 MB
Merged PR, first attempt 0xc0000409 None 0 5512 MB
Merged PR, repeat from fresh data root 0xc0000409 None 0 1320 MB

The first run's higher startup commit did not reproduce. These exits leave retail use of the new interfaces unverified.

Diff review

The WARP test confirmed QueryInterface routing and the return codes it directly invokes. OfferResources1 with a nonzero count and a null resource-array pointer is handled in the implementation. The test only calls OfferResources1 through the safe slice wrapper.

Not tested

Remaining workspace tests after the aborts, retail performance, the runtime's AMD call path for the new DXGI interfaces, and the raw OfferResources1 null-array call.

AI use

Codex (GPT-6) merged and built the PR, ran the tests, compared the results with main, reviewed the diff, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7354333251 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384#issuecomment-7354333251). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T18:18:21Z. --- merge-check base: 817eb1fc9fb0763008ae5d8de1f7f586f442b51d head: ef25f34c224d579eca78cad660268d727bc97b4e verdict: not yet: the focused WARP COM checks passed and the workspace and smoke exits reproduced on main. The AMD runtime path for the new DXGI interfaces was unverified. **Windows / AMD RDNA4 (native D3D12) — DXGI device interface checks on `ef25f34`** Clean merge onto `main` at `817eb1f` (merge commit `fc5fc9d2d99575fdb0c1b0638a3966bc8de5df1b`). `git diff --check` was clean. **Setup** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 - Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching `d3d12SDKLayers.dll`, DXC 1.9.2609.5 **Tested** `cargo build --workspace` passed. `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command. | Build | Passed | Failed | Ignored | `SKIPPED` notices | |---|---:|---:|---:|---:| | `main` | 340 | 3 | 23 | 0 | | Merged PR | 340 | 3 | 23 | 0 | Counts are partial because two test processes aborted on each build. - **Tests that failed on the PR and passed on `main`** — none observed in the comparable results. - **New focused tests** — `dxgi_device::tests::` yielded 2 passed, 0 failed, 0 ignored, 0 skip notices with `--test-threads=1 --show-output --nocapture`. The WARP test exercised interface queries through IDXGIDevice4, Trim, empty and populated resource arrays, and invalid reclaim and query pointers. - **Debug-layer coverage** — both debug-layer E2E tests, including DRED, and `uploads_start_from_each_subresources_state` passed. <details><summary>Shared failures and process aborts</summary> - `fuzz_validate_and_gpu_1`, `fuzz_validate_and_gpu_3`, and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` reported failures on both builds. - The library and `gpu_compute_e2e` test processes exited with `0xc0000409` on both builds. </details> **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>` with `XCL_UMA_DRIVER=mixed` for title hash `2c508222`. | Build | Exit | Frames logged | Device removals logged | Peak commit | |---|---|---|---:|---:| | `main` | `0xc0000409` | None | 0 | 1321 MB | | Merged PR, first attempt | `0xc0000409` | None | 0 | 5512 MB | | Merged PR, repeat from fresh data root | `0xc0000409` | None | 0 | 1320 MB | The first run's higher startup commit did not reproduce. These exits leave retail use of the new interfaces unverified. **Diff review** The WARP test confirmed QueryInterface routing and the return codes it directly invokes. OfferResources1 with a nonzero count and a null resource-array pointer is handled in the implementation. The test only calls OfferResources1 through the safe slice wrapper. **Not tested** Remaining workspace tests after the aborts, retail performance, the runtime's AMD call path for the new DXGI interfaces, and the raw OfferResources1 null-array call. **AI use** Codex (GPT-6) merged and built the PR, ran the tests, compared the results with `main`, reviewed the diff, and drafted this report.
Kalmarv commented 2026-12-02 19:39:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T19:39:29Z.


Closing: speculative IDXGIDevice3/4 shim with no title requesting it and review findings on per-QI shim allocation and OfferResources1.

<!-- greyfinch-sync:ivall/xcl:comment:7356519183 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3384#issuecomment-7356519183). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-12-02T19:39:29Z. --- Closing: speculative `IDXGIDevice3/4` shim with no title requesting it and review findings on per-QI shim allocation and `OfferResources1`.

Pull request closed

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!3384
No description provided.