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. |
|
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. |
d3d12: A8_UNORM textures in 1D and 3D, as the host makes them Keep native A8 for supported 2D render targets and use R8 backing for sampled 1D, 2D, and 3D A8 textures. Fork integration. AI-assisted (Codex).
|
checked: #7755 | with: applied the diff on main 6312c05, built d3d12_a8_dimensions_test (MSVC, Ninja RelWithDebInfo) | on: Windows 11, RX 9060 XT | result: PASS — A8_UNORM 1D (128 texels) and 3D (8x8x4, 256 texels) sized, created, uploaded, copied back byte-exact; SRV decodes as the right image type in R8_UNORM with the (0,0,0,A) swizzle; UAV and depth-stencil stay refused in both dimensions; CheckFeatureSupport advertises TEXTURE1D/2D/3D Code read: texture_format now only excludes non-single-sampled or RT/DS/UAV A8_UNORM regardless of dimension, matching the host which makes all three as R8_UNORM; Support1 gains TEXTURE1D and TEXTURE3D while keeping CUBE and the filter bits. The doc row is updated to match. AI-assisted check. |
|
Tested Merged onto @tibzejoker's
Traces stay local; only outcomes, slot numbers and public formats here. AI-assisted (Claude Code). |
…as the host makes them Squashed from ItsNotRexed#7755 by NiiRoZz, head 952be9b (security scan PASS). Conflict with ItsNotRexed#7403 in texture_format: A8_UNORM takes 1D, 2D and 3D as this PR does, and a render target stays 2D only through ItsNotRexed#7403's VK_FORMAT_A8_UNORM_KHR path; depth-stencil and UAV flags and multisampling are refused as before.
|
Tested 952be9b on NVIDIA GeForce RTX 4080 SUPER, driver 621.24 (Vulkan 1.4.357), Windows 11 Pro 26300, MSVC 14.44, Ninja RelWithDebInfo (fresh build folder), applied on
Overlap: #9336 (opened later, by another author) has the same title and edits the same four files with the same new test name. Its test passes on this GPU as well. Noting it here so the two can be compared before one is merged. (AI-assisted check, Claude Code.) |
|
Tested 952be9b under Wine: Proton Experimental (wine 11),
AI-assisted run (Claude Code); no game files used. |
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