Repository navigation
Conversation
…ews (RT-XBOX-D16S8) DXGI_FORMAT 118 (past B4G4R4A4_UNORM) is the console's D16_UNORM_S8_UINT, with the plane views 119 R16_UNORM_X8_TYPELESS and 120 X16_TYPELESS_G8_UINT. The retail executable sizes a 118 depth buffer with GetResourceAllocationInfo at start-up and asserts when it gets the invalid answer; it also names 118 as a pipeline DSVFormat. Vulkan's D16_UNORM_S8_UINT is missing on NVIDIA and RADV, so the texture is a D32_SFLOAT_S8_UINT image on every GPU. 118 is a depth-stencil family for creation and clear values, 119 and 120 are its depth and stencil SRV formats, FORMAT_INFO reports two planes, and FORMAT_SUPPORT answers with the D32S8 family's answers and hands the caller its format back. A footprint copy of the depth plane keeps the D32 texel size (documented). d3d12_xbox_d16s8_test: format queries, allocation size, creation with a 118 clear value, and depth-and-stencil clears through a typed and an UNKNOWN DSV. Passes on an RTX 3060 (620.73.04) under Wine 11.22. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
Retail boot. Base: #321 at AI-assisted (Claude Code). |
|
Independent check on NVIDIA, the one vendor the pull request text names as lacking
The device line reads What I did not check: a retail boot with this change. This is a unit-level check on one NVIDIA card; I have not measured whether the title reaches the slot-25 sizing of format 118 on my stack. AI-assisted: yes (Claude Code, Sonnet 5.5) |
SweatierKey
left a comment
There was a problem hiding this comment.
Independently verified on Windows 11 + NVIDIA GeForce RTX 5070 Ti (driver 616.92, clean origin/main at 82a2aabcc, no game files).
python3 -I scripts/check_no_game_data.py: PASS- Built and ran
d3d12_xbox_d16s8_test.exe:
Vulkan D16_UNORM_S8_UINT depth attachment: no (the layer stores D32_SFLOAT_S8_UINT either way)
AllFORMAT_INFO(118/119/120),FORMAT_SUPPORT,GetResourceAllocationInfo(2560x1440 = 19,660,800 B, align 65536), resource creation, and typed/UNKNOWN DSV depth+stencil clears to fence:d3d12_xbox_d16s8_test: OK.
AI-assisted: yes
…S8_UINT depth format (118) and its plane views (RT-XBOX-D16S8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test of head The same line appears for 119 and 120, and the test reports "3 mismatches" at Either fix works, but it's a choice:
Minor: the new Holding the merge until the parity test is green again. AI-assisted (Claude Code, Claude Opus 5.5). |
|
Retail-title data point on current main (Wine): the placed D16S8 depth is the current stop Build: The boot reaches 129,459 D3D12 calls and 1,472 presents (no device loss), then stops on this PR's format:
So the placed Counts and call shapes only, no game data. AI-assisted. |
Claimed in the coordination issue as: RT-XBOX-D16S8 (#14 (comment))
What and why
DXGI_FORMAT 118, past
B4G4R4A4_UNORM, is the console'sD16_UNORM_S8_UINT. Its plane views are 119R16_UNORM_X8_TYPELESS(depth) and 120X16_TYPELESS_G8_UINT(stencil). #461's XG layout table treats 118–120 as one 2-byte depth family too.The Vulkan-backed device knew none of them, so two things failed:
GetResourceAllocationInfogaveUINT64_MAXfor a 118 depth buffer. The retail executable sizes one at start-up and asserts on that answer.DSVFormat = 118were refused (depth-stencil format not supported: 118).Vulkan's
D16_UNORM_S8_UINTis missing on NVIDIA and RADV, so a 118 texture is aD32_SFLOAT_S8_UINTimage on every GPU. A 16-bit depth value is held as a float and read back through the depth view as the same [0, 1] value.vulkan_format: 118 →D32_SFLOAT_S8_UINT, depth and stencil aspects.format_familyanddepth_stencil_family: 118–120 form one depth-stencil family. Creation withALLOW_DEPTH_STENCILand a 118 clear value passes.image_descriptor: 119 (orUNKNOWN) is 118's depth-plane SRV format, and 120 is its stencil-plane format.CheckFeatureSupport:FORMAT_INFOgives two planes for all three formats.FORMAT_SUPPORTanswers with the D32S8 family's answers and gives the caller itsFormatback.docs/d3d12_vulkan.md: a paragraph next to the D24-as-D32 one.Not done (documented): a footprint copy of the depth plane has the D32 texel size, 4 bytes instead of 2. There is no conversion pass as there is for D24, and nothing measured makes such a copy yet.
Tested
d3d12_xbox_d16s8_test(CTestd3d12_xbox_d16s8): passes. It checks:UNKNOWNDSV, run to the fence.d3d12_d24_support: passes.d3d12_typeless_depthfails the same way with and without this change: it compares against WARP, which Wine lacks.git merge-tree).GPUs tested: NVIDIA GeForce RTX 3060, driver 620.73.04, Linux (CachyOS, kernel 7.3), Wine 11.22 staging
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).scripts/check_no_game_data.pypasses over every changed file.docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code