d3d12x: add device creation slots #1059
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1066"
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 lambirou on 2026-11-24T00:06:40Z.
Change
Add the D3D12.X device-slot inventory and cover the existing
D3D12XboxCreateDevicecreationpath.
src/d3d12x_device_slots.h/.cpphold an orderedconstexprtable of creation IIDs andobserved vtable slots, with kind, index, GUID, name, state and evidence.
D3D12XboxCreateDeviceconsults the table forIID_ID3D12Device. A null output remainsE_POINTER; a non-null parameter block remainsE_INVALIDARG; an unknown IID returnsE_NOINTERFACE, clears the output and printsD3D12XboxCreateDevice: unsupported IID {7c0e1a10-5f2d-4b7a-9a51-3d9c6b2e8f01}.documented/observed but not implemented. They are an inventory, not a claimed console ABI.
tests/d3d12x_device_check.cpploads the built DLL by explicit path and checks theD3D12XboxCreateDeviceexport ownership.This PR does not accept the public
D3D12XBOX_CREATE_DEVICE_PARAMETERSblock orIID_ID3D12Device1; that is a follow-up question.Verification
cmake --build --preset dev --target d3d12_xs_shim d3d12x_device_checkctest --preset dev --no-tests=error -R '^d3d12x_device_' -V10.0.26100.10068;
S_OK, one node, fenceS_OK, output non-null.E_POINTERfor a null output, exact unknown-IID line,E_NOINTERFACE,output null.
32.0.32029.2010; same checks.
d3d12_xs_shim_*,vm_translation_sequence_warpandvm_translation_sequence_hardwarestill pass.docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 237 links..git diff --check origin/main...HEAD: clean.Evidence and follow-up
d3d12x/device-slots, head040d496, based on9c3ab31(which includes XCL-04).Commit
8b97622adds the device slots;040d496updates the existing shadow-rejection traceto expect the new named IID line.
d3d12.h, the public Xbox-GDK-SamplesDeviceResources.cppfor Device1, and the localdocs/experiments.mdanchors for theobserved slots. No XCL code, table or output is copied.
D3D12XBOX_CREATE_DEVICE_PARAMETERSandIID_ID3D12Device1; do not treat the observed vtable index 76 as a production interface fromone call site.
docs/experiments.mdrecords the CTest names and the slot inventory boundary.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:25:32Z.
The new unsupported-IID diagnostic changed the existing shadow fixture's exact stderr trace. I updated the rejection control to expect the precise IID before the existing release and cleanup messages. The fixture still verifies exit status, empty frame payload, ordered events and cleanup for native, pe_map and AOT. Windows Release passed all four device tests and both shadow tests on RTX 4060 Laptop and WARP.
Candidate:
040d496361