mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
TakeStorage copies a pending or live storage image over the whole depth plane of a new single-sample surface, after the creation clear. On AMD's Windows driver 32.0.31041.1004 (RX 7800 XT), one or two 8x8 blocks of a D16 surface then tested as the clear value in about 1 of 10 runs of agc_driver_depth_surface_from_storage, although a copy back of the image read the copied values (#6630). Without a stencil plane the copy now goes through an UNDEFINED to TRANSFER_DST_OPTIMAL barrier on the depth aspect and back to GENERAL, so the clear's state is discarded before the copy writes every texel. A surface with a stencil plane keeps the previous path. Co-Authored-By: Claude Opus 5.5 <[email protected]>