Files
reims-vgpu/docs
Anees Iqbal 40dc87b946 🐛 Refuse a make in place over pages that lack the cache's write
A command buffer that writes a surface's device cache can end between the
host's decision to make a texture in place over the surface's pages and the
make's fence. The cache then holds a write the pages lack, and nothing kept a
download of the surface out of the make's span: the download copied the write
into the pages, and the make's copy of the bytes back undid it, while the host
held the pages as having it. The guest's lock then read the old bytes.

The fence now refuses the make as busy wherever the decision's own "behind"
rule holds at the fence: the shape takes the host's own image, and a later
begin moves it in place once the pages hold the write. A block free of that
holds no write the pages lack, so a download inside the span copies nothing.

The test runs the write's begin on a sibling decoder between the decision and
the fence, and a download inside the span, and reads the write in the pages.
2026-12-03 02:57:49 -08:00
..