mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-21 16:12:47 -05:00
A fill or clear the driver recognizes over an HTILE drops the range's last-read generation, so the next bind reads the words and stores them back even when the write tracker did not see the fill's stores. A depth view of slice 1 or later reads the HTILE at its own address (DB_HTILE_DATA_BASE + slice * HtileMetadataBytes); the HTILE word layout is only modelled for slice 0, so such a slice takes the clear and the store-back only when all its words are equal and keeps its fill-time fast clears otherwise. DepthTarget::slice carries DB_DEPTH_VIEW SLICE_START. agc_driver_depth_fast_clear_submit: an unrecognized kernel clears the HTILE on two frames in a row and both clears are taken; slice 1 with words that are not all equal is refused and stored back untouched; slice 1 with equal words takes the clear. agc_driver_graphics checks the decoded slice.