M1: map console D3D12.X semantics using source-built fixtures #3

Open
opened 2026-11-26 21:00:22 +00:00 by github-bot · 0 comments
Owner

@⁠ProhorovIlja on GitHub · 2026-11-21 21:13 UTC · original

Cross-compare public method prototypes, resource mapping, queues, barriers, descriptors, root-signature layout, Present/SwapChain behavior and GPU synchronization.

Read-only upstream references:

Acceptance: structured method-level evidence table with exact upstream SHA and author claims separated from reproducible tests. Test D3D12 device creation on WARP and suitable hardware; correct error paths. Never claim game rendering from successful synthetic Present.

2026-11-22 progress: desktop host execution substrate

PR #9 was merged after Linux/Windows CI success. On standard Windows hosted runner, the source-built WARP fixture successfully created a desktop D3D12 device, queue/allocator/list, submitted an empty command list, signaled and awaited a fence (CTEST passed, run 44951523816). This is desktop D3D12, not D3D12.X Xbox behavior and not a shader execution proof. Next: synthetic descriptors/barriers/resource aliasing, error handling and WARP shader input/output comparison.

2026-11-22 source-grounded blocker: inline console command records

XCL e555b87 and its HANDOFF.md at that SHA report a concrete console title stalling when inlined D3D12.X code writes records into command-list-object internals. In the author's observation a graphics-list write-pointer is around +0x18 and end around +0x30. An ordinary desktop D3D12 command list does not provide the same layout. Other reported differences: device slot #25 GetResourceAllocationInfo involves a hidden return buffer / ABI mismatch; a DMA list has a different vtable; console D3D12_OPTIONS size differs from desktop.

Do not hardcode these title-specific offsets or slot numbers as universal Xbox ABI from the claim alone. XCL is GPL-2.0-only; no source is imported. Real console command-record bytes and coverage are not available in this project.

Next original source-built fixtures:

  • Differential COM test: struct-return ABI with hidden buffer vs ordinary pointer-return; check vtable canaries and calling convention.
  • Synthetic command-list ring-buffer validator: explicit pointer/end/capacity, overflow and reset, no false mapping to PC ID3D12GraphicsCommandList internals.
  • Track separate DMA/copy/graphics/compute method maps with confidence levels and references, never reuse desktop slot indexes by assumption.
  • Only after game-specific legal inputs become available, validate actual command streams and draw/present with reproducible hardware captures.

2026-11-22 independent regression fixture

PR #22 merged after Linux and Windows CTest passed (run 44955863311). The original C++17 synthetic command-record contract includes separate graphics/DMA opcodes, bounded LE records, canary redzones, atomic rejection, corrupted header/length/sequence checks, reset semantics and 256 deterministic generated streams. The format and opcodes were invented for testing; no genuine D3D12.X command record has been decoded. This validates only safe stream-handling logic, not the console's graphics or DMA interface.

New evidence boundary

The three original source-built PE tests in PR #25 prove ordinary desktop Windows native PE loading/imports and small xgameruntime shim calls. They do not exercise D3D12.X packet parsing, vtable ABI, resource translation or GPU command submission. This remains a distinct unresolved blocker, not an assumed consequence of the loader passing.

**@⁠ProhorovIlja** on GitHub · 2026-11-21 21:13 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/3) Cross-compare public method prototypes, resource mapping, queues, barriers, descriptors, root-signature layout, Present/SwapChain behavior and GPU synchronization. Read-only upstream references: - https://github.com/omonkeyz/xbox-emulator/issues/31 (unpublished backend data breaks clean build) - https://github.com/ivall/xcl - https://github.com/californiaAlmonds/OpenScarlett - https://github.com/Ender-0001/GDKScarlett Acceptance: structured method-level evidence table with exact upstream SHA and author claims separated from reproducible tests. Test D3D12 device creation on WARP and suitable hardware; correct error paths. Never claim game rendering from successful synthetic Present. ## 2026-11-22 progress: desktop host execution substrate [PR #9](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/9) was merged after Linux/Windows CI success. On standard Windows hosted runner, the source-built WARP fixture successfully created a desktop D3D12 device, queue/allocator/list, submitted an empty command list, signaled and awaited a fence (CTEST passed, run [44951523816](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44951523816)). This is **desktop D3D12**, not D3D12.X Xbox behavior and not a shader execution proof. Next: synthetic descriptors/barriers/resource aliasing, error handling and WARP shader input/output comparison. ## 2026-11-22 source-grounded blocker: inline console command records [XCL e555b87](https://github.com/ivall/xcl/commit/e555b87c07482c139c18baf0c20effa51b4b3938) and [its HANDOFF.md at that SHA](https://github.com/ivall/xcl/blob/e555b87c07482c139c18baf0c20effa51b4b3938/HANDOFF.md) report a concrete console title stalling when inlined D3D12.X code writes records into command-list-object internals. In the author's observation a graphics-list write-pointer is around `+0x18` and end around `+0x30`. An ordinary desktop D3D12 command list does *not* provide the same layout. Other reported differences: device slot #25 `GetResourceAllocationInfo` involves a hidden return buffer / ABI mismatch; a DMA list has a different vtable; console `D3D12_OPTIONS` size differs from desktop. **Do not hardcode these title-specific offsets or slot numbers as universal Xbox ABI** from the claim alone. XCL is GPL-2.0-only; no source is imported. Real console command-record bytes and coverage are not available in this project. Next original source-built fixtures: - [ ] Differential COM test: struct-return ABI with hidden buffer vs ordinary pointer-return; check vtable canaries and calling convention. - [ ] Synthetic command-list ring-buffer validator: explicit pointer/end/capacity, overflow and reset, no false mapping to PC ID3D12GraphicsCommandList internals. - [ ] Track separate DMA/copy/graphics/compute method maps with confidence levels and references, never reuse desktop slot indexes by assumption. - [ ] Only after game-specific legal inputs become available, validate actual command streams and draw/present with reproducible hardware captures. ## 2026-11-22 independent regression fixture [PR #22](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/22) merged after Linux and Windows CTest passed ([run 44955863311](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44955863311)). The original C++17 **synthetic** command-record contract includes separate graphics/DMA opcodes, bounded LE records, canary redzones, atomic rejection, corrupted header/length/sequence checks, reset semantics and 256 deterministic generated streams. The format and opcodes were invented for testing; no genuine D3D12.X command record has been decoded. This validates only safe stream-handling logic, not the console's graphics or DMA interface. ## New evidence boundary The three original source-built PE tests in [PR #25](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/25) prove ordinary desktop Windows native PE loading/imports and small xgameruntime shim calls. They do **not** exercise D3D12.X packet parsing, vtable ABI, resource translation or GPU command submission. This remains a distinct unresolved blocker, not an assumed consequence of the loader passing.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:00:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/ProhorovIlja--NativeX-Runtime#3
No description provided.