mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
writeBackWindows retiles the kept 64 KiB units through the windows of the surface's (layer, mip) slices. A unit can lie outside every window: the tracking grid spans the whole guest range flat, while the slices of a 3D surface taper in depth (HasLayer), so the upper depth slices' higher-level blocks belong to no window. The empty window set then sized the retile linear and scratch buffers at zero, and the zero-sized device buffer threw 'AGC graphics: zero-sized device buffer', aborting the process. Keep such units as the guest left them: there is no tiled data of the surface to retile or store. The caller alone accounts for the unit.