d3d12_xs: export IID and WKPDID data symbols #986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/993"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_D3DDebugObjectNameWfrom the desktopd3d12_xs.dllshim. Package DLLs resolve these by name forQueryInterfaceand 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
The
iidsscenario:IID_ID3D12XboxFakeInterface) is not exportedWhat was measured
Each exported GUID byte-matches the value from the public Windows SDK header. The test loads symbols by
GetProcAddressname, not by ordinal, matching how package DLLs import them.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 andd3d12_xs_shim_checkwere 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 (16IID_ID3D12*,13IID_IDXGI*,WKPDID_D3DDebugObjectNameW), all exported asDATAsymbols without non-SDK entries.tests/d3d12_xs_shim_check.cpp&CMakeLists.txt:d3d12_xs_shim_iidsverifies all 30 exports byGetProcAddressname against expected GUID bytes and includes a missing-name negative control (IID_ID3D12XboxFakeInterface).AGENTS.mdcompliance: title-neutral wording, focused scope.Windows build and
d3d12_xs_shim_checkexecution remain unverified locally.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:21:44Z.
Review: COMMENTED
Retested delta
0de06040..704a4236(head704a4236).Delta audit (
0de06040..704a4236)704a4236mergesmainand preserves all PR changes unchanged:src/d3d12_xs_iids.cpp,src/d3d12_xs_shim.def(30 public Windows SDK IID/WKPDIDDATAexports),tests/d3d12_xs_shim_check.cpp(iid_checks+ negative control), andCMakeLists.txt(d3d12_xs_shimsources andiidsscenario ind3d12_xs_shim_*).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.Imported from R0Y00/Xbox2Windows. Originally posted by EvilOpus on 2026-11-23T20:16:28Z.
This is better. Apologies.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by EvilOpus on 2026-11-23T20:23:08Z.
Done!
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:24:48Z.
I resolved the export-table conflict at
fd805a22, preservingD3D12ConfigureVirtualMemoryXand 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)' -Vpassed 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.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:40:14Z.
I resolved the CMake conflict at
0de06040by 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.