[PR #238] d3d12_vulkan_device_test: query ID3D12Device10 on inner device to avoid slot 78 SetFrameIntervalX shadow #290

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/238
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9970


📝 Commits (1)

  • c3617cf d3d12_vulkan_device_test: query ID3D12Device10 on inner device to avoid slot 78 SetFrameIntervalX shadow

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 runtime/test/d3d12_vulkan_device_test.cpp (+3 -1)

📄 Description

Carried over from old PR 9970 by liamhob in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9970, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
liamhob: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

What and why

On \main\ (\2d53a8055), \d3d12_vulkan_device\ fails at line 6576:
\\
[rt] d3d12_xs: device slot 78 (Xbox SetFrameIntervalX) first call
[rt] d3d12_xs: device slot 78 routed to SetFrameIntervalX (...)
line 6576: tiles == 1
\\

\d3d12_vulkan_device_test.cpp\ queried \ID3D12Device10\ from \device\ (the Xbox device proxy), then called \device10->CreateReservedResource2(...). On the Xbox device proxy, vtable slot 78 (PC \ID3D12Device10::CreateReservedResource2) is intentionally shadowed by Xbox \SetFrameIntervalX\ (commit \2dbcb882c), which returns \S_OK\ without creating the resource—leaving \ wo.p == nullptr\ and \GetResourceTiling\ returning \ iles == 0.

Querying \ID3D12Device10\ on \inner\ (the underlying PC device) tests \CreateReservedResource2\ directly without hitting the Xbox proxy's slot-78 shadow.

Verification

  • Windows 11, MSVC 19.44, Ninja, AMD Radeon RX 9070 XT (tested with #9857 applied to build on MSVC):
    • \ctest -R ^d3d12_vulkan_device$: PASS (5.23 s).
    • \git diff --check: clean.
  • Synthetic test only; no game files. AI-assisted.

🔄 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/238 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9970` --- ### 📝 Commits (1) - [`c3617cf`](https://github.com/ubiquitarianism/leonida/commit/c3617cf9cd8e0bb1f0b78c16ef7abc5f47e8cc40) d3d12_vulkan_device_test: query ID3D12Device10 on inner device to avoid slot 78 SetFrameIntervalX shadow ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_vulkan_device_test.cpp` (+3 -1) </details> ### 📄 Description > Carried over from **old PR 9970** by `liamhob` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9970`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `liamhob`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): ### What and why On \main\ (\2d53a8055\), \d3d12_vulkan_device\ fails at line 6576: \\\ [rt] d3d12_xs: device slot 78 (Xbox SetFrameIntervalX) first call [rt] d3d12_xs: device slot 78 routed to SetFrameIntervalX (...) line 6576: tiles == 1 \\\ \d3d12_vulkan_device_test.cpp\ queried \ID3D12Device10\ from \device\ (the Xbox device proxy), then called \device10->CreateReservedResource2(...)\. On the Xbox device proxy, vtable slot 78 (PC \ID3D12Device10::CreateReservedResource2\) is intentionally shadowed by Xbox \SetFrameIntervalX\ (commit \2dbcb882c\), which returns \S_OK\ without creating the resource—leaving \ wo.p == nullptr\ and \GetResourceTiling\ returning \ iles == 0\. Querying \ID3D12Device10\ on \inner\ (the underlying PC device) tests \CreateReservedResource2\ directly without hitting the Xbox proxy's slot-78 shadow. ### Verification - Windows 11, MSVC 19.44, Ninja, AMD Radeon RX 9070 XT (tested with `#9857` applied to build on MSVC): - \ctest -R ^d3d12_vulkan_device$\: **PASS** (5.23 s). - \git diff --check\: clean. - Synthetic test only; no game files. AI-assisted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#290
No description provided.