d3d12: support Xbox depth/stencil UAVs on committed and placed textures (D3D-991) #261
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!261
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/261/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Andretuta on GitHub · 2026-11-24 02:54 UTC · original
ubiquitarianism:old-pr/9991→main· +1824 −82 · 23 files · 6 commits · merged 2026-11-25 02:33 UTCOriginal description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Re-submission of
#9480(D3D-991). The original PR was closed during the repository-wide closure. This branch preserves its commits and incorporates the subsequent slot 133 work from main. Original claim · Recovery discussionResource creation and synchronization
This change lets an Xbox shader read and write depth/stencil planes through a UAV and makes those writes visible when the game uses the depth attachment again. It supports single-sample, single-mip 2D textures and arrays in two format families.
R16_TYPELESSexposes raw depth bits throughR16_UINT.R32G8X24_TYPELESSexposes depth throughR32_FLOATand stencil throughR8_UINT.CreateCommittedResource3calls forwarded by the boot stack's slot 127. Allocation queries return the attachment's guest placement size for XMem accounting.D3D12_BARRIER_LAYOUTand validates it against the logical texture flags before creating or reusing an alias. Compatible live aliases share the GPU contents and retain separate COM identities. Incompatible or overlapping placements are refused. Buffers and other resources keep the upstream generic handler. A regression test covers a device with only the committed-depth provider registered.Validation
Windows 11 Pro for Workstations x64 build 26300, Core i9-14900K, 128 GB RAM, RTX 4090 with NVIDIA 621.14, Release x64, MSVC 19.44, Windows SDK 10.0.26100.0, glslang 16.6.0 and Khronos validation layer 1.4.363.1. All local fixtures were synthetic.
1d5f9b080are identical to those in the submitted head632cb75ad.main. The submitted branch does not include that correction. The unmodified branch and upstream both hit the same three source locations. Upstream report · Separate proposed fixtest_exec_computedandtest_image_atomics_guard, reproduced with the same failing assertions on the upstream baseline2d53a8055.6ff056074integration build, the boot-stack slot 127 forwarder created the previously refused R16 textures with 1, 3 and 6 layers. The XMem hooks charged and freed each allocation once. AAyberkU independently observed all three creations succeeding in a retail run using73b52fbfeand local routing changes. A different object still failed later in that run. Retail boot on this submitted head is unverified. Retail reportmain@d083a2cc3. The no-game-data check passed for all 23 changed files.Boot-stack integration
Depends on:
#7052(Xbox slot 127 forwarding)Depends on:
#7110(Xbox resource allocation sizing)Depends on:
#7679(slot 25 sizing in the integration stack)The XMem accounting comparison used
#7235. Hubcio511 and danekbiglike documented the earlier plane round-trip and placed R16 array work. Original integration notesAI-assisted (Codex).