Repository navigation
D3D12.X: format queries about the console's own formats (116–120) ask about their PC formats - #210
Conversation
…sk about their PC formats A retail title asks CheckFeatureSupport(FORMAT_SUPPORT) about D16_UNORM_S8_UINT (118); the PC has no such format, called it unsupported, and the title stopped on its assertion (+0x14a6390; ivall#159, ivall#173). FORMAT_SUPPORT, MULTISAMPLE_QUALITY_LEVELS, FORMAT_INFO and PLACED_RESOURCE_SUPPORT_INFO about 116 – 120 now ask about `pc_view_format`'s format, and the caller's format field is put back. XG: R10G10B10_7E3_A2_FLOAT / _6E4_A2_FLOAT (116 / 117) are 32 bits a pixel – allocation info is the console's size, not the PC's half-float one; they stay out of CPU texture sync (the PC resource holds half floats). Tests: the swap; on the GPU, the queries for 118 (and FORMAT_SUPPORT for 116 – 120) succeed and keep the caller's format; D16S8's XG planes; sane allocation sizes for 116 – 120. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent static code audit of Summary: Looks solid
(AI-assisted) |
|
I tested It doesn't merge cleanly. Every query the PR rewrites gives the same answer as asking about the PC format directly. A test-only probe, not part of the PR, compared two calls for each of 116–120:
The queries covered were:
Tested
Not tested
AI use: Claude Code, Claude Opus 5.5 |
|
Merged (main d4f17ca). Checked on an RX 9070 (RDNA4) with 11 PRs merged together on main af20b4b: |
A retail title asks
CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)about DXGI_FORMAT_D16_UNORM_S8_UINT (118). The PC has no such format, the answer was "unsupported", and the title stopped on its assertion (+0x14a6390, after the allocation-info assert at+0x344196had been patched around; #159, #173).CheckFeatureSupport: FORMAT_SUPPORT, MULTISAMPLE_QUALITY_LEVELS, FORMAT_INFO and PLACED_RESOURCE_SUPPORT_INFO about 116–120 ask the PC aboutdevice_x::pc_view_format's format (D24_UNORM_S8_UINT for D16S8, R24_UNORM_X8 / X24_G8 for its views, R16G16B16A16_FLOAT for the 7e3/6e4 floats). The caller's format field is put back.Tests (no game data): the format swap; on the GPU, FORMAT_SUPPORT / MULTISAMPLE_QUALITY_LEVELS / FORMAT_INFO for 118 (and FORMAT_SUPPORT for 116–120) succeed with the PC format's support and keep the caller's format; D16S8's XG planes (HTILE, 2-byte depth, 1-byte stencil); sane allocation sizes for 116–120.
Not yet checked against the console's
xg_xs.dllfor 116/117 (XCL_SAMPLE_XG). Not yet run with the title.Full
cargo test --workspaceon an RTX 3090 (driver 616.92): 577 passed, 0 failed, 39 ignored.🤖 Generated with Claude Code