d3d12: support normalized R16 depth UAV views #695

Open
github-bot wants to merge 1 commit from github-bot/gh-695 into qemmhd/rt-depth-same-base-shapes AGit
Owner

@⁠QemmHD on GitHub · 2026-11-24 12:16 UTC · original
ubiquitarianism:qemmhd/rt-d16-unorm-uav → qemmhd/rt-depth-same-base-shapes · +92 −18 · 5 files · 1 commits · draft

Claimed in #14 as RT-D16-UNORM-UAV. Depends on #261 and #689. This draft targets #689's branch so only the R16 view change appears in the review.

What and why

Slot 133 depth textures can receive a normalized R16_UNORM UAV request. The D16 storage plane has an R16_UINT image and rejects that request. Where the device can use the normalized storage format, create a mutable view of the same storage image and use the existing typed descriptor path. The two views read and write the same D16 bits. The integer-only allocation stays available on devices that cannot create the compatible view.

Tested

  • Windows 11, MSVC 2022 x64, RTX 4070 SUPER, NVIDIA 621.24. Vulkan validation passed the integrated depth UAV fixtures, including committed single-layer and placed three-layer mixed typed views, a normalized clear and exact readback. Existing D16S8 and same-address alias cases passed.
  • The offline integration stopped logging its earlier rejection of DXGI format 56. A later guest read violation still occurs.
  • The patch applies cleanly to #689 at ba9fb4392. Whitespace and game-data checks passed. The raw branch build stops at pre-existing slot-14 descriptor-heap bridge compile errors. The GPU results above come from the local Windows integration.

AI-assisted: yes (Codex).

**@⁠QemmHD** on GitHub · 2026-11-24 12:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/695) `ubiquitarianism:qemmhd/rt-d16-unorm-uav` → `qemmhd/rt-depth-same-base-shapes` · +92 −18 · 5 files · 1 commits · draft Claimed in #14 as [RT-D16-UNORM-UAV](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). Depends on #261 and #689. This draft targets #689's branch so only the R16 view change appears in the review. ### What and why Slot 133 depth textures can receive a normalized `R16_UNORM` UAV request. The D16 storage plane has an `R16_UINT` image and rejects that request. Where the device can use the normalized storage format, create a mutable view of the same storage image and use the existing typed descriptor path. The two views read and write the same D16 bits. The integer-only allocation stays available on devices that cannot create the compatible view. ### Tested - Windows 11, MSVC 2022 x64, RTX 4070 SUPER, NVIDIA 621.24. Vulkan validation passed the integrated depth UAV fixtures, including committed single-layer and placed three-layer mixed typed views, a normalized clear and exact readback. Existing D16S8 and same-address alias cases passed. - The offline integration stopped logging its earlier rejection of DXGI format 56. A later guest read violation still occurs. - The patch applies cleanly to #689 at `ba9fb4392`. Whitespace and game-data checks passed. The raw branch build stops at pre-existing slot-14 descriptor-heap bridge compile errors. The GPU results above come from the local Windows integration. AI-assisted: yes (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:16:50 +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/695/head:github-bot/gh-695'
git switch 'github-bot/gh-695'

Merge

Merge the changes and update on Forgejo.
git switch 'qemmhd/rt-depth-same-base-shapes'
git merge --no-ff 'github-bot/gh-695'
git switch 'github-bot/gh-695'
git rebase 'qemmhd/rt-depth-same-base-shapes'
git switch 'qemmhd/rt-depth-same-base-shapes'
git merge --ff-only 'github-bot/gh-695'
git switch 'github-bot/gh-695'
git rebase 'qemmhd/rt-depth-same-base-shapes'
git switch 'qemmhd/rt-depth-same-base-shapes'
git merge --no-ff 'github-bot/gh-695'
git switch 'qemmhd/rt-depth-same-base-shapes'
git merge --squash 'github-bot/gh-695'
git switch 'qemmhd/rt-depth-same-base-shapes'
git merge --ff-only 'github-bot/gh-695'
git switch 'qemmhd/rt-depth-same-base-shapes'
git merge 'github-bot/gh-695'
git push origin 'qemmhd/rt-depth-same-base-shapes'
This discussion has been locked. Commenting is limited to contributors.
No description provided.