[PR #758] [MERGED] d3d12_xs: export D3D12CreateVersionedRootSignatureDeserializer, clearing the Xbox RTS0 flags (OLD-10012) #795

Closed
opened 2026-11-26 20:19:04 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/758
Author: @abnalstlll-byte
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: restore/old-10012-versioned-root-sig-deserializer


📝 Commits (2)

  • a5bb4b9 feat: d3d12_xs exports D3D12CreateVersionedRootSignatureDeserializer, clearing the Xbox RTS0 flags
  • 3ff887f d3d12_xs: preserve all-zero DXBC checksum compatibility in versioned deserializer

📊 Changes

3 files changed (+58 additions, -1 deletions)

View changed files

📝 docs/d3d12_xs_surface.md (+1 -1)
📝 runtime/shims/d3d12_xs.cpp (+16 -0)
📝 runtime/test/root_sig_test.cpp (+41 -0)

📄 Description

### Summary
Restores and updates work from draft PR #283 (old-pr/10012 / item OLD-10012).
Original commit by @tedin7 (17ead7a27).

Exports D3D12CreateVersionedRootSignatureDeserializer and ordinal #7 from d3d12_xs.dll.
Console shaders and runtime callers frequently invoke this versioned deserializer with console-specific RTS0 flags.
This shim:

  • Intercepts calls, validates checksum via dxbc_checksum, and clears console RTS0 flags on a copy via copy_rts0_blob_clear_xbox_flags.
  • Forwards sanitized root signature blob to host D3D12CreateVersionedRootSignatureDeserializer.
  • Rejects corrupt or tampered blobs with E_INVALIDARG.
  • Includes unit tests in runtime/test/root_sig_test.cpp verifying ordinal resolution, checksum validation, and flag sanitization.
  • Documents behavior in docs/d3d12_xs_surface.md.

Verification

  • python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs.cpp runtime/test/root_sig_test.cpp docs/d3d12_xs_surface.md -> Clean (no game data)
  • Clean rebase onto latest ubi/main (2d73c242f).

AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/758 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `restore/old-10012-versioned-root-sig-deserializer` --- ### 📝 Commits (2) - [`a5bb4b9`](https://github.com/ubiquitarianism/leonida/commit/a5bb4b9b8cc412988d74fa8827aa560601397bda) feat: d3d12_xs exports D3D12CreateVersionedRootSignatureDeserializer, clearing the Xbox RTS0 flags - [`3ff887f`](https://github.com/ubiquitarianism/leonida/commit/3ff887f9621a20ba99dcaba14023364c8703dd05) d3d12_xs: preserve all-zero DXBC checksum compatibility in versioned deserializer ### 📊 Changes **3 files changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_xs_surface.md` (+1 -1) 📝 `runtime/shims/d3d12_xs.cpp` (+16 -0) 📝 `runtime/test/root_sig_test.cpp` (+41 -0) </details> ### 📄 Description ### Summary Restores and updates work from draft PR #283 (`old-pr/10012` / item `OLD-10012`). Original commit by @tedin7 (`17ead7a27`). Exports `D3D12CreateVersionedRootSignatureDeserializer` and ordinal `#7` from `d3d12_xs.dll`. Console shaders and runtime callers frequently invoke this versioned deserializer with console-specific RTS0 flags. This shim: - Intercepts calls, validates checksum via `dxbc_checksum`, and clears console RTS0 flags on a copy via `copy_rts0_blob_clear_xbox_flags`. - Forwards sanitized root signature blob to host `D3D12CreateVersionedRootSignatureDeserializer`. - Rejects corrupt or tampered blobs with `E_INVALIDARG`. - Includes unit tests in `runtime/test/root_sig_test.cpp` verifying ordinal resolution, checksum validation, and flag sanitization. - Documents behavior in `docs/d3d12_xs_surface.md`. ### Verification - `python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs.cpp runtime/test/root_sig_test.cpp docs/d3d12_xs_surface.md` -> Clean (no game data) - Clean rebase onto latest `ubi/main` (`2d73c242f`). AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:04 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#795
No description provided.