d3d12_xs: support differently shaped depth textures at one base #689

Open
github-bot wants to merge 1 commit from github-bot/gh-689 into old-pr/9991 AGit
Owner

@⁠QemmHD on GitHub · 2026-11-24 12:08 UTC · original
ubiquitarianism:qemmhd/rt-depth-same-base-shapes → old-pr/9991 · +177 −21 · 3 files · 1 commits · draft

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).

**@⁠QemmHD** on GitHub · 2026-11-24 12:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/689) `ubiquitarianism:qemmhd/rt-depth-same-base-shapes` → `old-pr/9991` · +177 −21 · 3 files · 1 commits · draft Claimed in #14 as [RT-DEPTH-SAME-BASE-SHAPES](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:16:36 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/689/head:github-bot/gh-689'
git switch 'github-bot/gh-689'

Merge

Merge the changes and update on Forgejo.
git switch 'old-pr/9991'
git merge --no-ff 'github-bot/gh-689'
git switch 'github-bot/gh-689'
git rebase 'old-pr/9991'
git switch 'old-pr/9991'
git merge --ff-only 'github-bot/gh-689'
git switch 'github-bot/gh-689'
git rebase 'old-pr/9991'
git switch 'old-pr/9991'
git merge --no-ff 'github-bot/gh-689'
git switch 'old-pr/9991'
git merge --squash 'github-bot/gh-689'
git switch 'old-pr/9991'
git merge --ff-only 'github-bot/gh-689'
git switch 'old-pr/9991'
git merge 'github-bot/gh-689'
git push origin 'old-pr/9991'
This discussion has been locked. Commenting is limited to contributors.
No description provided.