Skip to content

D3D12.X: unmodelled console resource and counter-set creators fail visibly - #3161

Draft
KOLESNiii wants to merge 1 commit into
xcl-dev:mainfrom
KOLESNiii:d3d12x-device-x-unwired-outputs
Draft

KOLESNiii wants to merge 1 commit into
xcl-dev:mainfrom
KOLESNiii:d3d12x-device-x-unwired-outputs

Conversation

@KOLESNiii

@KOLESNiii KOLESNiii commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Status: a guess that needs evidence before it can be merged. Which methods device slots #45, #77 and #82 are, and where their out pointers are is reasoned from how titles call the API and from the PC's D3D12; it is not taken from any console documentation, and no title has confirmed it yet. Draft until then.

Evidence that would confirm it: on main this slot is a logged stub, so a title that calls it shows ID3D12Device::#45 in xcl.log and in report.json's stubs; an XCL_D3D12_TRACE=1 run of such a title shows its arguments (and #77, #82). The retail game used for the regression run does not get there.

If you run a title that gets there, please post those lines here (not the whole log, which names your paths).

Device #45 and #77 create a resource whose planes and metadata sit at separate GPU addresses: #45 takes the PC resource desc, #77 the console desc. Device #82 creates a performance-counter set. All three were logging stubs that returned S_OK without writing their out pointer, so a title carried on with whatever its out variable held. They now fail visibly with E_NOTIMPL.

What is in it

Other unwired device slots (#46/#47 views with the console view desc, #59 default MSAA parameters, #68 GPU hardware configuration) are left as they are. Their argument layout could not be confirmed here, and no title on this PC calls them.

Tested

  • NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0 MSVC; tests in debug

  • Rebased onto main 309c3ec5 (main's MSAA test fix) on 2026-11-28. cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 on b7c894d5: 2143 passed, 0 failed, 48 ignored; 25 SKIPPED (21 no wave64, 3 refused gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 forms, 1 no heap windows).

  • New test device_x::tests::unmodelled_object_creators_return_e_notimpl_and_a_null_object: ok. It tests the new functions.

Regression run

RTX 2070 SUPER, the retail game, 60 s, XCL_PRESS_AT=25:A, XCL_PREPARE=0 (no startup shader preparation), release builds, one queue job (main, then #3161) with the same starting DXIL cache for every run.

main:


xcl-smoke v1

commit: 309c3ec5a25ea231ddbe01f76748ab8ed3d9d953

gpu: NVIDIA GeForce RTX 2070 SUPER

title: retail game

seconds: 60

exit: 0x0

frames shown: 1297 (PresentX 1298)

presents per 2 s (last 3): 60 60 61

device removals: 0

crashes: 0

peak commit: 14701 MB

This PR's head:


xcl-smoke v1

commit: b7c894d5e4e63b4229396c6a5da19ca599376781

gpu: NVIDIA GeForce RTX 2070 SUPER

title: retail game

seconds: 60

exit: 0x0

frames shown: 1332 (PresentX 1332)

presents per 2 s (last 3): 60 60 60

device removals: 0

crashes: 0

peak commit: 14832 MB

Not tested

AI use

  • Claude Code, Claude Opus 5.5 (earlier steps of this session ran on Claude Sonnet 5.5): wrote the code, the test and this description; ran the tests.

  • Claude Code (Claude Opus 5.5) rebased it onto main 309c3ec5, ran the suite and the regression runs and updated this description.

🤖 Generated with Claude Code

@KOLESNiii
KOLESNiii force-pushed the d3d12x-device-x-unwired-outputs branch from 2b0aca7 to b7c894d Compare November 28, 2026 15:30
@JJAutoCompare

Copy link
Copy Markdown

Tested

Independently reran the pinned xcl library test executable for b7c894d5e4e63b4229396c6a5da19ca599376781 on Windows 11 x64 build 26200.9974 with a Ryzen 7 3800X. The executable was built with Rust 1.100.1 (x86_64 MSVC) from the exact-head source plus one private #[cfg(test)] fixture. I verified the source provenance and reran the existing binary.

xcl-8941870b96d3eddf.exe hle::d3d12x::real::pr3161_slot_verification::unsupported_creators_use_production_device_slots --exact --nocapture --test-threads=1
xcl-8941870b96d3eddf.exe hle::d3d12x::device_x::tests::unmodelled_object_creators_return_e_notimpl_and_a_null_object --exact --nocapture --test-threads=1

Both native processes exited 0. Total was 2 passed, 0 failed, 0 ignored, 0 skipped. Slots 45, 77, and 82 each occurred once in the production console device slot table and matched their typed handlers. Calls through those entries returned E_NOTIMPL (0x80004001). Slots 45 and 77 cleared the output cell while preserving both guards and the marker. They also returned E_NOTIMPL when given a null output parameter. The fixture called slot 82 with its declared receiver argument.

Not tested

Live vtable adoption, COM devices, undocumented slot 82 output ABI, GPU, title smoke, and the workspace suite.

AI use

T3 Code through Codex (gpt-6.2-sol, high) prepared the private fixture, verified the source and executable pins, independently reran both tests, and drafted this report.

…sibly

Device xcl-dev#45 and xcl-dev#77 (a resource whose planes and metadata sit at separate
GPU addresses, with the PC or the console resource desc) and xcl-dev#82 (a
performance-counter set) were logging stubs that returned S_OK without
writing their out pointer, so a title went on with whatever its out
variable held. They now return E_NOTIMPL with one log line each; xcl-dev#45 and
xcl-dev#77 also null their out pointer (the last of their seven arguments).
xcl-dev#82's out pointer position is not known, so nothing is written there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Codex (exact model unavailable)
@KOLESNiii
KOLESNiii force-pushed the d3d12x-device-x-unwired-outputs branch from 1c4e27f to ca739fb Compare November 29, 2026 20:55
@github-actions github-actions Bot added area:d3d12 D3D12.X runtime, command lists, resources, sparse memory gpu:both Code affects both AMD and NVIDIA GPUs (scope tag; see needs:*-test for remaining checks) labels Nov 29, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head ca739fb

No open or merged PR maps device slots #45, #77 or #82. The author's related device-slot PRs (#3135 for #83-#126, #3136 for the *1 / *2 resource methods, #3144 for #124) cover other slots.
No problems found in the diff. The slot meanings and the argument layout of #45 / #77 are inferred, not confirmed by a title. A title that ignored the old S_OK stub's result will now see E_NOTIMPL, which is the intent.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

@Foniass

Foniass commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Review (head ca739fb, diff read, not a merge-check; draft, PR description red: its smoke block names b7c894d):

Fine: logged once per slot, and the slot numbers don't collide with existing device slots.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:d3d12 D3D12.X runtime, command lists, resources, sparse memory gpu:both Code affects both AMD and NVIDIA GPUs (scope tag; see needs:*-test for remaining checks)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants