Files
reims-vgpu/crates
Anees Iqbal fd6954fb23 🐎 Leave a repitched cache's planes the rows their surface holds
Where a surface's rows are not at the GPU's pitch, its device cache is laid
out at it (Repitched), and that layout held each plane's own rows alone, the
next plane right past them. The rows a surface holds below a plane, which a
decoder writes a picture's coded rows into (CoreVideo's extended pixels: a
1080p 420v surface's 1088 luma and 544 chroma rows), were not in the cache.
So on radeonsi, whose 256-byte pitch repitches NV12's 1920-byte rows, every
1080p H.264 picture, and every HEVC one coded 1088 rows high, missed the
decode into its device cache ("plane 1 holds 540 rows of 2048 bytes, not
the coded 1920x1088 picture's 544") and landed by the driver's video
processing, a copy. 720p, 2160p and 10-bit pictures, not repitched, were
decoded in place already.

Each plane of a repitched cache now has the room for the rows its surface
holds for it, up to the next plane's first byte or the surface's end, and a
decode's plane takes its rows held from that room (rows_room). The cache's
copies still move each plane's own rows alone, so no byte the guest sees
changes; only the cache grows by those rows.
2026-11-16 19:19:33 -08:00
..