Skip to main content

Module hdr_cache

Module hdr_cache 

Source
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§

HdrMetadataCache
Per-CRTC HDR_OUTPUT_METADATA blobs, deduped by content.