Skip to content
  • Pekka Paalanen's avatar
    compositor-drm: move connector fields into drm_head · c1e89ba2
    Pekka Paalanen authored
    
    
    Move the connector related fields from drm_output to the drm_head. A
    drm_head represents a connector for now.
    
    The code in drm_head_create() to update connector data, monitor
    information, etc. is moved into a new function. This will be useful when
    DRM-backend starts creating heads for all connectors regardless of their
    connection status and will need to update them on hotplug events.
    
    While incurring the churn to move several fields into struct drm_head,
    also refactor out drm_head_assign_connector_info(). This function is
    needed later when drm_heads will exist regardless of connected status,
    as every hotplug event will need to update the state of all connectors.
    At that point we will also start handling connector changes that do not
    go through an intermediate disconnected state. This refactoring is
    trivial enough to be in this patch to reduce the total amount of changes
    to be reviewed.
    
    v6:
    - adapt to the new places of updating unused_connectors
    - free connector in create_output_for_connector() error path
    
    Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
    Acked-by: default avatarDerek Foreman <derekf@osg.samsung.com>
    c1e89ba2