Repository navigation
Conversation
texture_format refused every A8_UNORM texture that was not 2D, so GetResourceAllocationInfo answered UINT64_MAX for a 1D one (a title's boot sizes a 128-texel 1D A8_UNORM texture and asserts on that size). The host accepts A8_UNORM in 1D, 2D and 3D (the gap is listed by ItsNotRexed#4533's host sweep). They are R8_UNORM images like the 2D ones; the SRV's alpha-only swizzle does not depend on the dimension. Format support now names TEXTURE1D and TEXTURE3D too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
AMD data point for
AI-assisted (Claude Code). |
|
Tested
AI-assisted. |
|
AI-assisted test on Wine 11.22, RTX 4070/NVIDIA 620.73.04. Adapted the source change onto a local stack with #7403. The synthetic A8 dimensions test passed. In boot, the previously refused 1D A8 allocations succeeded and the swapchain present count rose from two to ten. No visible image or movie decode confirmed. |
|
Independent Radeon RX 6700 XT verification for Leonida PR #7755 Tested on an AMD Radeon RX 6700 XT (RDNA2) running Windows 11 25H2 Baseline: dde82f2, the PR's parent.
CTest filter: ^(d3d12_a8_dimensions|d3d12_descriptor)$ |
|
Retail boot result: Wine 11.22 on a Radeon 760M (RADV Mesa 26.3.1), my own 1.0.2.1 executable, gta6rt cross-built with clang-cl 23.1.5 + xwin. This PR clears the last slot 25
AI-assisted (Claude Code). |
…does, on top of ItsNotRexed#7593 With ItsNotRexed#7593 merged the retail boot gets past the 2D A8_UNORM render target, then device slot 25 sizes a 128-texel 1D A8_UNORM texture with no flags and the layer answers UINT64_MAX (texture_format refused every non-2D A8). The title asserts on the size's upper 32 bits. ItsNotRexed#7755 makes 1D and 3D A8 textures R8 images as the host does; its change conflicts only textually with ItsNotRexed#7593's A8 block, so it is applied by hand: a non-2D A8 render target stays refused, FORMAT_SUPPORT names TEXTURE1D and TEXTURE3D. d3d12_descriptor_test: 1D (128) and 3D (128x8x4) A8 textures without flags are sized and created, with the render-target flag refused (passes with LEONIDA_VK_VALIDATION=1 on an RX 9070 XT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent native Windows/Vulkan composition check: #7755 952be9b + #7403 18b0bfb + #7110 b8cbab6 on main a910490. The figure below is from the pinned combination, built with MSVC in a Racurs156 Runtime run. Windows 11 build 26200, RTX 4060 Ti, NVIDIA 621.01, Vulkan Validation Layers 1.4.369.
The branch has synthetic inputs only. AI-assisted. |
|
Confirmed on Windows 11 / Vulkan / RTX 5070 Ti (621.24). On the same local stack, the prior boot rejected 1D A8_UNORM allocation at slot 25; with the 1D/3D sampling change integrated alongside #7403 the allocation assertion was gone. A focused Vulkan test verified allocation, actual resource creation, and a default 1D SRV with the alpha-only channel mapping. The next observed stop was an unhandled access violation after unresolved ACP audio imports; the captured swapchain still had only black pixels. |
…p the boot (RT-5 stops 24+) Three fixes found on the retail boot, past the A8_UNORM stop: - texture_format: the ItsNotRexed#7755/ItsNotRexed#7403 merge left two contradictory A8_UNORM blocks (one refused render targets, the other refused 1D/3D). A8_UNORM is now an R8_UNORM image in 1D/2D/3D and a VK_FORMAT_A8_UNORM_KHR render target in 2D, single-sampled, never DS or UAV. - A colour texture with unordered access in a format the GPU cannot store to (the title's 2560x1440 B5G5R5A1 render target with UAV on NVIDIA) is made without storage usage instead of refused (Format::no_storage); a UAV on it is the zeroed descriptor, so its writes are dropped (logged once). - d3d12_xs_desc_clean.h: drop_console_only_combinations drops UAV from a console depth-stencil texture that also allows it (the title's 2560x1440 R32G8X24_TYPELESS one), which the PC runtime refuses; all four description cleaners (slots 25, 76, 127, 133) use it. Slot 25 also names a refused description (dimension, format, size, mips, samples, flags, layout) a few times; that is how the two textures above were found. Measured with --run --trace: the boot goes from the slot 25 assert at 2,327 D3D12 calls to 53,180 calls in 200 seconds, with tens of thousands of pipelines built from the translated shaders and the title's submission loop running (ExecuteCommandListsX, Signal, fence slot 12).
|
Tested Merged into a local integration tree: the shared
Not run here: |
|
A41 native NVIDIA check of the current A8 pair | base:
All merged objects and tests used the merged headers. Portable build used SDK COM declaration compatibility and an unused fail-fast DXGI adapter. Offscreen synthetic data only, no validation layer or retail run. AI-assisted (Codex). |
|
checked: #7755952be9b | with: AI-assisted (Claude Code). |
|
checked: #7755 | with: clang-cl/xwin cross-build via fast_test_exe.sh (Ninja, ccache), target |
|
checked: #7755952be9b | with: merged onto main@867d922f0 (clean, 4 files, +245/-3), cmake -DLEONIDA_VULKAN_HEADERS_FETCH=ON, ctest -R d3d12_a8_dimensions, check_no_game_data.py | on: Windows 11, MSVC 19.51.36263.0, AMD Radeon RX 9060 XT (26.11.2) | result: pass ( agent: yes |
|
checked: #7755 | with: merge of PR head onto main, then
AI-assisted. |
What was wrong
texture_format(runtime/shims/d3d12_vulkan_device.cpp) refused everyA8_UNORMtexture that was not 2D. SoGetResourceAllocationInfoansweredUINT64_MAXfor a 1D or 3D one, and creation failed. The host makes all three: #4533's host sweep lists "A8_UNORMas 1D/3D" among the gaps it leaves alone.Measured locally at a title's call sites: its boot sizes a 128-texel 1D
A8_UNORMtexture with no flags, then asserts that the size's upper 32 bits are zero.UINT64_MAXstopped it there.The change
A8_UNORMtextures areR8_UNORMimages in 1D and 3D too, like the 2D ones. Multisampled textures stay refused, and so do render-target, depth-stencil and UAV flags. d3d12: A8_UNORM render targets through VK_FORMAT_A8_UNORM_KHR (VK_KHR_maintenance5) #7403 / d3d12: A8_UNORM render targets on VK_FORMAT_A8_UNORM_KHR (VK_KHR_maintenance5) #7593 keep the render-target rule as they have it.CheckFeatureSupport(FORMAT_SUPPORT)forA8_UNORMnow namesTEXTURE1DandTEXTURE3Dtoo.docs/d3d12_vulkan.md: the A8 bullet says 1D, 2D and 3D.Test
New GPU test
d3d12_a8_dimensions_test, for a 1D (128) and a 3D (8x8x4) texture:TEXTURE1D,TEXTURE2DandTEXTURE3D;GetResourceAllocationInfogives a size andCreateCommittedResourcemakes the texture;CopyTextureRegioncome back unchanged (128 and 256 texels);R8_UNORM's GFX10 format, with swizzle (0, 0, 0, X);ALLOW_UNORDERED_ACCESSandALLOW_DEPTH_STENCILare still refused in both dimensions.Results on an RTX 5090:
LEONIDA_VK_VALIDATION=1: passes, with no validation messages.d3d12_descriptor_test(covers the 2D A8 textures) still passes.On a local integration branch (main plus open boot-path PRs), this was the next stop of the retail boot after about 78,000 D3D12 calls.
Not tested on the AMD iGPU.
🤖 Generated with Claude Code