upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorzneel <14263028+zneel@users.noreply.github.com>2026-11-22 10:50:10 +0100
committerzneel <14263028+zneel@users.noreply.github.com>2026-11-22 11:26:48 +0100
commit983862e2a885a3d7082cf9678e863fdce1bd6f4e (patch)
tree57ecd89e512f1d7e3fe5e34b37bfce2d0eff7125 /runtime/src/pe_loader.cpp
parentf85582e23d4ab9e19acbf694358f137d6b8531b1 (diff)
Runtime: 96-bit R32G32B32 textures on the Vulkan layer (D3D-62)
R32G32B32_FLOAT/UINT/SINT/TYPELESS textures were refused ("texture format not supported yet"). They are now R32G32B32A32 images on every GPU: most have no optimal-tiling RGB32 image, and one that has would not avoid the repack, since D3D12 places subresources at multiples of 512 bytes and Vulkan wants a copy's buffer offset to be a multiple of the texel size (VUID-vkCmdCopyBufferToImage-dstImage-07975). - Footprints keep D3D12's 12-byte texels (compared with WARP). - CopyTextureRegion between a texture and a buffer is repacked by the D24 compute pass (depth24_convert.comp modes 2 and 3, Depth24Job::rgb96): the same scratch, parts and lifetime, texels of three words in the footprint and four in the scratch, copied uninterpreted. depth24_convert.inc is regenerated with the documented glslc command; the same glslc reproduces the previous blob byte for byte from the previous source. - WriteToSubresource/ReadFromSubresource take the staged copy, as D24-as-D32. - A view's T# names GFX10_FORMAT_32_32_32_*, so alpha reads as one. - Refused: unordered access and depth (as WARP), render targets (WARP has them; not done, and FORMAT_SUPPORT and GetResourceAllocationInfo agree), copies between a 96-bit and a four-channel texture, views of another format family. Tested on an RX 9070 XT (AMD 26.11.2), Windows 11: d3d12_rgb96_test matches WARP and the expected texels bit for bit for 4 formats as 2D arrays with mips and as volumes; d3d12_descriptor_test samples FLOAT, UINT and TYPELESS views. Clean under the validation layer with sync validation; depth24_convert_test and ctest (62) pass. AI-assisted (Claude Code). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions