mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
A depth plane with the 64 KiB Z swizzle reloads the units the guest wrote (SyncFromMemory) when its surface is bound as a depth target, but sampling the plane through the surface skipped that check and read the host image. A title that copies depth into the plane with a buffer copy and samples it before drawing into it again read the depth from before the copy. PPSA05684 copies its depth pre-pass into a second depth target with a buffer copy kernel and samples that copy at once to build the half-resolution depth its volumetric fog and dust read; only later does it bind the target. The fog used the previous frame's depth, so a silhouette followed every moving character through fog and dust. Sampling a single-sample plane through its surface now runs the same reload first. agc_driver_depth_plane_sampling gains a case that draws a plane, writes the guest memory under it and samples it; it reads the drawn depth without the change. AI-assisted: yes