d3d12_xs: export IID and WKPDID data symbols #986

Merged
EvilOpus merged 4 commits from upstream-pr/993 into main 2026-11-24 04:20:28 +00:00
EvilOpus commented 2026-11-23 20:15:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by EvilOpus on 2026-11-23T20:15:48Z.


Summary

Export 30 standard D3D12 and DXGI interface identifiers and WKPDID_D3DDebugObjectNameW from the desktop d3d12_xs.dll shim. Package DLLs resolve these by name for QueryInterface and device creation.

All values are defined in the public Windows SDK headers (d3d12.h, dxgi.h, dxgi1_2.h). Resolving a GUID as data does not establish support for the interface it names.

Test command and result

cmake --build --preset dev --target d3d12_xs_shim d3d12_xs_shim_check
ctest --preset dev --no-tests=error -R d3d12_xs_shim -V
5/5 tests passed:
  d3d12_xs_shim_exports        PASS
  d3d12_xs_shim_serialize      PASS
  d3d12_xs_shim_deserialize    PASS
  d3d12_xs_shim_iids           PASS  (new)
  d3d12_xs_shim_warp_root      PASS

The iids scenario:

  • Positive: loads all 30 symbols by name from the shim DLL and compares each 16-byte GUID to the Windows SDK value (30 checks)
  • Negative control: a fabricated name (IID_ID3D12XboxFakeInterface) is not exported

What was measured

Each exported GUID byte-matches the value from the public Windows SDK header. The test loads symbols by GetProcAddress name, not by ordinal, matching how package DLLs import them.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6567959881 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993). Originally posted by [EvilOpus](https://github.com/EvilOpus) on 2026-11-23T20:15:48Z. --- ## Summary Export 30 standard D3D12 and DXGI interface identifiers and `WKPDID_D3DDebugObjectNameW` from the desktop `d3d12_xs.dll` shim. Package DLLs resolve these by name for `QueryInterface` and device creation. All values are defined in the public Windows SDK headers (`d3d12.h`, `dxgi.h`, `dxgi1_2.h`). Resolving a GUID as data does not establish support for the interface it names. ## Test command and result ``` cmake --build --preset dev --target d3d12_xs_shim d3d12_xs_shim_check ctest --preset dev --no-tests=error -R d3d12_xs_shim -V ``` ``` 5/5 tests passed: d3d12_xs_shim_exports PASS d3d12_xs_shim_serialize PASS d3d12_xs_shim_deserialize PASS d3d12_xs_shim_iids PASS (new) d3d12_xs_shim_warp_root PASS ``` The `iids` scenario: - **Positive**: loads all 30 symbols by name from the shim DLL and compares each 16-byte GUID to the Windows SDK value (30 checks) - **Negative control**: a fabricated name (`IID_ID3D12XboxFakeInterface`) is not exported ## What was measured Each exported GUID byte-matches the value from the public Windows SDK header. The test loads symbols by `GetProcAddress` name, not by ordinal, matching how package DLLs import them.
upstream-sync closed this pull request 2026-11-24 06:45:45 +00:00
tedin7 commented 2026-11-24 06:45:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:15:36Z.

Review: COMMENTED


Audited diff (0de06040) and ran platform-independent checks on Linux (Windows MSVC/D3D12 build and d3d12_xs_shim_check were not executed locally).

Linux checks run on 0de06040:

  • python3 -B tests/docs_links_check.py: passed (Checked 15 Markdown files and 256 links.)
  • python3 -B tests/bidi_controls_check.py: passed (Checked 957 tracked source, script and build/CI files: no bidirectional controls.)
  • python3 -B tests/rdna2_tools_check.py: passed (Ran 110 tests in 2.444s, OK (skipped=10))
  • python3 -B tests/xgameruntime_table_check.py: passed (exports=27 ... PASS)

Code audit:

  • src/d3d12_xs_iids.cpp & src/d3d12_xs_shim.def: <initguid.h> before <d3d12.h> and <dxgi1_6.h> provides storage for the 30 standard public Windows SDK GUIDs (16 IID_ID3D12*, 13 IID_IDXGI*, WKPDID_D3DDebugObjectNameW), all exported as DATA symbols without non-SDK entries.
  • tests/d3d12_xs_shim_check.cpp & CMakeLists.txt: d3d12_xs_shim_iids verifies all 30 exports by GetProcAddress name against expected GUID bytes and includes a missing-name negative control (IID_ID3D12XboxFakeInterface).
  • AGENTS.md compliance: title-neutral wording, focused scope.

Windows build and d3d12_xs_shim_check execution remain unverified locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6033139666 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#pullrequestreview-6033139666). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T03:15:36Z. **Review:** COMMENTED --- Audited diff (`0de06040`) and ran platform-independent checks on Linux (Windows MSVC/D3D12 build and `d3d12_xs_shim_check` were not executed locally). **Linux checks run on `0de06040`:** - `python3 -B tests/docs_links_check.py`: passed (`Checked 15 Markdown files and 256 links.`) - `python3 -B tests/bidi_controls_check.py`: passed (`Checked 957 tracked source, script and build/CI files: no bidirectional controls.`) - `python3 -B tests/rdna2_tools_check.py`: passed (`Ran 110 tests in 2.444s`, `OK (skipped=10)`) - `python3 -B tests/xgameruntime_table_check.py`: passed (`exports=27 ... PASS`) **Code audit:** - `src/d3d12_xs_iids.cpp` & `src/d3d12_xs_shim.def`: `<initguid.h>` before `<d3d12.h>` and `<dxgi1_6.h>` provides storage for the 30 standard public Windows SDK GUIDs (`16` `IID_ID3D12*`, `13` `IID_IDXGI*`, `WKPDID_D3DDebugObjectNameW`), all exported as `DATA` symbols without non-SDK entries. - `tests/d3d12_xs_shim_check.cpp` & `CMakeLists.txt`: `d3d12_xs_shim_iids` verifies all 30 exports by `GetProcAddress` name against expected GUID bytes and includes a missing-name negative control (`IID_ID3D12XboxFakeInterface`). - `AGENTS.md` compliance: title-neutral wording, focused scope. Windows build and `d3d12_xs_shim_check` execution remain unverified locally.
tedin7 commented 2026-11-24 06:45:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:21:44Z.

Review: COMMENTED


Retested delta 0de06040..704a4236 (head 704a4236).

Delta audit (0de06040..704a4236)

  • 704a4236 merges main and preserves all PR changes unchanged: src/d3d12_xs_iids.cpp, src/d3d12_xs_shim.def (30 public Windows SDK IID/WKPDID DATA exports), tests/d3d12_xs_shim_check.cpp (iid_checks + negative control), and CMakeLists.txt (d3d12_xs_shim sources and iids scenario in d3d12_xs_shim_*).
  • Diff is clean and title-neutral.

Checks run on Linux (704a4236)

  • /root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: PASS (16 Markdown files, 274 links).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: PASS (1017 files).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/form_coverage_check.py: PASS.
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/xgameruntime_table_check.py: PASS (28 exports).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py: PASS (10/10).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py: PASS (11/11).

Note: Windows MSVC/D3D12 build and d3d12_xs_shim_check (d3d12_xs_shim_iids, etc.) were not executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6033608112 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#pullrequestreview-6033608112). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:21:44Z. **Review:** COMMENTED --- Retested delta `0de06040..704a4236` (head `704a4236`). ### Delta audit (`0de06040..704a4236`) - `704a4236` merges `main` and preserves all PR changes unchanged: `src/d3d12_xs_iids.cpp`, `src/d3d12_xs_shim.def` (30 public Windows SDK IID/WKPDID `DATA` exports), `tests/d3d12_xs_shim_check.cpp` (`iid_checks` + negative control), and `CMakeLists.txt` (`d3d12_xs_shim` sources and `iids` scenario in `d3d12_xs_shim_*`). - Diff is clean and title-neutral. ### Checks run on Linux (`704a4236`) - `/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py`: **PASS** (16 Markdown files, 274 links). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py`: **PASS** (1017 files). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/form_coverage_check.py`: **PASS**. - `/root/.local/share/x2w-rev-venv/bin/python -B tests/xgameruntime_table_check.py`: **PASS** (28 exports). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py`: **PASS** (10/10). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py`: **PASS** (11/11). Note: Windows MSVC/D3D12 build and `d3d12_xs_shim_check` (`d3d12_xs_shim_iids`, etc.) were **not** executed locally.
EvilOpus commented 2026-11-24 06:49:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by EvilOpus on 2026-11-23T20:16:28Z.


This is better. Apologies.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112835202 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#issuecomment-7112835202). Originally posted by [EvilOpus](https://github.com/EvilOpus) on 2026-11-23T20:16:28Z. --- This is better. Apologies.
R0Y00 commented 2026-11-24 06:49:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T20:20:06Z.


The public Windows SDK GUID data exports can be reviewed as a small independent change. Please remove the two non-SDK values, their exports, and their test rows unless you can link a public authoritative definition. Comparing constants copied from the same private export table is not an independent test. For the public set, keep the SDK comparison, the missing-name control, and the existing export checks. Resolving a GUID as data does not establish support for the interface it names.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112921391 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#issuecomment-7112921391). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:20:06Z. --- The public Windows SDK GUID data exports can be reviewed as a small independent change. Please remove the two non-SDK values, their exports, and their test rows unless you can link a public authoritative definition. Comparing constants copied from the same private export table is not an independent test. For the public set, keep the SDK comparison, the missing-name control, and the existing export checks. Resolving a GUID as data does not establish support for the interface it names.
EvilOpus commented 2026-11-24 06:49:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by EvilOpus on 2026-11-23T20:23:08Z.


The public Windows SDK GUID data exports can be reviewed as a small independent change. Please remove the two non-SDK values, their exports, and their test rows unless you can link a public authoritative definition. Comparing constants copied from the same private export table is not an independent test. For the public set, keep the SDK comparison, the missing-name control, and the existing export checks. Resolving a GUID as data does not establish support for the interface it names.

Done!

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112989177 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#issuecomment-7112989177). Originally posted by [EvilOpus](https://github.com/EvilOpus) on 2026-11-23T20:23:08Z. --- > The public Windows SDK GUID data exports can be reviewed as a small independent change. Please remove the two non-SDK values, their exports, and their test rows unless you can link a public authoritative definition. Comparing constants copied from the same private export table is not an independent test. For the public set, keep the SDK comparison, the missing-name control, and the existing export checks. Resolving a GUID as data does not establish support for the interface it names. Done!
R0Y00 commented 2026-11-24 06:49:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:24:48Z.


I resolved the export-table conflict at fd805a22, preserving D3D12ConfigureVirtualMemoryX and the author's 30 public SDK GUID data exports. All 30 expected values match the installed Windows SDK definitions. On Windows Release, ctest --preset release --no-tests=error -R '^(d3d12_xs_shim_|vm_translation)' -V passed 16/16, including the missing-name control and the WARP and RTX 4060 Laptop range tests. The GUIDs supply data symbols only. GitHub CI is running on the updated head.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114426650 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#issuecomment-7114426650). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:24:48Z. --- I resolved the export-table conflict at `fd805a22`, preserving `D3D12ConfigureVirtualMemoryX` and the author's 30 public SDK GUID data exports. All 30 expected values match the installed Windows SDK definitions. On Windows Release, `ctest --preset release --no-tests=error -R '^(d3d12_xs_shim_|vm_translation)' -V` passed 16/16, including the missing-name control and the WARP and RTX 4060 Laptop range tests. The GUIDs supply data symbols only. GitHub CI is running on the updated head.
R0Y00 commented 2026-11-24 06:50:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:40:14Z.


I resolved the CMake conflict at 0de06040 by retaining the SDK GUID source and the device-slot source. The existing GUID, root-signature, device and virtual-memory checks passed 22/22 in Windows Release on WARP and the RTX 4060 Laptop. GitHub is rerunning CI on the merged branch head.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120369370 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/993#issuecomment-7120369370). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T02:40:14Z. --- I resolved the CMake conflict at 0de06040 by retaining the SDK GUID source and the device-slot source. The existing GUID, root-signature, device and virtual-memory checks passed 22/22 in Windows Release on WARP and the RTX 4060 Laptop. GitHub is rerunning CI on the merged branch head.
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
R0Y00/Xbox2Windows!986
No description provided.