mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
A fill that covers a depth surface's whole stencil plane with four equal bytes, or its whole depth plane with a value in 0.0-1.0, now reaches the host image through the pending fast clear the next time the surface is bound, sampled or stored to. An HTILE fill or HTILE clear kernel noted afterwards replaces the value with DB_DEPTH_CLEAR/DB_STENCIL_CLEAR. NoteDepthMetadataFill only reacted to fills of DB_HTILE_DATA_BASE, so the Cohtml UI of Heretic + Hexen (PPSA26525) and DOOM + DOOM II (PPSA21444), which resets its stencil plane to 1 with a 0x01010101 fill every frame and then draws with stencil Equal 1 and 2, kept the stencil of earlier frames and showed black squares and clipped text. agc_driver_depth_plane_fill pins the rules.