fix(agc): read a 16-bit integer view of a depth plane as its stored values #188
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/188"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-09-30T15:55:21Z.
What
A shader can read a D16 depth plane through a 16-bit integer view: a T# of format
16_UINTwith the depth-layout swizzle. It expects the stored 16-bit values. Before, the driver refused the view on a depth surface ("sampling the depth plane of depth surface ... is not implemented"), and the draw or dispatch aborted.DepthBitsTextureWidthtells a 32-bit depth-bits view (as before) from a 16-bit one;IsDepthBitsTexturecovers both.depthUnorm16: it samples the depth as float, as for 32-bit, and returnsuint(depth * 65535 + 0.5), which is the stored value. The flag is part of the resource specialization, its equality and the shader disk cache records.16_UNORM, so the same conversion returns the stored integers.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
main: the Story Mode prologue aborted after the North Yankton title at compute shader0x242d48e00(sampling the depth plane of depth surface 0x296da0000 (1024x1536, vk format 124) as a 1024x1536 texture of guest format 11). With this change it renders the world.ctest:agc_structurizer,agc_shader_disk_cache,agc_dpp_writeandguest_memorypass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code