Skip to content

[upstream #1156] D3D12.X: release the interface returned by QueryInterface - #6

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1156
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1156

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

D3D12 interface discovery now releases the reference through the interface returned by QueryInterface. In the DRED and debug-layer configuration, that pointer can belong to a different wrapper.

What is in it

  • Dispatch Release through the returned interface while keeping native dispatch when querying the same object.
  • Verify the call using two distinct interface tables.

Tested

  • Windows 11 26300.9974, RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC and DXC 1.9.2602.17.
  • The focused test failed before the change and passed after it. Workspace build and four-thread suite: 742 passed, 0 failed, 41 ignored, no explicit GPU capability skips.
  • With DRED and the D3D12 debug layer both enabled and identical 1x game settings, the baseline ended at startup. This exact head ran for 20 seconds, rendered 1,029 frames and exited cleanly. Resource-state warnings remain.

Regression run
Minecraft Preview 1.18.3064.0, normal D3D12 mode with identical 1x game profiles.

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 60
exit: 0x0
frames shown: 3463 (PresentX 3463)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3342 MB

PR:

xcl-smoke v1
commit: 256b3f2929e58a466b51ae8ca4fa6dcffabdbe14
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 60
exit: 0x0
frames shown: 3469 (PresentX 3469)
presents per 2 s (last 3): 120 120 121
device removals: 0
crashes: 0
peak commit: 3359 MB

Not tested

  • Other GPU vendors, gameplay beyond the menu, and tests requiring external XCL_SAMPLE_* files.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) investigated the startup, implemented the change and regression test, ran the tests, and drafted this description.

Mirror of xcl-dev#1156 (auto-synced, do not edit).

The DRED wrapper can return a different interface pointer. Dispatch Release through that pointer so the debug layer receives the matching interface.

Assisted-by: OpenAI Codex (GPT-6)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1156 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1156 branch November 25, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants