Commit 02cf4662 authored by Daniel Stone's avatar Daniel Stone

compositor-drm: Add DRM property cache

Add a cache for DRM property IDs and values, and use it for the two
connector properties we currently update: DPMS and EDID.

As DRM property ID values are not stable, we need to do a name -> ID
lookup each run in order to discover the property IDs and enum values to
use for those properties. Rather than open-coding this, add a property
cache which we can use across multiple different object types.

This patch takes substantial work from the universal planes support
originally authored by Pekka Paalanen, though it has been heavily
Signed-off-by: Daniel Stone's avatarDaniel Stone <>
Co-authored-by: Pekka Paalanen's avatarPekka Paalanen <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
parent 4202e50f
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment