Files
reims-vgpu/docs
Anees Iqbal b65568bf02 🐛 Acquire a video cache a failed landing wrote before its signal
Since rt copies a texture over an exported block in only at a change of the
block's bytes (the pin's bef2ec1df4), a cache's acquire (external_write_done)
is the one change a write by the host's video makes. A picture that failed
to land in its cache returned before the acquire, so the device kept reading
the cache's bytes from before the hardware's write. The paths: VA-API's
frame.sync() error for a picture decoded into its cache, and the video
processing's write_in_place error into a cache; NVDEC's write_into_device
outer error.

Each now ends through video_host::failed_in_caches, which says the planes
written as the landing would have, then fails with the landing's own error,
so it is logged and counted as any failure and its signal follows the
acquire. Where the error is a stall, the work may still write past its
deadline, so no acquire is said. A refused acquire is logged. A test pins
the pattern: a stopped failure acquires once before its value is signalled,
a stalled one acquires nothing, and both count as failed with their command
buffers completing failed.

The session's end line also counted a picture that the VA-API arm's GPU
copier landed from its scratch as "in a device cache, by the hardware". It
now counts it as "staged by the hardware and copied" (Landing::copied_by_gpu,
Way::Staged), with a test.

What the guest observes changes only where a landing fails: its texture reads
what the hardware left in the cache, as it would on a Mac, rather than the
cache's last picture. The rest is diagnostics.
2026-11-22 02:01:31 -08:00
..