[PR #689] d3d12_xs: support differently shaped depth textures at one base #729

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

📋 Pull Request Information

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

Base: old-pr/9991 ← Head: qemmhd/rt-depth-same-base-shapes


📝 Commits (1)

  • ba9fb43 d3d12_xs: support differently shaped depth textures at one base

📊 Changes

3 files changed (+177 additions, -21 deletions)

View changed files

📝 runtime/shims/d3d12_xs_placed_depth.h (+29 -17)
📝 runtime/test/d3d12_depth_stencil_uav_test.cpp (+4 -1)
📝 runtime/test/d3d12_placed_depth_test.h (+144 -3)

📄 Description

Claimed in #14 as RT-DEPTH-SAME-BASE-SHAPES. Direct follow-up to #261, targeted at its branch so the review shows only this change.

What and why

Slot 133 can place multiple depth/UAV textures with different extents or array sizes at the same guest address. The existing placement table rejects the second shape. Keep a separate real attachment and storage-plane backing for each incompatible shape. Keep the shared backing for exact compatible placements. The caller still synchronizes a shape switch with an aliasing barrier and initializes the newly active texture. Distinct-base partial overlaps are still refused, including when a same-base group grows toward a neighboring placement.

Tested

  • Windows, MSVC 2022 x64, RTX 4070 SUPER. All 14 focused tests passed on the local integration of #261, with zero skips.
  • A synthetic test switches between a small texture and a larger array at one base. It uses explicit alias barriers and full depth clears, writes through a UAV, and checks each layer by readback. It also covers exact alias sharing and range overlap checks.
  • The offline boot on the local integration advanced past the earlier slot 133 placement failure and reached a later exception.
  • This patch applies to the exact #261 head at 632cb75ad. Diff and repository game-data checks passed.

AI-assisted: yes (Codex).


🔄 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/689 **Author:** [@QemmHD](https://github.com/QemmHD) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `old-pr/9991` ← **Head:** `qemmhd/rt-depth-same-base-shapes` --- ### 📝 Commits (1) - [`ba9fb43`](https://github.com/ubiquitarianism/leonida/commit/ba9fb4392dfd66611748fed7d2d4b27a794b8008) d3d12_xs: support differently shaped depth textures at one base ### 📊 Changes **3 files changed** (+177 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_xs_placed_depth.h` (+29 -17) 📝 `runtime/test/d3d12_depth_stencil_uav_test.cpp` (+4 -1) 📝 `runtime/test/d3d12_placed_depth_test.h` (+144 -3) </details> ### 📄 Description Claimed in #14 as [RT-DEPTH-SAME-BASE-SHAPES](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7131014204). Direct follow-up to #261, targeted at its branch so the review shows only this change. ### What and why Slot 133 can place multiple depth/UAV textures with different extents or array sizes at the same guest address. The existing placement table rejects the second shape. Keep a separate real attachment and storage-plane backing for each incompatible shape. Keep the shared backing for exact compatible placements. The caller still synchronizes a shape switch with an aliasing barrier and initializes the newly active texture. Distinct-base partial overlaps are still refused, including when a same-base group grows toward a neighboring placement. ### Tested - Windows, MSVC 2022 x64, RTX 4070 SUPER. All 14 focused tests passed on the local integration of #261, with zero skips. - A synthetic test switches between a small texture and a larger array at one base. It uses explicit alias barriers and full depth clears, writes through a UAV, and checks each layer by readback. It also covers exact alias sharing and range overlap checks. - The offline boot on the local integration advanced past the earlier slot 133 placement failure and reached a later exception. - This patch applies to the exact #261 head at `632cb75ad`. Diff and repository game-data checks passed. AI-assisted: yes (Codex). --- <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#729
No description provided.