Files
reims-vgpu/docs
Anees Iqbal 2fe5515d85 🆕 Record each acquire of another API's writes into a buffer
metal2vulkan's replay player plays the host video recordings, whose surface
caches the hardware writes outside the runtime: VA-API's decode or video
processing into a dma-buf cache, NVDEC's copy through CUDA's import of an
exportable one. It must refill what lies over such a cache where those writes
become visible to the device: the platform's external_write_done, the
runtime's acquire. The platform made that call unrecorded, so no stream held
the point, and a player had to infer it.

external_write_done now records m2v.externalWriteDone on the buffer, with no
arguments, as the call returns, as rebindNoCopy and every other hooked call
are recorded. The host's video makes the call on the session's landing thread
once the picture is in the cache, right before the session's
setSignaledValue: that releases the decode's command buffer past its wait, so
the record lies after the hardware's writes and before every command that
reads them. A refused acquire is recorded as any refusal is. The record is
counted by its selector in the stats file, and the recorder_fix
"external-write-done" names the change.

Nothing changes for the guest or the C API's host. With REIMS_VGPU_RECORD
unset the call costs one relaxed load more.
2026-11-19 03:25:44 -08:00
..