d3d12_xs: slots 127 and 133 make a depth-stencil texture without unordered access (RT-DS-UAV-SLOTS) #772

Closed
DesertGamer wants to merge 1 commit from upstream-pr/772 into main
DesertGamer commented 2026-11-24 13:39:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DesertGamer on 2026-11-24T13:39:40Z.


Claimed in the coordination issue as: RT-DS-UAV-SLOTS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133089244)

Depends on: #427. The branch is #427's head plus one commit, so the diff here also lists #427's commits until it merges; the change of this pull request is the last commit only (runtime/shims/d3d12_xs_device.cpp, runtime/test/xs_proxy_mock_test.cpp).

What and why

#427 stops a console depth-stencil texture that also allows unordered access from reaching the PC runtime with the pair (the PC runtime refuses it, and Vulkan has no depth format with storage support): such a texture is made as a depth-stencil texture alone, through pc_resource_flags / without_depth_stencil_uav, at slots 25 and 76. DadaCap measured the same description at two more resource-creating slots on a run that gets past the pipeline wall (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132343578): 127 and 133 (and 108, below). Both masked the Xbox bits only and kept ALLOW_UNORDERED_ACCESS on a depth-stencil texture.

  • Slot 127 (CreateCommittedResource3) takes its PC flags from pc_resource_flags. The local copy of the flag mask in d3d12_xs_device.cpp is gone; d3d12_xs_desc_clean.h has the same one.
  • Slot 133 (CreatePlacedResourceX) drops the flag on a depth-stencil texture with without_depth_stencil_uav; a buffer, a render target and a plain depth-stencil texture keep what they had.

Slot 108 (GetResourceAllocationInfo2) sizes descriptions the same way, but it is routed by #219 / #727, which this does not depend on; it follows in its own pull request once one of them is in main.

Tested

  • ctest -R "xs_proxy_mock|device_proxy": 9 of 9 pass (MSVC, Windows 11, Vulkan SDK 1.4.363). The new slot 127 checks fail with the old flag line put back (checked), so they cover the change.
  • Slot 127: a depth-stencil + unordered access description reaches the PC call as depth-stencil alone, and the title's description is not written to; a plain depth-stencil, a buffer and a render target + unordered access keep their flags. Slot 133: the same for a texture description handed to the placed-resource handler.
  • scripts/check_no_game_data.py on the two changed files: pass.
  • Not run: a retail boot on this change. The two slots are only reached past the pipeline wall DadaCap describes, which my stack has not reached.

GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11 (unit tests only, no GPU path changed)

AI-assisted: yes (Claude Code, Sonnet 5.5)

Checklist

  • Based on current main and merges cleanly once #427 is in.
  • One topic; slot 108 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. (Not a translator change.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473243913 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/772). Originally posted by [DesertGamer](https://github.com/DesertGamer) on 2026-11-24T13:39:40Z. --- Claimed in the coordination issue as: RT-DS-UAV-SLOTS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133089244) Depends on: #427. The branch is #427's head plus one commit, so the diff here also lists #427's commits until it merges; the change of this pull request is the last commit only (`runtime/shims/d3d12_xs_device.cpp`, `runtime/test/xs_proxy_mock_test.cpp`). ### What and why #427 stops a console depth-stencil texture that also allows unordered access from reaching the PC runtime with the pair (the PC runtime refuses it, and Vulkan has no depth format with storage support): such a texture is made as a depth-stencil texture alone, through `pc_resource_flags` / `without_depth_stencil_uav`, at slots 25 and 76. DadaCap measured the same description at two more resource-creating slots on a run that gets past the pipeline wall (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132343578): 127 and 133 (and 108, below). Both masked the Xbox bits only and kept `ALLOW_UNORDERED_ACCESS` on a depth-stencil texture. - Slot 127 (`CreateCommittedResource3`) takes its PC flags from `pc_resource_flags`. The local copy of the flag mask in `d3d12_xs_device.cpp` is gone; `d3d12_xs_desc_clean.h` has the same one. - Slot 133 (`CreatePlacedResourceX`) drops the flag on a depth-stencil texture with `without_depth_stencil_uav`; a buffer, a render target and a plain depth-stencil texture keep what they had. Slot 108 (`GetResourceAllocationInfo2`) sizes descriptions the same way, but it is routed by #219 / #727, which this does not depend on; it follows in its own pull request once one of them is in `main`. ### Tested - `ctest -R "xs_proxy_mock|device_proxy"`: 9 of 9 pass (MSVC, Windows 11, Vulkan SDK 1.4.363). The new slot 127 checks fail with the old flag line put back (checked), so they cover the change. - Slot 127: a depth-stencil + unordered access description reaches the PC call as depth-stencil alone, and the title's description is not written to; a plain depth-stencil, a buffer and a render target + unordered access keep their flags. Slot 133: the same for a texture description handed to the placed-resource handler. - `scripts/check_no_game_data.py` on the two changed files: pass. - Not run: a retail boot on this change. The two slots are only reached past the pipeline wall DadaCap describes, which my stack has not reached. GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11 (unit tests only, no GPU path changed) AI-assisted: yes (Claude Code, Sonnet 5.5) ### Checklist - [x] Based on current `main` and merges cleanly once #427 is in. - [x] One topic; slot 108 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. (Not a translator change.)
MoonEyes commented 2026-11-25 17:14:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-25T17:14:04Z.


Note for triage: this is not a duplicate of #427. It carries #427's commits plus cbdaf7ece (slots 127/133), and that part is not in main yet (slot 127/133 still keep UNORDERED_ACCESS on depth-stencil textures).

AI-assisted: yes (Claude Code compared the diffs against origin/main; I reviewed it).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7169203621 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/772#issuecomment-7169203621). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-25T17:14:04Z. --- Note for triage: this is not a duplicate of #427. It carries #427's commits plus cbdaf7ece (slots 127/133), and that part is not in main yet (slot 127/133 still keep UNORDERED_ACCESS on depth-stencil textures). AI-assisted: yes (Claude Code compared the diffs against origin/main; I reviewed it).
MoonEyes commented 2026-11-27 23:20:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:20:17Z.


Hi @DesertGamer, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/shims/d3d12_xs_device.cpp, runtime/test/xs_proxy_mock_test.cpp), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230062311 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/772#issuecomment-7230062311). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:20:17Z. --- Hi @DesertGamer, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/shims/d3d12_xs_device.cpp`, `runtime/test/xs_proxy_mock_test.cpp`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:31:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:31:56Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317761721 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/772#issuecomment-7317761721). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:31:56Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!772
No description provided.