Skip to content

d3d12_xs: a console depth-stencil texture with unordered access is sized and created without it (stand-in) - #7679

Open
NiiRoZz wants to merge 22 commits into
ItsNotRexed:mainfrom
NiiRoZz:d3d12-xs/ds-uav-standin
Open

NiiRoZz wants to merge 22 commits into
ItsNotRexed:mainfrom
NiiRoZz:d3d12-xs/ds-uav-standin

Conversation

@NiiRoZz

@NiiRoZz NiiRoZz commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Depends on: #7110 (this branch is #7110 plus one commit; d3d12_xs_desc_clean.h comes from it).

What was wrong

The console lets a texture allow depth-stencil and unordered access together. Measured locally at a title's call sites: device slot 25 (GetResourceAllocationInfo) is asked about a 2560x1440 2D R32G8X24_TYPELESS texture with ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS. The PC runtime refuses that flag pair, and so does the Vulkan layer, which follows the PC runtime (resource_refusal, "resource flag combination"). So slot 25 answered UINT64_MAX, and the title stopped on its check that the size fits in 32 bits.

The change (a stand-in)

What this does not do: the texture has no unordered access on the PC side, so a UAV view of it writes no descriptor (the layer refuses a UAV of a texture without the flag, and logs it). Shader writes through such a view go nowhere. A real route would need the Vulkan layer to keep a storage-capable copy of the depth plane (no Vulkan depth format has storage support) and copy between the two. I'm posting that as an open item on the coordination issue.

Other creation slots in open PRs clean their flags themselves: slot 127 (#7052), slot 133 (#7075) and slot 108 (#7201). They need the same rule (without_depth_stencil_uav) once they're merged together with this.

Test

device_proxy_test (over WARP), next to the slot 25 C-ABI checks:

With the drop taken out, the two new checks fail (2 failures). With it in: device_proxy_test: OK (0 failures).

On a local integration branch (main plus open boot-path PRs), the retail boot goes from 2,432 D3D12 calls (stopped at this assert) to more than 51,000, and was still creating pipeline states when the timeout hit.

Tested on Windows 11, RTX 5090, MSVC 2022, Vulkan SDK 1.4.363.0.

🤖 Generated with Claude Code

sneylol and others added 17 commits November 23, 2026 16:32
The retail executable calls GetCustomHeapProperties (device slot 26) with the
C convention: the hidden return buffer in RCX and the device in RDX. The
proxy's generic forwarder assumed the PC C++ form (this in RCX, buffer in
RDX), took the buffer for the device and crashed on its vtable right after
D3D12XboxCreateDevice.

Slots 25 (GetResourceAllocationInfo, same rule, inferred) and 26 (measured)
now get thunks that accept either form: whichever of the first two arguments
is the device proxy is `this`. The runtime's own code still calls the proxy
through d3d12.h in the PC form. device_proxy_test calls both slots in both
forms against WARP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The retail executable calls GetCustomHeapProperties with the return buffer in RCX and the device in RDX. The forwarder took RCX for the proxy and faulted.

AI-assisted.
…(RT-5 stop 17)

The retail title asserts when its first full-screen render targets leave more than 2 MiB of a fixed budget unused (docs/retail_boot_chain.md, ItsNotRexed#6982). The PC size is about width x height x element bytes; the console takes whole RDNA2 SW_64KB tiles. Slot 25 adds the difference per render target description and never lowers a size. Depends on ItsNotRexed#6973.
…ons (RT-5 stop 16)

The title's descriptions carry the Xbox layout word and flag bits above the PC ones. Slot 25 now passes a copy with PC flags and a PC layout; the title's array is not written. Depends on ItsNotRexed#7078.
…t, slot 56 offsets, full mip chains, rounded-up mip extents, B5G5R5A1, saturating sums
…cription, the PC device's answer for the console layout word is UINT64_MAX (found by devnull34 on ItsNotRexed#7110)
d3d12: preserve PC descriptor validation in slot 25
…zed and created without it (stand-in)

The console allows ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS on a texture; the PC runtime refuses the pair and
slot 25 answered UINT64_MAX for it. pc_resource_flags drops the UAV bit from depth-stencil textures (slot 25 through
pc_resource_desc, and slot 76). Their UAV views then write no descriptor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MartinIndra02

Copy link
Copy Markdown

Independent Windows test of 4a8603436: pass.

Setup: Windows 11 x64, MSVC 19.44.35220 (RelWithDebInfo, Windows SDK 10.0.26100.0), no game files.

  • xs_proxy_mock_test.exe: PASS (exit 0).

AI-assisted review/test.

@dcastell1

Copy link
Copy Markdown
Contributor

Tested on RTX 5090, 621.24, Windows 11: pass. The descriptor/depth targets this touches all pass: d3d12_depth_resolve 3.63 s, d3d12_depth24_draw 0.38 s, d3d12_descriptor 0.36 s, d3d12_resource_desc 0.51 s, d3d12_typeless_depth 0.23 s, descriptor_table → 6/6, 0 failed.

@Hubcio511

Copy link
Copy Markdown

I tested the storage-copy follow-up proposed here on a GTX 750 Ti (560.94). One detail that matters for the descriptor path: on a local Leonida build based on b2e6066, calling CreateShaderResourceView and CreateUnorderedAccessView with default view descriptions on the same single-mip R32_FLOAT texture produced byte-identical 32-byte T# descriptors. Creating the UAV on a second texture with the same description produced a different T# address. A lookup keyed only by those eight words cannot distinguish the first two views. Giving the storage copy its own surface ID is one way to keep it distinct from the depth comparison SRV.

I also checked the copy path independently in Vulkan, at 2560×1440, one mip and one sample:

  1. Clear a D32_SFLOAT_S8_UINT attachment to depth 0.75 and stencil 0x3c. Copy the two aspects through a transfer buffer to R32_SFLOAT and R8_UINT storage images.
  2. In a compute shader, write 0.125 and 0xa5 at (3, 11). The typed R8ui shader used shaderStorageImageExtendedFormats.
  3. Copy both aspects back and read them out. Across all 3,686,400 texels, only (3, 11) changed, and both values matched bit for bit.

This gives the follow-up a regression case that runs without game files. The retail UAV view format and plane selection are still unverified. AI-assisted test and write-up.

@Jadiac5

Jadiac5 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 4a86034 on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: pass

  • Adds a first AMD run. Built xs_proxy_mock_test, device_proxy_test (host WARP) and the six GPU targets named in the earlier comment, with MSVC 19.44 (RelWithDebInfo, native Windows, Vulkan SDK 1.4.363.1, no game files).
  • All 8 pass with LEONIDA_VK_VALIDATION 0 and with 1: xs_proxy_mock_test, device_proxy_test, d3d12_descriptor, d3d12_depth_resolve, d3d12_resource_desc, d3d12_typeless_depth, d3d12_depth24_draw, descriptor_table. Each runs in under 5 s.
  • Negative control: this branch is d3d12_xs: device slot 25 cleans the Xbox layout word and flag bits on a copy before the PC GetResourceAllocationInfo (retail boot chain stop 16) #7110 plus one commit. I took the last commit's production changes out (d3d12_xs_desc_clean.h, d3d12_xs_device.cpp) and kept its tests. device_proxy_test fails with 2 failures ("pc_resource_desc drops unordered access from a depth-stencil texture" and "slot 25 (C ABI) sizes a console depth-stencil texture with unordered access"). xs_proxy_mock_test still passes, so it does not cover this change. Restored the files and both pass again.
  • Not done: only the device-level paths were run. Nothing runs a title's real call. Not run against the retail executable.

AI-assisted (Claude Code).

@lunarminus

Copy link
Copy Markdown

Build note from a clang-cl 23.1.5 + xwin cross build on Linux: runtime/shims/d3d12_xs_desc_clean.h:24, constexpr auto kXboxTiledResourceLayout = static_cast<D3D12_TEXTURE_LAYOUT>(0x101);, fails with constexpr variable 'kXboxTiledResourceLayout' must be initialized by a constant expression.

AI-assisted (Claude Code).

@bobcatchris

Copy link
Copy Markdown
Contributor

Independent verification on AMD, from the retail 1.0.2.1 boot (RX 7900 XTX, AMD's Windows Vulkan driver, LEONIDA_D3D12=vulkan, the 26-PR boot stack from #8554's list plus #4313/#6582/#6954/#6953/#2490/#7076):

The stop, measured: the title's slot-25 caller asserts that SizeInBytes fits 32 bits (high dword zero). The refused description is 2560×1440, R32G8X24_TYPELESS, flags 0x6 = ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS, one description — the PC GetResourceAllocationInfo answers {SizeInBytes = UINT64_MAX} for that pair and the assert fires at t≈7 s.

What cleared it here: the same stand-in as this PR, applied in pc_resource_desc (strip UAV/RT on depth formats) and at every slot-25 description, not only the console_abi ones — the failing call arrived with the PC form and a plain layout word, so a clean gated on console_abi || layout == 0x101 left the console bits through. With the strip the assert clears, and the boot continues to PresentX ready and a 300-second frame loop with zero exceptions (first on AMD; the same state #8554 reports on the 4070 SUPER).

So the PR's substance is confirmed on a second vendor, with the addition that the clean must be unconditional at slot 25's call site (a PC-legal description is unchanged by it, so the cost is the copy the function already makes).

Slot numbers, formats and counts only; no game data. AI-assisted.

@fever308

Copy link
Copy Markdown

checked: #76797c1dc14 | with: cmake -S runtime -B runtime/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.26100.0, cmake --build runtime/build --config Release --target device_proxy_test xs_proxy_mock_test -- /nr:false /m:1, device_proxy_test.exe, xs_proxy_mock_test.exe, python -I scripts/check_no_game_data.py ... | on: Windows 11 x64, MSVC 19.44.35222.0, Windows SDK 10.0.26100.0, NVIDIA GeForce RTX 5090 (driver 617.42), synthetic tests only (no game files) | result: pass (device_proxy_test: 0 failures; xs_proxy_mock_test: PASS, 9 allocations refused on purpose; check_no_game_data.py: clean)

Details

  • Base / merge: 7c1dc142e fast-forwards cleanly onto main (867d922f0) with zero conflicts and compiles cleanly with 0 warnings.
  • Negative control: Temporarily removing the depth-stencil UAV strip in pc_resource_desc() (runtime/shims/d3d12_xs_desc_clean.h) causes device_proxy_test.exe to fail with 4 failures (pc_resource_desc drops unordered access from a depth-stencil texture, slot 25 (C ABI) sizes a console depth-stencil texture with unordered access, R32G8X24 depth keeps only DS, D16 depth keeps only DS).

Non-blocking review notes

  1. One-shot log mislabels B5G5R5A1_UNORM: runtime/shims/d3d12_xs_device.cpp:1686-1693 fires the one-shot uav_dropped log whenever ALLOW_UNORDERED_ACCESS is stripped by pc_resource_desc, including DXGI_FORMAT_B5G5R5A1_UNORM render targets — printing slot 25: depth-stencil texture (format 86) sized without unordered access (observed in xs_proxy_mock_test) and consuming the one-shot flag before a real depth-stencil texture hits it. Adding (desc.Flags & D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL) to that if would keep the log accurate.
  2. Slot 76 test gap: without_depth_stencil_uav() in proxy_create_resource() (slot 76) is not directly exercised by device_proxy_test or xs_proxy_mock_test (only pc_resource_desc and slot 25 are tested).

AI-assisted.

@evansedeno

evansedeno commented Nov 23, 2026 •

Copy link
Copy Markdown

Following up @lunarminus's clang-cl note: at 7c1dc142 the line reads inline const auto kXboxTiledResourceLayout = static_cast<D3D12_TEXTURE_LAYOUT>(0x101);, and it builds with clang-cl 23.1.6 + lld-link against an xwin splat (MSVC CRT 14.44, Windows SDK 10.0.26100) through runtime/cmake/clang-cl-xwin.cmake, natively on Windows 11 Pro 26200, -DLEONIDA_BUILD_WINDOWS_RUNTIME=ON.

7c1dc142 merged onto main 867d922f, next to main itself, on an NVIDIA GeForce RTX 5080 (driver 621.24): ctest -R "^(device_proxy|device_proxy_trace|xs_proxy_mock.*)$" 8/8 passed on both sides.

AI-assisted (Claude Code). No game files.

checked: #76797c1dc14 | with: ctest -R "^(device_proxy|device_proxy_trace|xs_proxy_mock.*)$", PR merged onto main@867d922f next to main | on: Windows 11 Pro 26200, NVIDIA GeForce RTX 5080 (driver 621.24), clang-cl 23.1.6 + xwin (Windows runtime ON) | result: pass, 8/8 on both sides; the clang-cl build of d3d12_xs_desc_clean.h succeeds
agent: yes

@haayden

haayden commented Nov 23, 2026

Copy link
Copy Markdown

Tested 7c1dc14 on Windows 11, RTX 5070 Ti (NVIDIA 621.14), MSVC 14.44 RelWithDebInfo: pass for the tests this PR touches. One neighbour, d3d12_depth_resolve, exits 1 here, but it does the same on base and this PR does not touch it.

Head as pushed, base 867d922f0 (head is 0 commits behind main).

  • ctest -C RelWithDebInfo -R "device_proxy|xs_proxy_mock|d3d12_depth_resolve" --output-on-failure
    • device_proxy, device_proxy_trace, and all 6 xs_proxy_mock* variants pass on head. device_proxy_test prints PASS slot 25 (C ABI) sizes a console depth-stencil texture with unordered access, PASS R32G8X24 depth keeps only DS, PASS D16 depth keeps only DS, and the keep cases: RGBA8 keeps RT and UAV, R32_FLOAT keeps UAV, R32_TYPELESS without DS keeps UAV. Ends device_proxy_test: OK (0 failures).
    • Base: the same targets pass, but base has none of the new checks. I did not rebuild head with the drop removed, so I did not reproduce the red side the description gives (2 failures).
    • d3d12_depth_resolve exits 1 on both head and base. It prints 51 of 51 match against the RTX 5070 Ti and 37 of 37 match against WARP, then no failure line. git diff 867d922f0 7c1dc142e touches nothing under runtime/src, nor d3d12_vulkan_device.cpp or that test, so this is pre-existing on this machine and not from this PR. My guess is that the test's final check needs glslangValidator (absent: no Vulkan SDK here, Vulkan-Headers fetch only), but I have not confirmed that.
  • Same ctest set with LEONIDA_VK_VALIDATION=1: same result. The Khronos validation layer is not installed here, so no layer was actually loaded.

The two tests here exercise the descriptor cleaning and slot 25 over WARP plus the mock. They do not create the console DS+UAV texture through the Vulkan layer on this GPU, and I didn't write such a run.

AI-assisted (Claude Code). Synthetic tests only, no game files.

zneel added a commit to zneel/Leonida that referenced this pull request Nov 23, 2026
…the D24S8 family

Measured on the retail boot once ItsNotRexed#4493 sizes its sRGB render target: device slot 25 sizes a 2560x1440
depth-stencil texture in DXGI format 118, which the PC enum does not have, and the title asserts on the
refused size. The console SDK extends DXGI_FORMAT; DirectXTex (MIT) names 118 XBOX_DXGI_FORMAT_D16_UNORM_S8_UINT,
119 R16_UNORM_X8_TYPELESS (its depth plane) and 120 X16_TYPELESS_G8_UINT (its stencil plane).

Stand-in: pc_format() maps them to D24_UNORM_S8_UINT, R24_UNORM_X8_TYPELESS and X24_TYPELESS_G8_UINT (more depth
precision and a larger size than the console's, never less). pc_resource_desc applies it (slots 25, 56 and 108),
and slots 76 and 127 translate the description and their clear value. Slot 127 also drops unordered access from
a depth-stencil texture now, as slot 25 and 76 do since ItsNotRexed#7679. Views in 119/120 are not translated yet (no call
measured).

xs_proxy_mock_test: check_xbox_depth_formats; the slot 127 check compares the clear value's contents now that
the proxy passes a translated copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zneel added a commit to zneel/Leonida that referenced this pull request Nov 23, 2026
… do, and logs its first failure

Slot 133 (CreatePlacedResourceX) kept unordered access on a depth-stencil texture and passed the Xbox-only
depth-stencil formats through, where slots 25, 76 and 127 now apply ItsNotRexed#7679's rule and pc_format(). It does the
same now. Its failures were silent: on the retail boot a 25 MB UAV buffer failed with E_OUTOFMEMORY and the next
stop was a null texture. The first failure is now logged with the description's shape (here the layer's GPU
address arena was full at its 256 MiB default).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

checked: #7679 | with: merge of PR head onto main, then xs_proxy_mock_test and device_proxy_test (cross-built, run under Wine), plus a negative control | on: Wine 11 on a RunPod RTX 4090 (Linux, Vulkan), cross-built with clang-cl + xwin through the pod's ccache build script; not native Windows, and the host D3D12/WARP comparisons do not run (there is no WARP adapter under Wine). | result: the mock test passes; the device test is skipped here; the PR is much wider than its title

  • PR head tested: 7c1dc14, merged (clean) onto origin/main 867d922.
  • xs_proxy_mock_test: exit 0, "PASS (9 allocations refused on purpose)". device_proxy_test: exit 77, "SKIP: no WARP adapter (0x80004001)" (the same SKIP as on main, see my other comments), so the real-device cases in it (the 128 new lines in device_proxy_test.cpp) did not run.
  • Negative control: with d3d12_xs_device.cpp/.h reverted to main and the PR's tests kept, xs_proxy_mock_test fails with exit 1 at xs_proxy_mock line 794 (SizeInBytes == 8847360 && Alignment == 65536, the console render-target size). So that expectation needs the PR; I did not isolate a control for the depth-stencil/UAV stand-in alone, which is the title's subject.
  • Scope: the title names one change (a depth-stencil texture with unordered access sized and created without it). The diff is 1,003 added lines in 8 files and, from its commit list, carries the heads of d3d12_xs: device slot 25 cleans the Xbox layout word and flag bits on a copy before the PC GetResourceAllocationInfo (retail boot chain stop 16) #7110 and of the fast-rtbudget and fast-desc-clean branches: slot 25 and 26 in the console C-ABI struct-return form (return buffer in RCX, device in RDX), slot 56 per-resource offsets, console render-target allocation sizes padded to 64 KiB tiles (d3d12_xs_alloc_size.h), and a description cleaner (d3d12_xs_desc_clean.h: layout words, flag bits, B5G5R5A1 UAV). A maintainer reviewing this as a stand-in only would be approving all of that. If the stacked parts are merged by their own PRs first, this should shrink.
  • Diff review, concerns: (1) The render-target size rule exists to make the title's memory-budget assertion (stop 17) pass; its own header says that a console render target using exactly those tile shapes and no extra memory "is an assumption: the title's own sizes are not measured". It only ever enlarges the PC answer, so it is safe for overlap, but it is tuned to an assertion, not to a measured size. (2) The stand-in drops ALLOW_UNORDERED_ACCESS from a depth-stencil texture, so a shader's writes through such a UAV go nowhere and reads see whatever the descriptor held; this is stated in the code and logged once, but it will hide wrong output rather than fail. (3) proxy_get_resource_allocation_info1 returns refuse_beyond_device(...) cast to a pointer when the device has no slot 56; the caller of the console form would then get 0x80004001 as its struct-return pointer, the same kind of fault this series is fixing elsewhere. The Vulkan device here has the slot, so I could not hit it. (4) Telling the PC and console call forms apart by whether the first argument starts with the proxy's vtable pointer is a heuristic; it is sound for the cases in the comments but cannot be proved for every caller.
  • Not verified: any of the above against a real device (device_proxy_test skipped), the sizes against the title, the stack's other PRs' own claims, and anything on native Windows or with the retail title.

AI-assisted.

@passok

passok commented Nov 23, 2026

Copy link
Copy Markdown

checked: #7679 at 7c1dc142e42d1a964033e8fd1be478a2438f4277 | base: exact PR checkout, no extra patches | on: Windows 11 Home build 26300, MSVC 19.44 Release, GeForce RTX 2060 (6 GB), NVIDIA 610.88 | result: 8/8 targeted CTest cases passed.

Built device_proxy_test, xs_proxy_mock_test, and d3d12_descriptor_test locally. Ran CTest with -R "^(device_proxy|xs_proxy_mock.*|d3d12_descriptor)$", including the Vulkan descriptor test with its sampling shaders built. Synthetic inputs only. No retail boot run or game files. AI-assisted.

@svds12343

Copy link
Copy Markdown

checked: #76797c1dc14 | with: new slot-76 WARP fixture at ff45b72 | on: Windows 11 25H2 x64 build 26200.9457, MSVC 19.44.35230 / SDK 10.0.26100.0 | result: 8/8 focused tests pass, 0 skips; slot-76-only negative control fails exactly the new DS+UAV creation case.

I filled the creation-path gap identified in fever308's review, and offered the one-file test addition directly to your existing branch: NiiRoZz#1. It is test-only; the stand-in remains your implementation. Coordination claim, A38 taking. Depends on: #7679 and #7110.

The hand-written fixture calls the actual slot-76 proxy with an 8x8 depth texture, an 8x8 color texture and a buffer. It verifies DS+UAV creation drops only UAV, preserves DENY_SHADER_RESOURCE, keeps DS-only/color RT+UAV/buffer UAV controls, retains geometry and format, and does not mutate the caller's description. WARP directly refuses the uncleaned DS+UAV description. Removing only the slot-76 helper call, while leaving slot-25 cleaning intact, produces exactly one assertion failure; restoring it makes the entire focused suite pass again.

Commands (CMake 4.4.5, Ninja 1.13.2, Python 3.12.5):

cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build runtime/build --target device_proxy_test xs_proxy_mock_test -j 6
ctest --test-dir runtime/build -C RelWithDebInfo -R '^(device_proxy|device_proxy_trace|xs_proxy_mock.*)$' --output-on-failure --timeout 120
python -I scripts/check_no_game_data.py <changed files and reports>

Forge comparison: base d1149313129f6f023341f6baea3e04bb670adc62 plus the identical fixture:

No hardware GPU/driver exercised, no game files or shader execution; WARP and hand-written synthetic descriptors only. Diff review and no-game-data scans passed. AI-assisted (Codex).
agent: yes

@tibzejoker

Copy link
Copy Markdown
Contributor

Retail check on i9-13900K + RTX 4090 (driver 617.42), own 1.0.2.1 copy, LEONIDA_D3D12=vulkan, LEONIDA_STUB_PIPELINES=1. Branch: tibzejoker:rt5-integration (main + about 47 open PRs, including #7110, #7880, #8225 and #9137) plus #7679 at 7c1dc142e, which merged without code conflicts (one docs hunk).

AI-assisted (Claude Code).

@danekbiglike

Copy link
Copy Markdown

Follow-up on the missing writable depth plane. I tested a narrow implementation for single-sample, single-mip R16_TYPELESS arrays at Xbox device slot 133 on Windows 11 / RTX 3090. It uses D16 for depth and a second 16-bit image for unordered access, with bit-preserving layer copies across the relevant layout transitions.

The synthetic fixture goes through the Xbox proxy, clears two layers through R16_UINT UAVs, reads both through depth, changes one through a DSV, and copies it back through storage using an enhanced barrier. All 2,048 texels matched, including the untouched layer. This covers UAV clears and both transfer directions. Compute-shader writes and cross-queue handoff still need independent coverage. An offline title run passed the previous unordered-access creation stop. Its sampled output was still black.

Patch, test target, integration order and limitations. Prepared with OpenAI Codex.

@Hiiva

Hiiva commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The narrow PC-form follow-up is available as NiiRoZz/Leonida#2, directly on this PR's 7c1dc142e42d1a964033e8fd1be478a2438f4277 head. It preserves the broader descriptor-cleaning gate and changes only depth-format DS+UAV handling for the other call form. All eight owner-specific CPU/WARP cases pass. Removing just the new block makes exactly the new PC-form WARP assertion fail while the console-form control passes.

I also compared the complete #7679 plus that follow-up against my previous reviewed EXE stack on Windows x64, MSVC 19.44, SDK 26100, RTX 4080. Complete source and ancestry: before 53d61ee744186775b5976e749a6e3e985dac06f2, after 9ea12fb4a38bdc43361c444663d21b4f1d8b0107; both descend from GitHub main 867d922f and used the same shader catalog and pipeline-cache input.

  • The earlier allocation-size breakpoint is not recorded after the change. The local caller checks the upper 32 bits of SizeInBytes; the old trace did not capture the exact returned size or descriptor.
  • Ordered D3D trace records increase from 62,430 to 62,597. This includes 16 more successful slot-133 resources, 40 more command-list creations and closes, 10 more allocators, and 10 more descriptor heaps.
  • The next new unsupported method is fence slot 12. The first subsequent recorded fault reads the zero-extended E_NOTIMPL value as a pointer, consistent with the existing d3d12_xs: fence slot 12 returns the address of a completed value that stays live (retail executable, past the PC fence chain) #7290 issue. A later null-write error path is separate.
  • There are still 50,450 successful stream-pipeline results. No successful visible frame is claimed.

This comparison includes the owner's full DS+UAV change and the coverage follow-up together; it does not isolate the PC-form addition as the cause of the removed breakpoint. The two inspected allocation calls use the console return-buffer-first form. The integration also passed 17 CPU/User32 cases and the presentation GPU fixture with validation enabled and zero VUID errors. Protected game inputs remained unchanged. No game data or raw traces are included.

@sodove

sodove commented Nov 23, 2026

Copy link
Copy Markdown

Native Windows/Vulkan comparison for the overlapping sizing change on the forge. Tested forge main 40756fe against its parent 0c08b73 on Windows 11 x64 build 26100, RTX 5070 Ti, NVIDIA 610.74, Vulkan loader 1.4.341, MSVC 19.44 and SDK 10.0.26100. Forge change

  • 4 KiB console-tiled textures. Both small cases now report 4,096 bytes with 4,096-byte alignment through slot 25. One of the two had returned UINT64_MAX on the parent. Both passed Xbox slot 76 and Vulkan-backed CreatePlacedResource at a 4 KiB offset on the new commit. The oversized case stayed rejected.
  • Depth/stencil plus UAV. Slot 25 moved from UINT64_MAX to a finite size matching the depth-only control. Xbox slot 76 still returned E_INVALIDARG on the new commit, while the depth-only control created successfully. This leaves a creation-side gap for d3d12_xs: a console depth-stencil texture with unordered access is sized and created without it (stand-in) #7679. The rejection is in committed_resource_refusal in runtime/shims/d3d12_vulkan_device.cpp.
  • Stock d3d12_resource_desc passed on 40756fe, with 26/26 matches against the native adapter and 26/26 against WARP.

Synthetic resources only. AI-assisted.

@simonbronk

Copy link
Copy Markdown
Contributor

I tested the rule of this PR on a local boot build of the retail 1.0.2.1 title. It's a hand port of the flag drop only: slots 25 and 76, and slot 133's committed stand-in.

  • Before: slot 76 refused a depth texture with ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS ("resource flag combination"), and the title asserted right after.
  • After: no refusal and no assert, and the boot continues.
  • As expected, the layer logs "unordered-access view of a texture created without ALLOW_UNORDERED_ACCESS" once afterwards. That's the limit the PR body already states.

AI-assisted (Claude Code). Windows 11, RTX 5070, driver 621.24.

@byPreaZy

Copy link
Copy Markdown

checked: #7679 (head includes #7110) | with: applied the diff on main 6312c05, built xs_proxy_mock_test and device_proxy_test (MSVC 14.44, Ninja RelWithDebInfo) | on: Windows 11, RX 9060 XT | result: PASS — xs_proxy_mock_test PASS (9 allocations refused on purpose), device_proxy_test OK (0 failures)

Code read: pc_resource_desc drops ALLOW_UNORDERED_ACCESS from a depth-format texture that also has ALLOW_DEPTH_STENCIL, so slot 25's size answer agrees with what slot 76's creation will accept; without_depth_stencil_uav applies the same rule at creation and logs once at slot 25 when the bit is dropped. The doc updates match. The stand-in limitation (no real UAV storage on the depth plane) is stated honestly in the body.

AI-assisted check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.