[PR #360] [MERGED] d3d12_vulkan_device: accept the console's 0x40-byte D3D12_OPTIONS query (RT-XS-DEVICE-VM-OPTIONS) #412

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/360
Author: @Andretuta
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: feat/xs-device-vm-options


📝 Commits (2)

  • 028001c d3d12_xs: fill D3D12ConfigureVirtualMemoryX VA bounds, 0x40-byte D3D12_OPTIONS and Xbox slots 81/86/108 (RT-XS-DEVICE-VM-OPTIONS)
  • bff649b Merge remote-tracking branch 'ubiq/main' into feat/xs-device-vm-options

📊 Changes

2 files changed (+31 additions, -18 deletions)

View changed files

📝 runtime/shims/d3d12_vulkan_device.cpp (+25 -18)
📝 runtime/test/d3d12_vulkan_device_test.cpp (+6 -0)

📄 Description

Claimed in the coordination issue as: RT-XS-DEVICE-VM-OPTIONS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121196296)

What and why

Reduced after review to the part with a public measurement behind it:

  • CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS) (runtime/shims/d3d12_vulkan_device.cpp): accepts the 0x40-byte (16-dword) buffer console titles ask for (docs/d3d12_xs_surface.md §7.1: XCL measured the 0x40 request; the extra 4 bytes are unnamed) as well as the 0x3C-byte PC structure, fills the 15-field PC prefix and zeroes the trailing word. Coverage in runtime/test/d3d12_vulkan_device_test.cpp.

Dropped from this pull request: the D3D12ConfigureVirtualMemoryX VA bounds and device slots 86/108 (no measurement; slot 108 forwarded GetResourceAllocationInfo2's D3D12_RESOURCE_DESC1 array to PC GetResourceAllocationInfo). Slot 81 (GetFrameStatisticsX) moved to #402, which owns the presentation slots.

Tested

  • Not built locally: MinGW's d3d12.h lacks ID3D12GraphicsCommandList8, so d3d12_vulkan_device_test needs the MSVC CI build.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

🤖 Generated with Claude Code


🔄 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/360 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `feat/xs-device-vm-options` --- ### 📝 Commits (2) - [`028001c`](https://github.com/ubiquitarianism/leonida/commit/028001c8293942876375e54349afa8dae21f0746) d3d12_xs: fill D3D12ConfigureVirtualMemoryX VA bounds, 0x40-byte D3D12_OPTIONS and Xbox slots 81/86/108 (RT-XS-DEVICE-VM-OPTIONS) - [`bff649b`](https://github.com/ubiquitarianism/leonida/commit/bff649b34d68b605113acd05d6acb79951282198) Merge remote-tracking branch 'ubiq/main' into feat/xs-device-vm-options ### 📊 Changes **2 files changed** (+31 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+25 -18) 📝 `runtime/test/d3d12_vulkan_device_test.cpp` (+6 -0) </details> ### 📄 Description Claimed in the coordination issue as: RT-XS-DEVICE-VM-OPTIONS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121196296) ### What and why Reduced after review to the part with a public measurement behind it: - **`CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS)` (`runtime/shims/d3d12_vulkan_device.cpp`):** accepts the 0x40-byte (16-dword) buffer console titles ask for (`docs/d3d12_xs_surface.md` §7.1: XCL measured the 0x40 request; the extra 4 bytes are unnamed) as well as the 0x3C-byte PC structure, fills the 15-field PC prefix and zeroes the trailing word. Coverage in `runtime/test/d3d12_vulkan_device_test.cpp`. Dropped from this pull request: the `D3D12ConfigureVirtualMemoryX` VA bounds and device slots 86/108 (no measurement; slot 108 forwarded `GetResourceAllocationInfo2`'s `D3D12_RESOURCE_DESC1` array to PC `GetResourceAllocationInfo`). Slot 81 (`GetFrameStatisticsX`) moved to #402, which owns the presentation slots. ### Tested - Not built locally: MinGW's `d3d12.h` lacks `ID3D12GraphicsCommandList8`, so `d3d12_vulkan_device_test` needs the MSVC CI build. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:48 +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#412
No description provided.