Skip to content

d3d12_xs: export D3D12ZeroMemoryX and D3D10CreateBlob - #8589

Open
tedin7 wants to merge 2 commits into
ItsNotRexed:mainfrom
tedin7:c2-d3d12xs-zeromemory-createblob
Open

tedin7 wants to merge 2 commits into
ItsNotRexed:mainfrom
tedin7:c2-d3d12xs-zeromemory-createblob

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What

Export D3D12ZeroMemoryX and D3D10CreateBlob from d3d12_xs; implement a local reference-counted COM blob.

Why

Both imported functions were absent from the shim registry. The blob needs no d3d10.dll dependency.

Tested

AI-assisted. On p2 (Windows cross-build and Wine; no GPU needed), /root/fast_test_exe.sh /root/c2-d3d12xs-zeromemory-createblob root_sig_test: before, 2 failures for missing exports; after, 0 failures, including 9 new passing checks. git diff --check and python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs.cpp runtime/test/root_sig_test.cpp passed. No game files used.

@ItsNotRexed: an exe PR, as you asked.

Claim: #8344 (comment)

@Grimkeh Grimkeh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent Linux CPU review (c1566a94) — code read

What changed: d3d12_xs exports D3D12ZeroMemoryX (zero_memory) and D3D10CreateBlob via a local ID3D10Blob implementation; test covers unsupported-interface rejection on the blob.

Checked:

  • Commit range is d3d12_xs.cpp + root_sig_test.cpp.
  • Did not build/run the C++ test here.

Looks coherent; no game files.

@lohant27-netizen

Copy link
Copy Markdown

Tested c1566a94d on Windows 11 (10.0.26300), NVIDIA GeForce RTX 5070 (driver 32.0.16.2101, subgroup 32), MSVC with SDK 10.0.26100, Release, merged onto main 867d922f0 together with #8599, #8589, #8591, #8620, #8569 and #8622 (no conflicts): pass.

@RAINighty

Copy link
Copy Markdown

Tested c1566a94d merged with main 867d922f0 (clean merge) on Windows 11 (10.0.26300), Intel Core i7-14650HX, MSVC 19.44.35228, RelWithDebInfo (Ninja), CPU-only tests: pass.

  • root_sig, root_signature and root_signature_oracle pass with this PR (3 of 3).
  • Negative control: this PR's root_sig_test.cpp with main's runtime/shims/d3d12_xs.cpp: root_sig fails, the other two still pass, so the new test does catch the change.
  • Code not reviewed beyond running it. No GPU or game files.

AI-assisted (Claude Code).

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.

4 participants