Expand description
Per-CRTC cache of the HDR_OUTPUT_METADATA blob.
Holds the blob most recently handed to each CRTC and dedups by content hash, so metadata that has not changed does not rebuild a kernel blob every frame.
Replacing a blob does not destroy the old one straight away. Between
creating the replacement and the atomic commit that repoints the connector
property, the kernel is still holding the old id – so the outgoing blob
goes on a queue and HdrMetadataCache::acknowledge_committed drains it
once the commit has landed, as the reference does. The display itself is
safe either way – the kernel’s committed state holds its own reference to
the blob a property names – but a blob destroyed before the commit leaves
nothing to fall back to if that commit is refused.
Structs§
- HdrMetadata
Cache - Per-CRTC
HDR_OUTPUT_METADATAblobs, deduped by content.